diff options
author | Lev A. Serebryakov <lev@FreeBSD.org> | 2018-04-16 12:06:03 +0000 |
---|---|---|
committer | Lev A. Serebryakov <lev@FreeBSD.org> | 2018-04-16 12:06:03 +0000 |
commit | 400551dd60fa0720deb95c14bfcab6b3e81e61cc (patch) | |
tree | 65ea828ba951c6aaf0ba88e24aad333b791ff038 /security/pam_pwdfile/files | |
parent | abd6045fe671b70323a58f088bce014fdb41885c (diff) | |
download | ports-400551dd60fa0720deb95c14bfcab6b3e81e61cc.tar.gz ports-400551dd60fa0720deb95c14bfcab6b3e81e61cc.zip |
Update to latest release 1.0.
Reset maintainer to myself (maintainer approved).
PR: 227494
Submitted by: lev
Approved by: mschout@gkg.net
Notes
Notes:
svn path=/head/; revision=467479
Diffstat (limited to 'security/pam_pwdfile/files')
-rw-r--r-- | security/pam_pwdfile/files/patch-bigcrypt.c | 11 | ||||
-rw-r--r-- | security/pam_pwdfile/files/patch-md5.c | 20 | ||||
-rw-r--r-- | security/pam_pwdfile/files/patch-pam_pwdfile.c | 33 |
3 files changed, 53 insertions, 11 deletions
diff --git a/security/pam_pwdfile/files/patch-bigcrypt.c b/security/pam_pwdfile/files/patch-bigcrypt.c deleted file mode 100644 index c609f8988173..000000000000 --- a/security/pam_pwdfile/files/patch-bigcrypt.c +++ /dev/null @@ -1,11 +0,0 @@ ---- bigcrypt.c.orig 2009-09-04 18:37:28.000000000 -0500 -+++ bigcrypt.c 2009-09-04 18:37:30.000000000 -0500 -@@ -25,7 +25,7 @@ - */ - - #include <string.h> --#include <security/_pam_macros.h> -+#include "_pam_macros.h" - - char *crypt(const char *key, const char *salt); - char *bigcrypt(const char *key, const char *salt); diff --git a/security/pam_pwdfile/files/patch-md5.c b/security/pam_pwdfile/files/patch-md5.c new file mode 100644 index 000000000000..91fd576ad619 --- /dev/null +++ b/security/pam_pwdfile/files/patch-md5.c @@ -0,0 +1,20 @@ +--- md5.c.orig 2018-04-13 14:15:16.302782000 +0300 ++++ md5.c 2018-04-13 14:25:07.662155000 +0300 +@@ -17,7 +17,7 @@ + */ + + #include <string.h> +-#include <byteswap.h> ++#include <sys/endian.h> + #include "md5.h" + + #ifndef HIGHFIRST +@@ -25,7 +25,7 @@ + #else + static void byteReverse(unsigned char *buf, unsigned longs) { + for (; longs; --longs, buf +=4) +- *((uint32_t *) buf) = bswap_32(*((uint32_t *) buf)); ++ *((uint32_t *) buf) = bswap32(*((uint32_t *) buf)); + } + #endif + diff --git a/security/pam_pwdfile/files/patch-pam_pwdfile.c b/security/pam_pwdfile/files/patch-pam_pwdfile.c new file mode 100644 index 000000000000..911ea6fa4992 --- /dev/null +++ b/security/pam_pwdfile/files/patch-pam_pwdfile.c @@ -0,0 +1,33 @@ +--- pam_pwdfile.c.orig 2018-04-13 14:25:49.414568000 +0300 ++++ pam_pwdfile.c 2018-04-13 14:42:33.040919000 +0300 +@@ -38,18 +38,7 @@ + * OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +-#ifdef USE_CRYPT_R +-#define _GNU_SOURCE +-#include <crypt.h> +-#else +-#ifndef _XOPEN_SOURCE +-#define _XOPEN_SOURCE 700 +-#endif +-#ifndef _BSD_SOURCE +-#define _BSD_SOURCE +-#endif +-#endif +- ++#include <stdint.h> + #include <syslog.h> + #include <stdio.h> + #include <stdlib.h> +@@ -66,7 +55,9 @@ + + #define PAM_SM_AUTH + #include <security/pam_modules.h> +-#include <security/pam_ext.h> ++/* #include <security/pam_ext.h> */ ++ ++#define pam_syslog(H, C, ...) syslog(C, __VA_ARGS__) + + #include "md5.h" + #include "bigcrypt.h" |