Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
class method
OpenSSL::X509::Store.new
() -> ::OpenSSL::X509::Store
X509::Store.new => store
ext/openssl/ossl_x509store.c
View on GitHub ↗
static VALUE
ossl_x509store_initialize(int argc, VALUE *argv, VALUE self)
{
X509_STORE *store;
if (argc != 0)
rb_warn("OpenSSL::X509::Store.new does not take any arguments");
ossl_want_uninitialized(self, &ossl_x509store_type);
store = X509_STORE_new();
if (!store)
ossl_raise(eX509StoreError, "X509_STORE_new");
RTYPEDDATA_DATA(self) = store;
X509_STORE_set_verify_cb(store, x509store_verify_cb);
ossl_x509store_set_vfy_cb(self, Qnil);
/* last verification status */
rb_iv_set(self, "@error", Qnil);
rb_iv_set(self, "@error_string", Qnil);
rb_iv_set(self, "@chain", Qnil);
return self;
}
Creates a new X509::Store.