diff options
| author | tb <> | 2024-08-31 10:42:21 +0000 |
|---|---|---|
| committer | tb <> | 2024-08-31 10:42:21 +0000 |
| commit | 49dd9dd6066796148cceffc28570ac4ba886e6f0 (patch) | |
| tree | 90f3cf1cb1bf531bd7dfe87fad014ab5e62033b5 /src/lib/libcrypto/hmac/hmac.c | |
| parent | 74a335fca70cbc1c69a8939c41ad12d0a6414a99 (diff) | |
| download | openbsd-49dd9dd6066796148cceffc28570ac4ba886e6f0.tar.gz openbsd-49dd9dd6066796148cceffc28570ac4ba886e6f0.tar.bz2 openbsd-49dd9dd6066796148cceffc28570ac4ba886e6f0.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.c | 11 |
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: | |||
| 137 | LCRYPTO_ALIAS(HMAC_Init_ex); | 137 | LCRYPTO_ALIAS(HMAC_Init_ex); |
| 138 | 138 | ||
| 139 | int | 139 | int |
| 140 | HMAC_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 | } | ||
| 146 | LCRYPTO_ALIAS(HMAC_Init); | ||
| 147 | |||
| 148 | int | ||
| 149 | HMAC_Update(HMAC_CTX *ctx, const unsigned char *data, size_t len) | 140 | HMAC_Update(HMAC_CTX *ctx, const unsigned char *data, size_t len) |
| 150 | { | 141 | { |
| 151 | if (ctx->md == NULL) | 142 | if (ctx->md == NULL) |
