Title: ASN.1 DER encoding of SEQUENCE components with DEFAULT values

Openssl Team,
I have one question regarding DER encoding of the SEQUENCE/SET components.
According to the "A Layman's Guide to a Subset of ASN.1, BER, and DER" document, if the value of a SEQUENCE or SET component with DEFAULT qualifier is the default value, the encoding of that component in not supposed to be included in contents octets.

Openssl does not seem to follow this rule with "version" member of structures like X509_CINF, OCSP_REQUEST, OCSP_RESPDATA. Is this ASN.1 encoding behavior in openssl library by design or is it something you plan to change ?

Regards,
Stefan Kotes

Reply via email to