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/ec/ec_key.c | |
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/ec/ec_key.c')
-rw-r--r-- | src/lib/libcrypto/ec/ec_key.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/ec/ec_key.c b/src/lib/libcrypto/ec/ec_key.c index 2716db6dd0..dd976898ad 100644 --- a/src/lib/libcrypto/ec/ec_key.c +++ b/src/lib/libcrypto/ec/ec_key.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ec_key.c,v 1.38 2023/11/19 15:46:09 tb Exp $ */ | 1 | /* $OpenBSD: ec_key.c,v 1.39 2023/11/29 21:35:57 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Written by Nils Larsch for the OpenSSL project. | 3 | * Written by Nils Larsch for the OpenSSL project. |
4 | */ | 4 | */ |
@@ -191,7 +191,7 @@ EC_KEY_dup(const EC_KEY *ec_key) | |||
191 | { | 191 | { |
192 | EC_KEY *ret; | 192 | EC_KEY *ret; |
193 | 193 | ||
194 | if ((ret = EC_KEY_new_method(ec_key->engine)) == NULL) | 194 | if ((ret = EC_KEY_new_method(NULL)) == NULL) |
195 | return NULL; | 195 | return NULL; |
196 | if (EC_KEY_copy(ret, ec_key) == NULL) { | 196 | if (EC_KEY_copy(ret, ec_key) == NULL) { |
197 | EC_KEY_free(ret); | 197 | EC_KEY_free(ret); |