'version' is not optional in the encoding
authorBodo Möller <bodo@openssl.org>
Wed, 17 Apr 2002 11:31:20 +0000 (11:31 +0000)
committerBodo Möller <bodo@openssl.org>
Wed, 17 Apr 2002 11:31:20 +0000 (11:31 +0000)
Submitted by: Nils Larsch

crypto/ecdsa/ecs_asn1.c

index f68081d..0b2baf7 100644 (file)
@@ -86,7 +86,7 @@ DECLARE_ASN1_ENCODE_FUNCTIONS_const(X9_62_CURVE, X9_62_CURVE)
 IMPLEMENT_ASN1_FUNCTIONS_const(X9_62_CURVE)
 
 ASN1_SEQUENCE(X9_62_EC_PARAMETERS) = {
-       ASN1_OPT(X9_62_EC_PARAMETERS, version, ASN1_INTEGER),
+       ASN1_SIMPLE(X9_62_EC_PARAMETERS, version, ASN1_INTEGER),
        ASN1_SIMPLE(X9_62_EC_PARAMETERS, fieldID, X9_62_FIELDID),
        ASN1_SIMPLE(X9_62_EC_PARAMETERS, curve, X9_62_CURVE),
        ASN1_SIMPLE(X9_62_EC_PARAMETERS, base, ASN1_OCTET_STRING),