NNG_TLS_ENGINE_FIPS_MODE(3tls)

πŸ“¦
version 1.12.0 Β· 4 versions
, in ubuntu stonking

✨ 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