Created
May 24, 2016 15:14
-
-
Save hron84/d4dc6f66f0bf45c2163e575b74587ba6 to your computer and use it in GitHub Desktop.
pam_auth_mysql OpenSSL MD5 Support patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh /usr/share/dpatch/dpatch-run | |
## 02_libpam.patch by Lars Bahner <[email protected]> | |
## | |
## All lines beginning with `## DP:' are a description of the patch. | |
## DP: This patch makes sure Makefile references -lpam | |
## to insure correct linking | |
@DPATCH@ | |
--- pam-mysql-0.7~RC1.orig/pam_mysql.c 2006-01-09 11:35:59.000000000 +0100 | |
+++ pam-mysql-0.7~RC1/pam_mysql.c 2016-05-24 16:48:59.664125029 +0200 | |
@@ -574,6 +574,8 @@ | |
} | |
#elif defined(USE_SOLARIS_MD5) | |
#define MD5(d, n, md) md5_calc(d, md, n) | |
+#elif defined(HAVE_OPENSSL) | |
+unsigned char *MD5(const unsigned char *d, size_t n, unsigned char *md); | |
#endif | |
#define HAVE_PAM_MYSQL_MD5_DATA | |
static char *pam_mysql_md5_data(const unsigned char *d, unsigned int sz, char *md) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment