NNG_TLS_ENGINE_FIPS_MODE(3tls)
β¨ NAME β¨
nng_tls_engine_fips_mode β the girl who tells you if your TLS engine is in FIPS 140-2 mode π
So this page lives in the NNG Reference Manual, section 3tls, if you were wondering where to file it in your brain. π§ β¨
πΈ SYNOPSIS πΈ
#include <nng/supplemental/tls/tls.h>
bool nng_tls_engine_fips_mode(void);
π DESCRIPTION π
okay so bestie, nng_tls_engine_fips_mode() is genuinely so simple it's iconic. It returns true if the TLS engine is operating in FIPS 140-2 mode, and false otherwise. That's it. That's the whole function. No arguments, no drama, no surprises. π
Tip π‘ FIPS 140-2 references a United States standard for the use of cryptography in information processing systems. So like, it's a whole official government vibe check for crypto. πΊπΈπ
Tip π‘ The default TLS engine does not support FIPS 140-2 mode, and will always return false. So if you're out here like "where's my FIPS mode??" β it's not coming, girl. Alternative implementations with such support may be available from commercial suppliers though. πΈβ¨
Note π Generally the FIPS 140-2 mode cannot be changed after program startup. So whatever mode you woke up in, that's your mode for the rest of the run. No take-backs. periodt. π
π«Ά RETURN VALUES π«Ά
trueβ if the TLS engine is in FIPS 140-2 mode πfalseβ otherwise π«
π ERRORS π
None. Literally zero. Not a single one. She shows up, she answers, she leaves. No cap. β¨
π SEE ALSO π
and that's the whole page bestie!! πππ¦
This one's from the NNG Reference Manual, dated 2026-06-30. Go forth and check your FIPS mode, mwah π πΈβ¨
π¦ where this page comes from
- ubuntu stonking: libnng-dev 1.12.0-1 Β· MIT OR Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms