On Tue, Jun 22, 2004, Earl Hood wrote:

> 
> Does openssl have generic ASN.1 routines?  I'd like to create and
> manipulate my own ASN.1 data structures, but I an having trouble
> understanding what ASN functions are documented in openssl.  I do
> not know if my trouble is due to me being new to ASN.1 stuff, or
> the openssl ASN.1 functions are designed more for openssl-specific
> tasks.
> 
> If openssl is not the best for generic ASN.1 processing (although
> I will be doing some crypto-related operations), what C libraries
> exist that provide good ASN.1 support.
> 

You can create your own ASN1 structures using OpenSSL but this isn't
documented at present. However people have written their own ASN1 modules just
by examining the existing ones.

You should only use OpenSSL 0.9.7 or later.

If you examine (for example) crypto/ocsp/ocsp_asn.c and the corresponding
header file ocsp.h this should give you some idea of how things are done.

A new module will create i2d_*(), d2i_*(), *_new() and *_free() functions
which will behave like the existing examples: that behaviour is documented.

Steve.
--
Dr Stephen N. Henson. Email, S/MIME and PGP keys: see homepage
OpenSSL project core developer and freelance consultant.
Funding needed! Details on homepage.
Homepage: http://www.drh-consultancy.demon.co.uk
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to