Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/crypto/external/bsd/openssl/dist/crypto/bn Add a (void *) ca...



details:   https://anonhg.NetBSD.org/src/rev/34fcd027a0bd
branches:  trunk
changeset: 359521:34fcd027a0bd
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Feb 13 22:29:14 2018 +0000

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

diffstat:

 crypto/external/bsd/openssl/dist/crypto/bn/bn_rand.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 75b10efb3a70 -r 34fcd027a0bd crypto/external/bsd/openssl/dist/crypto/bn/bn_rand.c
--- a/crypto/external/bsd/openssl/dist/crypto/bn/bn_rand.c      Tue Feb 13 19:37:30 2018 +0000
+++ b/crypto/external/bsd/openssl/dist/crypto/bn/bn_rand.c      Tue Feb 13 22:29:14 2018 +0000
@@ -232,7 +232,7 @@
         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));



Home | Main Index | Thread Index | Old Index