aboutsummaryrefslogtreecommitdiffstats
path: root/options.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1998-03-03 21:22:36 +0000
committerEric S. Raymond <esr@thyrsus.com>1998-03-03 21:22:36 +0000
commit6421b138290aeecda414de1c753ace9d04681f7c (patch)
tree4facf1555bb3adc7028734a8f5c201b4c3c4a896 /options.c
parente82d0241ff7d9a09e30776dc37b97d49c1ca531a (diff)
downloadfetchmail-6421b138290aeecda414de1c753ace9d04681f7c.tar.gz
fetchmail-6421b138290aeecda414de1c753ace9d04681f7c.tar.bz2
fetchmail-6421b138290aeecda414de1c753ace9d04681f7c.zip
Kerberos V support.
svn path=/trunk/; revision=1682
Diffstat (limited to 'options.c')
-rw-r--r--options.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/options.c b/options.c
index 9849299f..b16d0041 100644
--- a/options.c
+++ b/options.c
@@ -211,7 +211,11 @@ struct query *ctl; /* option record to be initialized */
#else /* INET6 */
ctl->server.port = KPOP_PORT;
#endif /* INET6 */
+#ifdef KERBEROS_V5
+ ctl->server.preauthenticate = A_KERBEROS_V5;
+#else
ctl->server.preauthenticate = A_KERBEROS_V4;
+#endif /* KERBEROS_V5 */
}
else if (strcasecmp(optarg,"imap") == 0)
ctl->server.protocol = P_IMAP;
@@ -243,9 +247,15 @@ struct query *ctl; /* option record to be initialized */
if (strcmp(optarg, "password") == 0)
ctl->server.preauthenticate = A_PASSWORD;
else if (strcmp(optarg, "kerberos") == 0)
+#ifdef KERBEROS_V5
+ ctl->server.preauthenticate = A_KERBEROS_V5;
+ else if (strcmp(optarg, "kerberos_v5") == 0)
+ ctl->server.preauthenticate = A_KERBEROS_V5;
+#else
ctl->server.preauthenticate = A_KERBEROS_V4;
else if (strcmp(optarg, "kerberos_v4") == 0)
ctl->server.preauthenticate = A_KERBEROS_V4;
+#endif /* KERBEROS_V5 */
else {
fprintf(stderr,"Invalid preauthentication `%s' specified.\n", optarg);
errflag++;