diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2001-03-14 00:09:16 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2001-03-14 00:09:16 +0000 |
commit | 3a501db74967d4c31aa749e1baec8aa7bdef96e4 (patch) | |
tree | ab9e12b7ebd0ab3b6ca7fe2b61159b249a726190 /pop2.c | |
parent | 07921aefa96266949a198f6b43726369c42bed66 (diff) | |
download | fetchmail-3a501db74967d4c31aa749e1baec8aa7bdef96e4.tar.gz fetchmail-3a501db74967d4c31aa749e1baec8aa7bdef96e4.tar.bz2 fetchmail-3a501db74967d4c31aa749e1baec8aa7bdef96e4.zip |
Shrouding is now done over a narrower scope.
svn path=/trunk/; revision=3252
Diffstat (limited to 'pop2.c')
-rw-r--r-- | pop2.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -54,9 +54,13 @@ static int pop2_ok (int sock, char *argbuf) static int pop2_getauth(int sock, struct query *ctl, char *buf) /* apply for connection authorization */ { - return(gen_transact(sock, + int status; + + strcpy(shroud, ctl->password) + status = gen_transact(sock, "HELO %s %s", - ctl->remotename, ctl->password)); + ctl->remotename, ctl->password); + shroud[0] = '\0'; } static int pop2_getrange(int sock, struct query *ctl, const char *folder, @@ -134,7 +138,6 @@ const static struct method pop2 = FALSE, /* this is not a tagged protocol */ FALSE, /* does not use message delimiter */ pop2_ok, /* parse command response */ - NULL, /* no password canonicalization */ pop2_getauth, /* get authorization */ pop2_getrange, /* query range of messages */ NULL, /* no way to get sizes */ |