Home
last modified time | relevance | path

Searched refs:store_ctx (Results 1 – 1 of 1) sorted by relevance

/titanic_41/usr/src/lib/libpkg/common/
H A Dsecurity.c98 X509_STORE_CTX *store_ctx = NULL; in get_cert_chain() local
124 if ((store_ctx = X509_STORE_CTX_new()) == NULL) { in get_cert_chain()
130 (void) X509_STORE_CTX_init(store_ctx, ca_store, cert, clcerts); in get_cert_chain()
132 if (X509_verify_cert(store_ctx) <= 0) { in get_cert_chain()
136 X509_verify_cert_error_string(store_ctx->error)); in get_cert_chain()
140 *chain = X509_STORE_CTX_get1_chain(store_ctx); in get_cert_chain()
145 if (store_ctx != NULL) { in get_cert_chain()
146 (void) X509_STORE_CTX_cleanup(store_ctx); in get_cert_chain()
147 (void) X509_STORE_CTX_free(store_ctx); in get_cert_chain()