instance method
OpenSSL::X509::StoreContext#trust=
(::Integer trust) -> ::Integer
stctx.trust = trust
ext/openssl/ossl_x509store.c
View on GitHub ↗
static VALUE
ossl_x509stctx_set_trust(VALUE self, VALUE trust)
{
X509_STORE_CTX *store;
int t = NUM2INT(trust);
GetX509StCtx(self, store);
X509_STORE_CTX_set_trust(store, t);
return trust;
}
Sets the trust settings of the context. This overrides the default value set by Store#trust=.
See also the man page X509_VERIFY_PARAM_set_trust(3).