[openssl-users] M_ASN1_D2I_* replacement in OpenSSL 1.1.0
Dr. Stephen Henson
steve at openssl.org
Tue Sep 20 11:51:51 UTC 2016
On Tue, Sep 20, 2016, Aleksandr Konstantinov wrote:
> Thanks a lot. One more question if possible. Is there any way to express
> single element of the ASN1 sequence which can be any
> of ASN1_OCTET_STRING or ASN1_UTF8STRING and potentially other types?
That depends what you mean. If the supported types are well defined then you
can use the CHOICE construction.
If just about anything could go in the element then you can use ASN1_ANY which
encodes and decodes ASN1_TYPE.
Dr Stephen N. Henson. OpenSSL project core developer.
Commercial tech support now available see: http://www.openssl.org
More information about the openssl-users