Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
class method
OpenSSL.fips_mode
() -> bool
OpenSSL.fips_mode → true | false
ext/openssl/ossl.c
View on GitHub ↗
static VALUE
ossl_fips_mode_get(VALUE self)
{
#if OSSL_OPENSSL_PREREQ(3, 0, 0)
VALUE enabled;
enabled = EVP_default_properties_is_fips_enabled(NULL) ? Qtrue : Qfalse;
return enabled;
#elif defined(OPENSSL_FIPS)
VALUE enabled;
enabled = FIPS_mode() ? Qtrue : Qfalse;
return enabled;
#else
return Qfalse;
#endif
}
No documentation available
See also
.fips_mode=
.errors
.Digest
.fixed_length_secure_compare
also in
4.1 · 4.0 · 3.3 · 3.2 · 3.1 · 3.0