verify_cb
X509_STORE_set_verify_cb(cert_ctx, verify_cb);
static int verify_cb(int ok, X509_STORE_CTX *ctx);
X509_STORE_CTX_verify_cb verify_cb;
if (ts == NULL || (verify_cb = X509_STORE_get_verify_cb(ts)) == NULL)
return (*verify_cb)(ok, store_ctx);
X509_STORE_CTX_verify_cb verify_cb;
if (ts == NULL || (verify_cb = X509_STORE_get_verify_cb(ts)) == NULL)
ok = (*verify_cb)(0, csc);
rv = ctx->verify_cb(0, ctx); \
|| !ossl_assert(ctx == NULL || ctx->verify_cb != NULL)) {
|| ctx->verify_cb == NULL) {
ret = ctx->verify_cb(0, ctx); \
|| !ossl_assert(ctx == NULL || ctx->verify_cb != NULL)) {
|| ctx->verify_cb == NULL) {
int (*verify_cb)(int ok, X509_STORE_CTX *ctx);
X509_STORE_CTX_verify_cb verify_cb)
xs->verify_cb = verify_cb;
return xs->verify_cb;
crl_ctx.verify_cb = ctx->verify_cb;
return ctx->verify_cb(0, ctx);
return ctx->verify_cb(0, ctx);
return ctx->verify_cb(0, ctx);
if (!ctx->verify_cb(2, ctx))
if (!ctx->verify_cb(ctx->error == X509_V_OK, ctx))
if (!ctx->verify_cb(1, ctx))
return !!ctx->verify_cb(ctx->error == X509_V_OK, ctx);
if (store != NULL && store->verify_cb != NULL)
ctx->verify_cb = store->verify_cb;
ctx->verify_cb = null_callback;
X509_STORE_CTX_verify_cb verify_cb)
ctx->verify_cb = verify_cb;
return ctx->verify_cb;
return ctx->verify_cb(1, ctx);
int (*verify_cb)(int ok, X509_STORE_CTX *ctx);
X509_STORE_CTX_verify_cb verify_cb);
SSL_CTX_set_verify(sctx, SSL_VERIFY_PEER | SSL_VERIFY_FAIL_IF_NO_PEER_CERT, verify_cb);
verify_cb);
verify_cb);