* Kurt Roeckx: >> 2. i2c_ASN1_INTEGER() is no longer available outside the OpenSSL code >> base. What am I supposed to use instead? (What is this "context >> encoding", anyway?) > > I think you mean "content".
Yes. > I didn't really look all that close at the asn1 stuff, but from what I > understand it's contains the content bytes in asn1 format, and it's > probably not something you want to do and you want to do. Can you > point me to the code. https://github.com/VirusTotal/yara/blob/master/libyara/modules/pe.c#L1276 Am I correct in assuming that since the X509 certificates' serial numbers are stored in DER, one should just use i2d_ASN1_INTEGER() instead? Cheers, -Hilko