On Mon, Aug 16, 2004, Michael Bell wrote:

> Hi,
> 
> I'm experimenting with CRL serials to avoid crashes if there is a 
> problem with the crl number file. Actually I extracted the CRL serial as 
> an ASN1_OBJECT from the extension by comparing the NIDs. I also now how 
> to convert an ASN1_INTEGER to long but how can I extract an ASN1_INTEGER 
> from an ASN1_OBJECT. Usually this is a tricky macro but I cannot find 
> it. Does somebody know how I get an ASN1_INTEGER?
> 
> There is a function pointer v3_crl_num. Can I use a function from this 
> array?
> 

I'm assuming you want the CRL number extension from a CRL? If so
X509_CRL_get_ext_d2i() will do the trick, you get back an ASN1_INTEGER.

This is documented in doc/openssl.txt

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
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to