blob: a258a7db646b95fc79c3118acb3849482584a0eb (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
--- src/util/crypto/nss/nss_sha512crypt.c.orig 2014-09-17 13:01:37 UTC
+++ src/util/crypto/nss/nss_sha512crypt.c
@@ -29,6 +29,12 @@
#include <sechash.h>
#include <pk11func.h>
+static void *
+mempcpy (void *dest, const void *src, size_t n)
+{
+ return (char *) memcpy (dest, src, n) + n;
+}
+
/* Define our magic string to mark salt for SHA512 "encryption" replacement. */
const char sha512_salt_prefix[] = "$6$";
#define SALT_PREF_SIZE (sizeof(sha512_salt_prefix) - 1)
|