X509_get_version
l = X509_get_version(x);
if (!X509_get_version(x))
long X509_get_version(const X509 *x);