From 3a501db74967d4c31aa749e1baec8aa7bdef96e4 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 14 Mar 2001 00:09:16 +0000 Subject: Shrouding is now done over a narrower scope. svn path=/trunk/; revision=3252 --- pop2.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'pop2.c') diff --git a/pop2.c b/pop2.c index 1d2f74a5..40bdc975 100644 --- a/pop2.c +++ b/pop2.c @@ -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 */ -- cgit v1.2.3