Blast-Radius Aware AI Code Review for Business-Critical Systems
LiveReview LiveReview Explore LiveReview

nng_tls_engine_fips_mode - TLS FIPS 140-2 mode indicator

Description

       The nng_tls_engine_fips_mode() returns true if the TLS engine is operating in FIPS 140-2 mode, and false
       otherwise.

           Tip

           FIPS 140-2 references a United States standard for the use of cryptography in information processing
           systems.

           Tip

           The default TLS engine does not support FIPS 140-2 mode, and will always return false. Alternative
           implementations with such support may be available from commercial suppliers.

           Note

           Generally the FIPS 140-2 mode cannot be changed after program startup.

Errors

       None.

Name

       nng_tls_engine_fips_mode - TLS FIPS 140-2 mode indicator

Return Values

       True if the TLS engine is in FIPS 140-2 mode, false otherwise.

See Also

nng_tls_engine(5), nng(7)

                                                   2025-04-20                     NNG_TLS_ENGINE_FIPS_MODE(3tls)

Synopsis

           #include <nng/supplemental/tls/tls.h>

           bool nng_tls_engine_fips_mode(void);

See Also