1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-03 01:23:49 +00:00

Fix extra-patch-mysqlauth

PR:		ports/160671
Submitted by:	Zhihao Yuan <lichray@gmail.com>
This commit is contained in:
Martin Matuska 2011-09-18 09:10:57 +00:00
parent d03cd9afc5
commit 2ac8116134
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=281934

View File

@ -171,13 +171,13 @@ diff -Naur new/lighttpd-1.4.23/src/http_auth.c old/lighttpd-1.4.23/src/http_auth
+ } else
+ /* plain md5 check now */
+ {
+ MD5_CTX Md5Ctx;
+ li_MD5_CTX Md5Ctx;
+ HASH HA1;
+ char a1[256];
+
+ MD5_Init(&Md5Ctx);
+ MD5_Update(&Md5Ctx, (unsigned char *)pw, strlen(pw));
+ MD5_Final(HA1, &Md5Ctx);
+ li_MD5_Init(&Md5Ctx);
+ li_MD5_Update(&Md5Ctx, (unsigned char *)pw, strlen(pw));
+ li_MD5_Final(HA1, &Md5Ctx);
+
+ CvtHex(HA1, a1);
+