instance method
OpenSSL::X509::Store#verify_callback=
[U] (^(bool preverify_ok, ::OpenSSL::X509::StoreContext store_ctx) -> ::boolish) -> U
verify_callback=(p1)
ext/openssl/ossl_x509store.c
View on GitHub ↗
static VALUE
ossl_x509store_set_vfy_cb(VALUE self, VALUE cb)
{
X509_STORE *store;
GetX509Store(self, store);
rb_iv_set(self, "@verify_callback", cb);
X509_STORE_set_ex_data(store, store_ex_verify_cb_idx, (void *)cb);
RB_OBJ_WRITTEN(self, Qundef, cb);
return cb;
}
General callback for OpenSSL verify