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/hmac more openssl-1....
details: https://anonhg.NetBSD.org/src/rev/fd202e4f89ea
branches: trunk
changeset: 359249:fd202e4f89ea
user: christos <christos%NetBSD.org@localhost>
date: Mon Feb 05 16:12:52 2018 +0000
description:
more openssl-1.1 compat.
diffstat:
crypto/external/bsd/openssl/dist/crypto/hmac/hmac.h | 20 ++++++++++++++++++++
1 files changed, 20 insertions(+), 0 deletions(-)
diffs (30 lines):
diff -r dc0a1e9a7a45 -r fd202e4f89ea crypto/external/bsd/openssl/dist/crypto/hmac/hmac.h
--- a/crypto/external/bsd/openssl/dist/crypto/hmac/hmac.h Mon Feb 05 16:09:09 2018 +0000
+++ b/crypto/external/bsd/openssl/dist/crypto/hmac/hmac.h Mon Feb 05 16:12:52 2018 +0000
@@ -102,6 +102,26 @@
void HMAC_CTX_set_flags(HMAC_CTX *ctx, unsigned long flags);
+#ifdef OPENSSL_VERSION_NUMBER >= 0x10100000L
+static inline HMAC_CTX *HMAC_CTX_new(void)
+{
+ HMAC_CTX *ctx = malloc(sizeof(*ctx));
+ if (ctx == NULL)
+ return NULL;
+ HMAC_CTX_init(ctx);
+ return ctx;
+}
+
+static inline void HMAC_CTX_free(HMAC_CTX *ctx)
+{
+ if (ctx == NULL)
+ return;
+ HMAC_CTX_cleanup(ctx);
+ free(ctx);
+}
+#endif
+
+
#ifdef __cplusplus
}
#endif
Home |
Main Index |
Thread Index |
Old Index