Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
OpenSSL::X509::StoreContext#flags=
(::Integer flags) -> ::Integer
stctx.flags = flags
ext/openssl/ossl_x509store.c
View on GitHub ↗
static VALUE
ossl_x509stctx_set_flags(VALUE self, VALUE flags)
{
X509_STORE_CTX *ctx;
GetX509StCtx(self, ctx);
x509vpm_set_flags_i(X509_STORE_CTX_get0_param(ctx), flags);
return flags;
}
Sets the verification flags to the context. This overrides the default value set by Store#flags=.
NOTE: Despite the name, this method appends the specified flags to the existing flag set rather than replacing it. To clear existing flags, use clear_flags before calling this method.
See also the man page X509_VERIFY_PARAM_set_flags(3).