Lines Matching refs:xsc
82 verify_cert_cb(int ok, X509_STORE_CTX *xsc)
87 current_cert = X509_STORE_CTX_get_current_cert(xsc);
88 issuer_cert = X509_STORE_CTX_get0_current_issuer(xsc);
89 verify_depth = X509_STORE_CTX_get_error_depth(xsc);
90 verify_err = X509_STORE_CTX_get_error(xsc);
116 X509_STORE_CTX *xsc = NULL;
132 if ((xsc = X509_STORE_CTX_new()) == NULL)
136 if (!X509_STORE_CTX_init(xsc, store, leaf, bundle)) {
145 X509_STORE_CTX_set_flags(xsc, X509_V_FLAG_LEGACY_VERIFY);
147 X509_VERIFY_PARAM_clear_flags(X509_STORE_CTX_get0_param(xsc),
151 X509_STORE_CTX_set_verify_cb(xsc, verify_cert_cb);
153 X509_STORE_CTX_set0_trusted_stack(xsc, roots);
154 if (X509_verify_cert(xsc) == 1) {
159 verify_err = X509_STORE_CTX_get_error(xsc);
164 X509_STORE_CTX_get_error_depth(xsc),
171 X509_STORE_CTX_free(xsc);