aboutsummaryrefslogtreecommitdiff
path: root/security/sssd/files/patch-src__util__crypto__nss__nss_sha512crypt.c
diff options
context:
space:
mode:
Diffstat (limited to 'security/sssd/files/patch-src__util__crypto__nss__nss_sha512crypt.c')
-rw-r--r--security/sssd/files/patch-src__util__crypto__nss__nss_sha512crypt.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/security/sssd/files/patch-src__util__crypto__nss__nss_sha512crypt.c b/security/sssd/files/patch-src__util__crypto__nss__nss_sha512crypt.c
new file mode 100644
index 000000000000..12631e967506
--- /dev/null
+++ b/security/sssd/files/patch-src__util__crypto__nss__nss_sha512crypt.c
@@ -0,0 +1,29 @@
+--- ./src/util/crypto/nss/nss_sha512crypt.c.orig 2011-08-29 11:39:05.000000000 -0400
++++ ./src/util/crypto/nss/nss_sha512crypt.c 2011-10-13 12:15:03.000000000 -0400
+@@ -10,7 +10,7 @@
+
+ #include "config.h"
+
+-#include <endian.h>
++#include <sys/endian.h>
+ #include <errno.h>
+ #include <limits.h>
+ #include <stdbool.h>
+@@ -267,7 +267,7 @@
+ goto done;
+ }
+
+- cp = __stpncpy(buffer, sha512_salt_prefix, SALT_PREF_SIZE);
++ cp = stpncpy(buffer, sha512_salt_prefix, SALT_PREF_SIZE);
+ buflen -= SALT_PREF_SIZE;
+
+ if (rounds_custom) {
+@@ -285,7 +285,7 @@
+ ret = ERANGE;
+ goto done;
+ }
+- cp = __stpncpy(cp, salt, salt_len);
++ cp = stpncpy(cp, salt, salt_len);
+ *cp++ = '$';
+ buflen -= salt_len + 1;
+