Question about ASN.1

2001-03-08 Thread Antonio Ruiz Martínez

Hello!

I'm confused, when must I use the structure ASN1_TYPE and when must
I use the structure ASN1_OBJECT?

Thanks for yours answers,
regards,
Antonio.

--
--
Antonio Ruiz Martnez
Facultad de Informtica-Universidad de Murcia
30001 Murcia - Espaa (Spain)
Telf: +34-968-364644 e-mail: [EMAIL PROTECTED]
--


__
OpenSSL Project http://www.openssl.org
User Support Mailing List[EMAIL PROTECTED]
Automated List Manager   [EMAIL PROTECTED]



Re: Question about ASN.1

2001-03-08 Thread Dr S N Henson

Antonio Ruiz Martnez wrote:
 
 Hello!
 
 I'm confused, when must I use the structure ASN1_TYPE and when must
 I use the structure ASN1_OBJECT?
 

They are completely different things.

ASN1_OBJECT is an ASN1 OBJECT IDENTIFIER. ASN1_TYPE is a general type
which can read in just about any ASN1 structure. Its roughly equivalent
to the ASN1 "ANY" type. It will read in one ASN1 structure: for example
any string type, a complete SET or SEQUENCE. The string types include
the relevant type in the structure whereas a SEQUENCE, SET or implicitly
tagged type's whole encoding is stored.

Steve.
-- 
Dr Stephen N. Henson.   http://www.drh-consultancy.demon.co.uk/
Personal Email: [EMAIL PROTECTED] 
Senior crypto engineer, Celo Communications: http://www.celocom.com/
Core developer of the   OpenSSL project: http://www.openssl.org/
Business Email: [EMAIL PROTECTED] PGP key: via homepage.


__
OpenSSL Project http://www.openssl.org
User Support Mailing List[EMAIL PROTECTED]
Automated List Manager   [EMAIL PROTECTED]