Lines Matching refs:cert_ctx
222 X509_STORE *cert_ctx = NULL;
238 cert_ctx = X509_STORE_new();
239 if (cert_ctx == NULL)
241 X509_STORE_set_verify_cb_func(cert_ctx, cb_check_cert);
243 lookup = X509_STORE_add_lookup(cert_ctx, X509_LOOKUP_file());
248 lookup = X509_STORE_add_lookup(cert_ctx, X509_LOOKUP_hash_dir());
267 X509_STORE_CTX_init(csc, cert_ctx, x509, NULL);
271 X509_STORE_CTX_init(&csc, cert_ctx, x509, NULL);
285 if (cert_ctx != NULL)
286 X509_STORE_free(cert_ctx);