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/3cfd1190dfdb
branches:  trunk
changeset: 359431:3cfd1190dfdb
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 ebaa7a489fd2 -r 3cfd1190dfdb 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