Module Name:    src
Committed By:   christos
Date:           Tue Feb 13 22:29:14 UTC 2018

Modified Files:
        src/crypto/external/bsd/openssl/dist/crypto/bn: bn_rand.c

Log Message:
Add a (void *) cast to make things compile with our own sha2 header


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.5 -r1.2 \
    src/crypto/external/bsd/openssl/dist/crypto/bn/bn_rand.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/crypto/external/bsd/openssl/dist/crypto/bn/bn_rand.c
diff -u src/crypto/external/bsd/openssl/dist/crypto/bn/bn_rand.c:1.1.1.5 src/crypto/external/bsd/openssl/dist/crypto/bn/bn_rand.c:1.2
--- src/crypto/external/bsd/openssl/dist/crypto/bn/bn_rand.c:1.1.1.5	Thu Feb  8 15:56:49 2018
+++ src/crypto/external/bsd/openssl/dist/crypto/bn/bn_rand.c	Tue Feb 13 17:29:14 2018
@@ -232,7 +232,7 @@ int BN_generate_dsa_nonce(BIGNUM *out, c
         if (RAND_bytes(random_bytes, sizeof(random_bytes)) != 1)
             goto err;
         SHA512_Init(&sha);
-        SHA512_Update(&sha, &done, sizeof(done));
+        SHA512_Update(&sha, (void *)&done, sizeof(done));
         SHA512_Update(&sha, private_bytes, sizeof(private_bytes));
         SHA512_Update(&sha, message, message_len);
         SHA512_Update(&sha, random_bytes, sizeof(random_bytes));

Reply via email to