if (xi->x509 != NULL) {
if (!X509_add_cert(othercerts, xi->x509, X509_ADD_FLAG_DEFAULT)) {
- sk_X509_pop_free(othercerts, X509_free);
+ OSSL_STACK_OF_X509_free(othercerts);
othercerts = NULL;
goto end;
}
end:
ret = 1;
err:
- sk_X509_pop_free(certs_obj, X509_free);
+ OSSL_STACK_OF_X509_free(certs_obj);
return ret;
}