From: David Benjamin Date: Sun, 20 May 2018 18:37:06 +0000 (-0400) Subject: Use OPENSSL_EC_EXPLICIT_CURVE constant. X-Git-Tag: OpenSSL_1_1_1-pre7~16 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e363534cfe0ae01503dde6963e0631ec5f7fef3f;p=oweals%2Fopenssl.git Use OPENSSL_EC_EXPLICIT_CURVE constant. Reviewed-by: Rich Salz (Merged from https://github.com/openssl/openssl/pull/6314) --- diff --git a/crypto/ec/ec_asn1.c b/crypto/ec/ec_asn1.c index 2ce4d160f8..33c4c23005 100644 --- a/crypto/ec/ec_asn1.c +++ b/crypto/ec/ec_asn1.c @@ -841,7 +841,7 @@ EC_GROUP *EC_GROUP_new_from_ecpkparameters(const ECPKPARAMETERS *params) ECerr(EC_F_EC_GROUP_NEW_FROM_ECPKPARAMETERS, ERR_R_EC_LIB); return NULL; } - EC_GROUP_set_asn1_flag(ret, 0x0); + EC_GROUP_set_asn1_flag(ret, OPENSSL_EC_EXPLICIT_CURVE); } else if (params->type == 2) { /* implicitlyCA */ return NULL; } else {