summaryrefslogtreecommitdiff
path: root/lib/libcrypto/hmac
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2024-08-31 10:42:22 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2024-08-31 10:42:22 +0000
commit16ca427c59f808b8a744a711eebb85c84325d4c7 (patch)
tree72dd2ce3857676774b127e02cc50c2aed49cc94f /lib/libcrypto/hmac
parent9faf9a8d47e6dcab8151359c2e42fbaf096227aa (diff)
Zap HMAC_Init
Long deprecated, last users have been fixed. ok beck jsing
Diffstat (limited to 'lib/libcrypto/hmac')
-rw-r--r--lib/libcrypto/hmac/hmac.c11
-rw-r--r--lib/libcrypto/hmac/hmac.h4
2 files changed, 2 insertions, 13 deletions
diff --git a/lib/libcrypto/hmac/hmac.c b/lib/libcrypto/hmac/hmac.c
index 1315b1a0d2c..dc1614d3ce5 100644
--- a/lib/libcrypto/hmac/hmac.c
+++ b/lib/libcrypto/hmac/hmac.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: hmac.c,v 1.35 2024/06/01 07:36:16 tb Exp $ */
+/* $OpenBSD: hmac.c,v 1.36 2024/08/31 10:42:21 tb Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -137,15 +137,6 @@ err:
LCRYPTO_ALIAS(HMAC_Init_ex);
int
-HMAC_Init(HMAC_CTX *ctx, const void *key, int len, const EVP_MD *md)
-{
- if (key && md)
- HMAC_CTX_init(ctx);
- return HMAC_Init_ex(ctx, key, len, md, NULL);
-}
-LCRYPTO_ALIAS(HMAC_Init);
-
-int
HMAC_Update(HMAC_CTX *ctx, const unsigned char *data, size_t len)
{
if (ctx->md == NULL)
diff --git a/lib/libcrypto/hmac/hmac.h b/lib/libcrypto/hmac/hmac.h
index 0f39009c9da..6f29972aadc 100644
--- a/lib/libcrypto/hmac/hmac.h
+++ b/lib/libcrypto/hmac/hmac.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: hmac.h,v 1.19 2024/07/09 07:57:57 tb Exp $ */
+/* $OpenBSD: hmac.h,v 1.20 2024/08/31 10:42:21 tb Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -82,8 +82,6 @@ HMAC_CTX *HMAC_CTX_new(void);
void HMAC_CTX_free(HMAC_CTX *ctx);
int HMAC_CTX_reset(HMAC_CTX *ctx);
-int HMAC_Init(HMAC_CTX *ctx, const void *key, int len, const EVP_MD *md)
- __attribute__ ((__bounded__(__buffer__, 2, 3)));
int HMAC_Init_ex(HMAC_CTX *ctx, const void *key, int len, const EVP_MD *md,
ENGINE *impl)
__attribute__ ((__bounded__(__buffer__, 2, 3)));