diff options
author | tb <> | 2023-11-29 21:35:57 +0000 |
---|---|---|
committer | tb <> | 2023-11-29 21:35:57 +0000 |
commit | fc4faac9b396d551d0f7729a4dffa6ee31ac2d3e (patch) | |
tree | 545e6a340462469cf3c04b8bfe5d2a0f9f885ddb /src/lib/libcrypto/hmac | |
parent | 0423d363b45d6891ba1e59c1ae770ef1443bf41c (diff) | |
download | openbsd-fc4faac9b396d551d0f7729a4dffa6ee31ac2d3e.tar.gz openbsd-fc4faac9b396d551d0f7729a4dffa6ee31ac2d3e.tar.bz2 openbsd-fc4faac9b396d551d0f7729a4dffa6ee31ac2d3e.zip |
Ignore ENGINE at the API boundary
This removes the remaining ENGINE members from various internal structs
and functions. Any ENGINE passed into a public API is now completely
ignored functions returning an ENGINE always return NULL.
ok jsing
Diffstat (limited to 'src/lib/libcrypto/hmac')
-rw-r--r-- | src/lib/libcrypto/hmac/hm_pmeth.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/hmac/hm_pmeth.c b/src/lib/libcrypto/hmac/hm_pmeth.c index bb043d1a23..5ec86aa095 100644 --- a/src/lib/libcrypto/hmac/hm_pmeth.c +++ b/src/lib/libcrypto/hmac/hm_pmeth.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: hm_pmeth.c,v 1.15 2022/11/26 16:08:53 tb Exp $ */ | 1 | /* $OpenBSD: hm_pmeth.c,v 1.16 2023/11/29 21:35:57 tb Exp $ */ |
2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
3 | * project 2007. | 3 | * project 2007. |
4 | */ | 4 | */ |
@@ -204,7 +204,7 @@ pkey_hmac_ctrl(EVP_PKEY_CTX *ctx, int type, int p1, void *p2) | |||
204 | case EVP_PKEY_CTRL_DIGESTINIT: | 204 | case EVP_PKEY_CTRL_DIGESTINIT: |
205 | key = ctx->pkey->pkey.ptr; | 205 | key = ctx->pkey->pkey.ptr; |
206 | if (!HMAC_Init_ex(&hctx->ctx, key->data, key->length, hctx->md, | 206 | if (!HMAC_Init_ex(&hctx->ctx, key->data, key->length, hctx->md, |
207 | ctx->engine)) | 207 | NULL)) |
208 | return 0; | 208 | return 0; |
209 | break; | 209 | break; |
210 | 210 | ||