return(ctx->chain);
}
-STACK_OF(X509) *X509_STORE_CTX_rget_chain(X509_STORE_CTX *ctx)
+STACK_OF(X509) *X509_STORE_CTX_get1_chain(X509_STORE_CTX *ctx)
{
int i;
X509 *x;
/* If trust not set then get from purpose default */
if(!trust) {
X509_PURPOSE *ptmp;
- ptmp = X509_PURPOSE_iget(idx);
+ ptmp = X509_PURPOSE_get0(idx);
trust = ptmp->trust;
}
}