diff options
author | Fernando J. Pereda <ferdy@gentoo.org> | 2005-06-15 09:28:05 +0000 |
---|---|---|
committer | Fernando J. Pereda <ferdy@gentoo.org> | 2005-06-15 09:28:05 +0000 |
commit | 8c3f76db23c91d951e6c39d18d05bd2e7ac740e0 (patch) | |
tree | 85b6603b591d3dc4309280c3ffdf11cabac3671b /mail-mta/nbsmtp/files | |
parent | Initial import. closes bug #51063 (diff) | |
download | historical-8c3f76db23c91d951e6c39d18d05bd2e7ac740e0.tar.gz historical-8c3f76db23c91d951e6c39d18d05bd2e7ac740e0.tar.bz2 historical-8c3f76db23c91d951e6c39d18d05bd2e7ac740e0.zip |
add a patch for users using cram-md5
Package-Manager: portage-2.0.51.19
Diffstat (limited to 'mail-mta/nbsmtp/files')
-rw-r--r-- | mail-mta/nbsmtp/files/nbsmtp-CRAM-MD5.diff | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/mail-mta/nbsmtp/files/nbsmtp-CRAM-MD5.diff b/mail-mta/nbsmtp/files/nbsmtp-CRAM-MD5.diff new file mode 100644 index 000000000000..e19438cb8bc4 --- /dev/null +++ b/mail-mta/nbsmtp/files/nbsmtp-CRAM-MD5.diff @@ -0,0 +1,21 @@ +Index: nbsmtp.c +=================================================================== +RCS file: /var/cvs/nbsmtp/nbsmtp.c,v +retrieving revision 1.139 +diff -u -B -r1.139 nbsmtp.c +--- nbsmtp.c 12 Mar 2005 19:50:12 -0000 1.139 ++++ nbsmtp.c 15 Jun 2005 09:13:56 -0000 +@@ -492,8 +492,11 @@ + } + + strncpy(greeting,smtp_last_message(),sizeof(greeting)); +- +- from64tobits(challenge,greeting); ++ ++ i = from64tobits(challenge,greeting); ++ ++ /* Make sure challenge is '\0' ended, since from64tobits doesn't do it itself */ ++ challenge[i] = '\0'; + + hmac_md5((unsigned char*)challenge, strlen(challenge), + (unsigned char*)serverinfo->auth_pass, strlen(serverinfo->auth_pass), |