sk_X509_pop
while ((x = sk_X509_pop(ocerts)) != NULL) {
chain_ss = sk_X509_pop(ctx->chain);
xtmp = sk_X509_pop(ctx->chain);