EVP_default_properties_enable_fips

Enable or disable the FIPS constraint in a library context's default properties.

Synopsis

Declared in <openssl/evp.h>

int
EVP_default_properties_enable_fips(
    OSSL_LIB_CTX* libctx,
    int enable);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
libctxLibrary context to update, or NULL for the default context.
enableNon-zero to require FIPS algorithms in default fetches, or 0 to clear that constraint.