Lines Matching refs:xsc
95 verify_cert_cb(int ok, X509_STORE_CTX *xsc)
100 current_cert = X509_STORE_CTX_get_current_cert(xsc);
108 verify_err = X509_STORE_CTX_get_error(xsc);
111 X509_STORE_CTX_get_error_depth(xsc),
125 X509_STORE_CTX *xsc = NULL;
146 if ((xsc = X509_STORE_CTX_new()) == NULL)
148 if (!X509_STORE_CTX_init(xsc, store, leaf, bundle)) {
157 X509_STORE_CTX_set_flags(xsc, flags);
160 X509_STORE_CTX_set_verify_cb(xsc, verify_cert_cb);
161 X509_STORE_CTX_set0_trusted_stack(xsc, roots);
164 X509_VERIFY_PARAM *param = X509_STORE_CTX_get0_param(xsc);
169 X509_VERIFY_PARAM *param = X509_STORE_CTX_get0_param(xsc);
174 ret = X509_verify_cert(xsc);
176 *error = X509_STORE_CTX_get_error(xsc);
177 *error_depth = X509_STORE_CTX_get_error_depth(xsc);
194 X509_STORE_CTX_free(xsc);