Re: ASN1_IA5STRING to char*

2011-09-14 Thread Shane G
I doubt it is the preferred method but you can get at the character data via the ' data' parameter. In case of embedded nulls you can use the length member too. On Sep 14, 2011 5:48 AM, "Arunkumar Manickam" wrote: > Hi, > > How do I convert an ASN1_IA5STRING to char* . > > Thanks in advance, > Ar

Is there a better way to set the SKI in the OpenSSL API?

2011-09-13 Thread Shane G
I'm writing code to modify the subject key identifier for a cert. I've noticed that when the new SKI is written out that it doesn't have the ASN1 tag for the OCTET_STRING prepended to the data (0x0414 for the SKI). I've written the following code to work around that but it seems overly complicated