X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fwhatnowsbr.c;h=58ac8bd44dcb4b97c620c3db6b9df76ca3923579;hp=da2debde06cde0c683fe10e81f25684d94d2f8a2;hb=da304a48a24d7cc7fafae13c994d94ad3d6483f2;hpb=2f689a1cb907a5de04e6d39ffd217a69af3216c7 diff --git a/uip/whatnowsbr.c b/uip/whatnowsbr.c index da2debd..58ac8bd 100644 --- a/uip/whatnowsbr.c +++ b/uip/whatnowsbr.c @@ -980,6 +980,12 @@ check_draft (char *msgnam) # define SASLminc(a) 0 #endif /* CYRUS_SASL */ +#ifndef TLS_SUPPORT +# define TLSminc(a) (a) +#else /* TLS_SUPPORT */ +# define TLSminc(a) 0 +#endif /* TLS_SUPPORT */ + static struct swit sendswitches[] = { #define ALIASW 0 { "alias aliasfile", 0 }, @@ -1058,13 +1064,15 @@ static struct swit sendswitches[] = { #define SASLMECHSW 37 { "saslmech", SASLminc(-5) }, #define USERSW 38 - { "user", SASLminc(4) }, + { "user", SASLminc(-4) }, #define SNDATTACHSW 39 { "attach file", 6 }, #define SNDATTACHFORMAT 40 { "attachformat", 7 }, #define PORTSW 41 { "port server-port-name/number", 4 }, +#define TLSSW 42 + { "tls", TLSminc(-3) }, { NULL, 0 } }; @@ -1219,6 +1227,7 @@ sendit (char *sp, char **arg, char *file, int pushed) case SOMLSW: case SNOOPSW: case SASLSW: + case TLSSW: vec[vecp++] = --cp; continue;