diff options
author | Eduardo Chappa <chappa@washington.edu> | 2020-02-19 00:39:42 -0700 |
---|---|---|
committer | Eduardo Chappa <chappa@washington.edu> | 2020-02-19 00:39:42 -0700 |
commit | cd53b13aa5acaecb776c82cd6566122a6893240d (patch) | |
tree | 4e811c0dfdebf647b564f4f9659c388c87a44f4c /imap/src/c-client/auth_md5.c | |
parent | 8781af1dfc9fdc1fbc08b281cc418bee8dde604d (diff) | |
download | alpine-cd53b13aa5acaecb776c82cd6566122a6893240d.tar.xz |
* Added support for SALS-IR (rfc 4959) and similar support for other
protocols (SMTP, NNTP, POP3) as some SMTP servers do not support a
round-trip two step authentication. For example, davmail does not
support PLAIN authentication in SMTP using the challenge-response
scheme. Implemented after a report by Geoffrey Bodwin.
Diffstat (limited to 'imap/src/c-client/auth_md5.c')
-rw-r--r-- | imap/src/c-client/auth_md5.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/imap/src/c-client/auth_md5.c b/imap/src/c-client/auth_md5.c index fea96739..a1c1f5e1 100644 --- a/imap/src/c-client/auth_md5.c +++ b/imap/src/c-client/auth_md5.c @@ -44,7 +44,7 @@ typedef struct { /* Prototypes */ long auth_md5_valid (void); -long auth_md5_client (authchallenge_t challenger,authrespond_t responder, +long auth_md5_client (authchallenge_t challenger,authrespond_t responder,char *base, char *service,NETMBX *mb,void *stream, unsigned long port, unsigned long *trial,char *user); char *auth_md5_server (authresponse_t responder,int argc,char *argv[]); @@ -95,7 +95,7 @@ long auth_md5_valid (void) * Returns: T if success, NIL otherwise, number of trials incremented if retry */ -long auth_md5_client (authchallenge_t challenger,authrespond_t responder, +long auth_md5_client (authchallenge_t challenger,authrespond_t responder,char *base, char *service,NETMBX *mb,void *stream, unsigned long port, unsigned long *trial,char *user) { @@ -108,7 +108,7 @@ long auth_md5_client (authchallenge_t challenger,authrespond_t responder, mm_login (mb,user, &pwd,*trial); if (!pwd) { /* user requested abort */ fs_give ((void **) &challenge); - (*responder) (stream,NIL,0); + (*responder) (stream,NIL,NIL,0); *trial = 0; /* cancel subsequent attempts */ ret = LONGT; /* will get a BAD response back */ } @@ -118,7 +118,7 @@ long auth_md5_client (authchallenge_t challenger,authrespond_t responder, pwd,strlen (pwd))); fs_give ((void **) &challenge); /* send credentials, allow retry if OK */ - if ((*responder) (stream,tmp,strlen (tmp))) { + if ((*responder) (stream,NIL,tmp,strlen (tmp))) { if ((challenge = (*challenger) (stream,&clen)) != NULL) fs_give ((void **) &challenge); else { |