Hello, I am trying to build a custom asn1 structure in my program using openssl 0.9.6. The structure will have a few sequences / sets with integers, printablestrings, etc.
I am looking for some help on where to begin. I have been pouring over the openssl code, and have been playing with various methods of creating this ans1 structure but i haven't been able to create quite what i need. Are there some good examples out there too look at? Im currently doing things this way: create ASN1_STRING, ASN1_INTEGER..etc i2d all of them with null and get total size call ASN1_object_size(1,i,V_ASN1_SEQUENCE); to get total size. malloc new data size. i2d with newly malloc'd data. and finally ASN1_STRING_set(seq,data,total); But this does not really product what i need. I need something like: sequence set object objectname printable string string integer value Any help would be apreciated.