X509_STORE_CTX_get0_cert
X509 *X509_STORE_CTX_get0_cert(const X509_STORE_CTX *ctx);
X509 *c = X509_STORE_CTX_get0_cert(ctx);