aboutsummaryrefslogtreecommitdiffstats
path: root/fetchmail.h
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2005-09-20 00:20:47 +0000
committerMatthias Andree <matthias.andree@gmx.de>2005-09-20 00:20:47 +0000
commiteaf2ce1dd214a1d8716179a25036427096c7c24e (patch)
tree14928c74afea277889f959aafc33deacc416a3de /fetchmail.h
parentde9c2733a448bdcd64917a82e42513e8f3ab6ac5 (diff)
downloadfetchmail-eaf2ce1dd214a1d8716179a25036427096c7c24e.tar.gz
fetchmail-eaf2ce1dd214a1d8716179a25036427096c7c24e.tar.bz2
fetchmail-eaf2ce1dd214a1d8716179a25036427096c7c24e.zip
Fix "auth ntlm" to send AUTH NTLM (rather than AUTH MSN). Add "auth msn".
svn path=/trunk/; revision=4297
Diffstat (limited to 'fetchmail.h')
-rw-r--r--fetchmail.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/fetchmail.h b/fetchmail.h
index 682dfff4..fe65c336 100644
--- a/fetchmail.h
+++ b/fetchmail.h
@@ -70,9 +70,17 @@ char *strstr(const char *, const char *);
#define A_KERBEROS_V5 6 /* authenticate w/ Kerberos V5 */
#define A_GSSAPI 7 /* authenticate with GSSAPI */
#define A_SSH 8 /* authentication at session level */
-
-/* some protocols (KERBEROS, GSSAPI, SSH) don't require a password */
-#define NO_PASSWORD(ctl) ((ctl)->server.authenticate > A_OTP || (ctl)->server.protocol == P_ETRN)
+#define A_MSN 9 /* same as NTLM with keyword MSN */
+
+/* some protocols or authentication types (KERBEROS, GSSAPI, SSH) don't
+ * require a password */
+#define NO_PASSWORD(ctl) \
+ ((ctl)->server.authenticate == A_OTP \
+ || (ctl)->server.authenticate == A_KERBEROS_V4 \
+ || (ctl)->server.authenticate == A_KERBEROS_V5 \
+ || (ctl)->server.authenticate == A_GSSAPI \
+ || (ctl)->server.authenticate == A_SSH \
+ || (ctl)->server.protocol == P_ETRN)
/*
* Definitions for buffer sizes. We get little help on setting maxima