Use named curve parameter encoding by default.
[openssl.git] / crypto / ec / ec_lib.c
index cc3dd350773d3e9cc0c4849552cbe3e976acd486..2dcdb40168301fa46ab8d30416c2fa092d6c11f1 100644 (file)
@@ -106,7 +106,7 @@ EC_GROUP *EC_GROUP_new(const EC_METHOD *meth)
         goto err;
 
     ret->curve_name = 0;
-    ret->asn1_flag = 0;
+    ret->asn1_flag = OPENSSL_EC_NAMED_CURVE;
     ret->asn1_form = POINT_CONVERSION_UNCOMPRESSED;
 
     ret->seed = NULL;