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.old/dist/crypto/hmac add reset, ...



details:   https://anonhg.NetBSD.org/src/rev/ca1b1f3baed2
branches:  trunk
changeset: 829732:ca1b1f3baed2
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Feb 09 17:11:14 2018 +0000

description:
add reset, needed by nsd.

diffstat:

 crypto/external/bsd/openssl.old/dist/crypto/hmac/hmac.h |  6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diffs (16 lines):

diff -r cf1b65e66af2 -r ca1b1f3baed2 crypto/external/bsd/openssl.old/dist/crypto/hmac/hmac.h
--- a/crypto/external/bsd/openssl.old/dist/crypto/hmac/hmac.h   Fri Feb 09 16:52:53 2018 +0000
+++ b/crypto/external/bsd/openssl.old/dist/crypto/hmac/hmac.h   Fri Feb 09 17:11:14 2018 +0000
@@ -119,6 +119,12 @@
        HMAC_CTX_cleanup(ctx);
        free(ctx);
 }
+
+static inline void HMAC_CTX_reset(HMAC_CTX *ctx)
+{
+       HMAC_CTX_cleanup(ctx);
+       HMAC_CTX_init(ctx);
+}
 #endif
 
 



Home | Main Index | Thread Index | Old Index