On Thu, Sep 09, 2004, Smith Baylor wrote: > Hi, > > How can you create a STACK_OF(X509) object from a given X509 CA Cert? > > X509 *x509ca; > STACK_OF(X509) *ca; > > x509ca = ReadX509Cert("file_name"); > > Now how to populate the ca object with this x509ca object? >
There is some old documentation in doc/ssleay.txt in the bit marked "stack.doc". The STACK_OF(whatever) has the same functionality but the you use different macro names, specificall sk_whatever_macroname. So for example you'd use x509ca = sk_X509_new_null() to create the thing and sk_X509_push() to append X509 (certificate) structures to it. 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]