valgrind error (not PROG13)

2011-04-14 Thread Steven Friedman
On CentOS 5.5 (RPM package openssl-0.9.8e-12.el5_5.7), I am getting valgrind errors. Although I include what appears to be the full complement of PROG13 recommended cleanup code: ERR_remove_state(0); ENGINE_cleanup(); CONF_modules_free(); CONF_modules_unload(1); E

Re: How to retrieve serial number

2011-04-14 Thread Steven Friedman
Yes, it does take a while to dig through the docs to find things... ASN1_INTEGER * val = X509_get_serialNumber(x); int len = ASN1_STRING_length(val); unsigned char * p = ASN1_STRING_data(val); Then, you can go through the character string to build up as you want.