summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/hmac/hmac.c
diff options
context:
space:
mode:
authortb <>2024-08-31 10:42:21 +0000
committertb <>2024-08-31 10:42:21 +0000
commit50e7b8e3a51beeb992068b20edea932e63a73b3c (patch)
tree90f3cf1cb1bf531bd7dfe87fad014ab5e62033b5 /src/lib/libcrypto/hmac/hmac.c
parent5f2f30a42713c09c044e2c44e73efbb410607666 (diff)
downloadopenbsd-50e7b8e3a51beeb992068b20edea932e63a73b3c.tar.gz
openbsd-50e7b8e3a51beeb992068b20edea932e63a73b3c.tar.bz2
openbsd-50e7b8e3a51beeb992068b20edea932e63a73b3c.zip
Zap HMAC_Init
Long deprecated, last users have been fixed. ok beck jsing
Diffstat (limited to 'src/lib/libcrypto/hmac/hmac.c')
-rw-r--r--src/lib/libcrypto/hmac/hmac.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/lib/libcrypto/hmac/hmac.c b/src/lib/libcrypto/hmac/hmac.c
index 1315b1a0d2..dc1614d3ce 100644
--- a/src/lib/libcrypto/hmac/hmac.c
+++ b/src/lib/libcrypto/hmac/hmac.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: hmac.c,v 1.35 2024/06/01 07:36:16 tb Exp $ */ 1/* $OpenBSD: hmac.c,v 1.36 2024/08/31 10:42:21 tb Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -137,15 +137,6 @@ err:
137LCRYPTO_ALIAS(HMAC_Init_ex); 137LCRYPTO_ALIAS(HMAC_Init_ex);
138 138
139int 139int
140HMAC_Init(HMAC_CTX *ctx, const void *key, int len, const EVP_MD *md)
141{
142 if (key && md)
143 HMAC_CTX_init(ctx);
144 return HMAC_Init_ex(ctx, key, len, md, NULL);
145}
146LCRYPTO_ALIAS(HMAC_Init);
147
148int
149HMAC_Update(HMAC_CTX *ctx, const unsigned char *data, size_t len) 140HMAC_Update(HMAC_CTX *ctx, const unsigned char *data, size_t len)
150{ 141{
151 if (ctx->md == NULL) 142 if (ctx->md == NULL)