comparison lib-src/pop.c @ 70857:d2542ee8a5c9

(pop_open, socket_connection, KPOP_SERVICE): Added comments explaining why the "kpop" service is never used.
author Francesco Potortì <pot@gnu.org>
date Tue, 23 May 2006 10:44:39 +0000
parents 3661e9b3c48f
children 6d19c76d81c5 a8190f7e546e
comparison
equal deleted inserted replaced
70856:74ce4d3e33b0 70857:d2542ee8a5c9
133 value of 80 */ 133 value of 80 */
134 #define POP_PORT 110 134 #define POP_PORT 110
135 #define KPOP_PORT 1109 135 #define KPOP_PORT 1109
136 #define POP_SERVICE "pop3" /* we don't want the POP2 port! */ 136 #define POP_SERVICE "pop3" /* we don't want the POP2 port! */
137 #ifdef KERBEROS 137 #ifdef KERBEROS
138 #define KPOP_SERVICE "kpop" 138 #define KPOP_SERVICE "kpop" /* never used: look for 20060515 to see why */
139 #endif 139 #endif
140 140
141 char pop_error[ERROR_MAX]; 141 char pop_error[ERROR_MAX];
142 int pop_debug = 0; 142 int pop_debug = 0;
143 143
262 { 262 {
263 strcpy (pop_error, "Could not determine POP password"); 263 strcpy (pop_error, "Could not determine POP password");
264 return (0); 264 return (0);
265 } 265 }
266 } 266 }
267 if (password) 267 if (password) /* always true, detected 20060515 */
268 flags |= POP_NO_KERBEROS; 268 flags |= POP_NO_KERBEROS;
269 else 269 else
270 password = username; 270 password = username; /* dead code, detected 20060515 */
271 /** "kpop" service is never used: look for 20060515 to see why **/
271 272
272 sock = socket_connection (host, flags); 273 sock = socket_connection (host, flags);
273 if (sock == -1) 274 if (sock == -1)
274 return (0); 275 return (0);
275 276
1045 #endif 1046 #endif
1046 1047
1047 bzero ((char *) &addr, sizeof (addr)); 1048 bzero ((char *) &addr, sizeof (addr));
1048 addr.sin_family = AF_INET; 1049 addr.sin_family = AF_INET;
1049 1050
1051 /** "kpop" service is never used: look for 20060515 to see why **/
1050 #ifdef KERBEROS 1052 #ifdef KERBEROS
1051 service = (flags & POP_NO_KERBEROS) ? POP_SERVICE : KPOP_SERVICE; 1053 service = (flags & POP_NO_KERBEROS) ? POP_SERVICE : KPOP_SERVICE;
1052 #else 1054 #else
1053 service = POP_SERVICE; 1055 service = POP_SERVICE;
1054 #endif 1056 #endif
1071 { 1073 {
1072 addr.sin_port = servent->s_port; 1074 addr.sin_port = servent->s_port;
1073 } 1075 }
1074 else 1076 else
1075 { 1077 {
1078 /** "kpop" service is never used: look for 20060515 to see why **/
1076 #ifdef KERBEROS 1079 #ifdef KERBEROS
1077 addr.sin_port = htons ((flags & POP_NO_KERBEROS) ? 1080 addr.sin_port = htons ((flags & POP_NO_KERBEROS) ?
1078 POP_PORT : KPOP_PORT); 1081 POP_PORT : KPOP_PORT);
1079 #else 1082 #else
1080 addr.sin_port = htons (POP_PORT); 1083 addr.sin_port = htons (POP_PORT);