On Thu, Jan 12, 2006, Szabolcs Berecz wrote:

> Ok, but how can I create a sequence?
> 
> I have to create this structure and convert to DER:
> sequence {
>     integer
>     octetstring
> }
> 
> For integer I can use ASN1_INTEGER_new, ASN1_INTEGER_set and
> i2d_ASN1_INTEGER. The same for octetstring. But how can I put these in
> a sequence?
> 

Well the usual way is to write an ASN1 module, there are loads of examples of
those in OpenSSL.

However in this case there's actually a function that does it already called
ASN1_TYPE_set_int_octetstring().

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                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to