On Sun, Jun 23, 2002, Michael Voucko wrote:

> Hi list,
> 
> still trying to get all the ASN1 stuff done I need.
> My current problem is caused by an extra tag/length pair when using my
> DIRECTORY_STRING implementation.
> 

An equivalent to DirectoryString is already in OpenSSL but
it uses a special syntax.

This is partly to retain compatibility with previous
versions of OpenSSL and partly to avoid unnecessarily 
complex structures.

Basically these types use an ASN1_STRING structure
and use the 'type' field to work out which string
type is relevant.

This uses the format:

IMPLEMENT_ASN1_MSTRING(name, bitmap)

where 'bitmap' is the set of supported string
types ored together.

Look for DIRECTORYSTRING in crypto/asn1/*
and it should give you the general idea.

Steve.
--
Dr. Stephen Henson      [EMAIL PROTECTED]            
OpenSSL Project         http://www.openssl.org/~steve/
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to