Skip to content

Instantly share code, notes, and snippets.

@hron84
Created May 24, 2016 15:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hron84/d4dc6f66f0bf45c2163e575b74587ba6 to your computer and use it in GitHub Desktop.
Save hron84/d4dc6f66f0bf45c2163e575b74587ba6 to your computer and use it in GitHub Desktop.
pam_auth_mysql OpenSSL MD5 Support patch
#! /bin/sh /usr/share/dpatch/dpatch-run
## 02_libpam.patch by Lars Bahner <bahner@debian.org>
##
## 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