1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-17 03:25:46 +00:00
freebsd-ports/mail/vpopmail/files/vchkpw-smtp-auth.patch
Peter Pentchev 41dcdf6652 Errr... actually add the patch needed for the WITH_SMTP_AUTH_PATCH option
introduced in ports/mail/vpopmail/Makefile rev. 1.57.

Submitted by:	Nikolay Georgiev <niki@techlab.office1.bg>
2005-09-16 07:35:24 +00:00

16 lines
549 B
Diff

--- vchkpw.c.orig Thu Dec 16 15:57:34 2004
+++ vchkpw.c Fri Sep 16 06:25:31 2005
@@ -435,8 +435,10 @@
#ifdef CLEAR_PASS
/* Check CRAM-MD5 auth */
if(ConnType == SMTP_CONN) {
- /* printf("vchkpw: smtp auth\n"); */
- cramaccepted = authcram(ThePass,TheChallenge,vpw->pw_clear_passwd);
+ printf("vchkpw: smtp auth\n");
+ /* cramaccepted = authcram(ThePass,TheChallenge,vpw->pw_clear_passwd); */
+ cramaccepted = authcram(TheChallenge,ThePass,vpw->pw_clear_passwd);
+
if(cramaccepted == 0) strcpy(AuthType, "CRAM-MD5");
}