]> wagner.pp.ru Git - openssl-gost/engine.git/commitdiff
asn1: make hash_params optional
authorVitaly Chikunov <vt@altlinux.org>
Mon, 21 Jan 2019 05:15:19 +0000 (08:15 +0300)
committerVitaly Chikunov <vt@altlinux.org>
Mon, 21 Jan 2019 09:00:02 +0000 (12:00 +0300)
1323565.1.023-2018 defines in the `parameters' for
`AlgorithmIdentifier' field `digestParamSet' is optional.

gost_asn1.c

index 502d1eb7f75786a5f238ded65fb3223bf531bbee..1a907025582019b5420d1e7f70ee0464e6d23a12 100644 (file)
@@ -36,7 +36,7 @@ IMPLEMENT_ASN1_FUNCTIONS(GOST_KEY_AGREEMENT_INFO)
 ASN1_NDEF_SEQUENCE(GOST_KEY_PARAMS) =
 {
     ASN1_SIMPLE(GOST_KEY_PARAMS, key_params, ASN1_OBJECT),
-    ASN1_SIMPLE(GOST_KEY_PARAMS, hash_params, ASN1_OBJECT),
+    ASN1_OPT(GOST_KEY_PARAMS, hash_params, ASN1_OBJECT),
     ASN1_OPT(GOST_KEY_PARAMS, cipher_params, ASN1_OBJECT),
 } ASN1_NDEF_SEQUENCE_END(GOST_KEY_PARAMS)
 IMPLEMENT_ASN1_FUNCTIONS(GOST_KEY_PARAMS)