On Fri, Jun 05, 2009, Chris Bare wrote: > I'm trying to understand the ASN1 macros like: > ASN1_SEQUENCE > IMPLEMENT_ASN1_FUNCTIONS > etc to implement my own structures. > > What examples in the code would be best to follow, especially for nested > structures with optional elements?
Well some of the older ones needed all sorts of hacks to fit in with the previous scheme. The newest addition is the CMS code in crypto/cms/cms_asn1.c which uses most of the macros. Steve. -- Dr Stephen N. Henson. Email, S/MIME and PGP keys: see homepage OpenSSL project core developer and freelance consultant. Homepage: http://www.drh-consultancy.demon.co.uk ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org