From: Vitaly Chikunov Date: Mon, 21 Jan 2019 05:15:19 +0000 (+0300) Subject: asn1: make hash_params optional X-Git-Tag: v3.0.0~314^2~2 X-Git-Url: http://www.wagner.pp.ru/gitweb/?a=commitdiff_plain;h=a7469c634396ab6da0b412bcc56f6495d5da9593;p=openssl-gost%2Fengine.git asn1: make hash_params optional R 1323565.1.023-2018 defines in the `parameters' for `AlgorithmIdentifier' field `digestParamSet' is optional. --- diff --git a/gost_asn1.c b/gost_asn1.c index 502d1eb..1a90702 100644 --- a/gost_asn1.c +++ b/gost_asn1.c @@ -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)