summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/ec
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/ec')
-rw-r--r--src/lib/libcrypto/ec/ec_key.c4
-rw-r--r--src/lib/libcrypto/ec/ec_local.h3
2 files changed, 3 insertions, 4 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);
diff --git a/src/lib/libcrypto/ec/ec_local.h b/src/lib/libcrypto/ec/ec_local.h
index 3252eeb1c8..6ea78eaac4 100644
--- a/src/lib/libcrypto/ec/ec_local.h
+++ b/src/lib/libcrypto/ec/ec_local.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: ec_local.h,v 1.26 2023/07/28 15:50:33 tb Exp $ */ 1/* $OpenBSD: ec_local.h,v 1.27 2023/11/29 21:35:57 tb Exp $ */
2/* 2/*
3 * Originally written by Bodo Moeller for the OpenSSL project. 3 * Originally written by Bodo Moeller for the OpenSSL project.
4 */ 4 */
@@ -223,7 +223,6 @@ struct ec_group_st {
223 223
224struct ec_key_st { 224struct ec_key_st {
225 const EC_KEY_METHOD *meth; 225 const EC_KEY_METHOD *meth;
226 ENGINE *engine;
227 226
228 int version; 227 int version;
229 228