FreeBSD Bugzilla – Attachment 188754 Details for
Bug 224046
www/mod_auth_mysql_another: when compiled against a newer mariadb library will break
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
svn-diff-mod_auth_mysql_another
svn-diff-mod_auth_mysql_another (text/plain), 2.33 KB, created by
Walter Schwarzenfeld
on 2017-12-12 15:17:17 UTC
(
hide
)
Description:
svn-diff-mod_auth_mysql_another
Filename:
MIME Type:
Creator:
Walter Schwarzenfeld
Created:
2017-12-12 15:17:17 UTC
Size:
2.33 KB
patch
obsolete
>Index: Makefile >=================================================================== >--- Makefile (revision 456166) >+++ Makefile (working copy) >@@ -3,7 +3,7 @@ > > PORTNAME= mod_auth_mysql > PORTVERSION= 3.0.0 >-PORTREVISION= 5 >+PORTREVISION= 6 > CATEGORIES= www > MASTER_SITES= SF/modauthmysql/modauthmysql/${PORTVERSION} > PKGNAMESUFFIX= _another >Index: files/patch-mod__auth__mysql.c >=================================================================== >--- files/patch-mod__auth__mysql.c (revision 456166) >+++ files/patch-mod__auth__mysql.c (working copy) >@@ -1,4 +1,4 @@ >---- mod_auth_mysql.c.orig 2005-06-22 16:17:45 UTC >+--- mod_auth_mysql.c.orig 2017-12-12 14:51:29 UTC > +++ mod_auth_mysql.c > @@ -98,6 +98,10 @@ > #define _PORT STRING(PORT) >@@ -149,9 +149,25 @@ > OR_AUTHCFG, "mysql character set to be used"), > > { NULL } >-@@ -905,7 +913,16 @@ static char * format_remote_host(request >+@@ -806,12 +814,14 @@ static char hex2chr(char * in) { >+ /* Checks scrambled passwords */ >+ static short pw_scrambled(POOL * pool, const char * real_pw, const char * sent_pw, const char * salt) { >+ char * encrypted_sent_pw = PCALLOC(pool, SCRAMBLED_PASSWORD_CHAR_LENGTH+1); >++ void my_make_scrambled_password(char *to, const char *password, size_t pass_len); >++ >+ #ifdef SCRAMBLED_PASSWORD_CHAR_LENGTH_323 /* If we may need to use old password */ >+ if (real_pw[0] != '*') >+ make_scrambled_password_323(encrypted_sent_pw, sent_pw); >+ else >+ #endif >+- make_scrambled_password(encrypted_sent_pw, sent_pw); >++ my_make_scrambled_password(encrypted_sent_pw, sent_pw, strlen(sent_pw)); >+ return strcmp(real_pw, encrypted_sent_pw) == 0; > } > >+@@ -905,7 +915,16 @@ static char * format_remote_host(request >+ } >+ > static char * format_remote_ip(request_rec * r, char ** parm) { > - return r->connection->remote_ip; > +/* >@@ -167,7 +183,7 @@ > } > > static char * format_filename(request_rec * r, char ** parm) { >-@@ -1270,7 +1287,7 @@ static int mysql_check_auth(request_rec >+@@ -1270,7 +1289,7 @@ static int mysql_check_auth(request_rec > int method = r->method_number; > > #ifdef APACHE2 > >Property changes on: files/patch-mod__auth__mysql.c >___________________________________________________________________ >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 224046
:
188754