summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2024-10-22 12:02:44 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2024-10-22 12:02:44 +0000
commit84659c729cf5d1214b487c26d608f164c422dd54 (patch)
tree424f8b6c35b3ee2984994f22e8659ac68e8d83df /lib
parent5b35c9fbe68e11041130d9e75b8de64c8dd7b10d (diff)
Inline a use of EC_GROUP_method_of()
We can just reach into the group to obtain its EC_GROUP_METHOD. After all ec_local.h has to be in scope. This will permit marking this ugly API as unused internally after the next commit. ok jsing
Diffstat (limited to 'lib')
-rw-r--r--lib/libcrypto/ec/ec_key.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libcrypto/ec/ec_key.c b/lib/libcrypto/ec/ec_key.c
index e959829478f..38a5582ba0d 100644
--- a/lib/libcrypto/ec/ec_key.c
+++ b/lib/libcrypto/ec/ec_key.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ec_key.c,v 1.40 2024/03/27 01:22:30 tb Exp $ */
+/* $OpenBSD: ec_key.c,v 1.41 2024/10/22 12:02:43 tb Exp $ */
/*
* Written by Nils Larsch for the OpenSSL project.
*/
@@ -135,7 +135,7 @@ EC_KEY_copy(EC_KEY *dest, const EC_KEY *src)
}
/* copy the parameters */
if (src->group) {
- const EC_METHOD *meth = EC_GROUP_method_of(src->group);
+ const EC_METHOD *meth = src->group->meth;
/* clear the old group */
EC_GROUP_free(dest->group);
dest->group = EC_GROUP_new(meth);