aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/ec/ec_lib.c
diff options
context:
space:
mode:
authorTomas Mraz <tmraz@fedoraproject.org>2020-08-21 14:50:52 +0200
committerTomas Mraz <tmraz@fedoraproject.org>2020-09-17 17:15:15 +0200
commitfe2f8aecfe4a0de483334bf671a8eb4f14444c00 (patch)
treeebffe5ec2b8c7ee772f3c5a29c976dfac981e410 /crypto/ec/ec_lib.c
parentbde4aa8dc1946dff189c89396814a98d1052262d (diff)
downloadopenssl-fe2f8aecfe4a0de483334bf671a8eb4f14444c00.tar.gz
EC_KEY: add EC_KEY_decoded_from_explicit_params()
The function returns 1 when the encoding of a decoded EC key used explicit encoding of the curve parameters. Reviewed-by: David von Oheimb <david.von.oheimb@siemens.com> Reviewed-by: Nicola Tuveri <nic.tuv@gmail.com> (Merged from https://github.com/openssl/openssl/pull/12683)
Diffstat (limited to 'crypto/ec/ec_lib.c')
-rw-r--r--crypto/ec/ec_lib.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/ec/ec_lib.c b/crypto/ec/ec_lib.c
index d7752e953f..222df55632 100644
--- a/crypto/ec/ec_lib.c
+++ b/crypto/ec/ec_lib.c
@@ -243,6 +243,7 @@ int EC_GROUP_copy(EC_GROUP *dest, const EC_GROUP *src)
dest->asn1_flag = src->asn1_flag;
dest->asn1_form = src->asn1_form;
+ dest->decoded_from_explicit_params = src->decoded_from_explicit_params;
if (src->seed) {
OPENSSL_free(dest->seed);