From eaf2ce1dd214a1d8716179a25036427096c7c24e Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Tue, 20 Sep 2005 00:20:47 +0000 Subject: Fix "auth ntlm" to send AUTH NTLM (rather than AUTH MSN). Add "auth msn". svn path=/trunk/; revision=4297 --- fetchmail.h | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'fetchmail.h') 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 -- cgit v1.2.3