gnutls_fips140_mode_enabled(3)

πŸ’… gnutls_fips140_mode_enabled(3) πŸ’…

okay bestie, welcome to the gnutls manual, page for gnutls_fips140_mode_enabled(3). yes it's a mouthful, no you don't have to say it out loud. let's get into it 🫢


✨ NAME ✨

gnutls_fips140_mode_enabled β€” an API function, and literally just a little vibe check for FIPS140 mode πŸ”


🌸 SYNOPSIS 🌸

#include <gnutls/gnutls.h>

unsigned gnutls_fips140_mode_enabled( void);

πŸŽ€ ARGUMENTS πŸŽ€

  • void β€” that's it. nothing. zero arguments. she takes no input, she just knows πŸ’…

πŸ¦‹ DESCRIPTION πŸ¦‹

so what does she do?? she checks whether this library is in FIPS140 mode. that's the whole gig. and the value she hands back corresponds to the library mode as set with gnutls_fips140_set_mode() β€” so like, whatever mode was set, that's what you're getting told about. no cap πŸ”₯

now here's the spicy part. if gnutls_fips140_set_mode() was called with GNUTLS_FIPS140_SET_MODE_THREAD, then this function will return the current thread's FIPS140 mode. otherwise β€” i.e. if it wasn't called that way β€” the global value is what gets returned. so it's giving per-thread when you asked for per-thread, and global when you didn't. iconic behaviour honestly 😌


⭐ RETURNS ⭐

return non-zero if true, or zero if false. that's it. that's the whole return. binary queen πŸ‘‘


🌈 SINCE 🌈

3.3.0 β€” she's been around a minute, been serving since 3.3.0 fr fr ✨


πŸ™ˆ REPORTING BUGS πŸ™ˆ

found a bug? don't suffer in silence bestie, report it to <bugs@gnutls.org>.

home page: https://www.gnutls.org


Copyright Β© 2001-2023 Free Software Foundation, Inc., and others.

copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. (tl;dr: take it, share it, just keep the receipts 🧾)


πŸ‘‘ SEE ALSO πŸ‘‘

the full documentation for gnutls is maintained as a Texinfo manual. if the /usr/share/doc/gnutls/ directory does not contain the HTML form, visit:

https://www.gnutls.org/manual/


and that's the whole page babes πŸ“ go forth and mode-check responsibly. this was gnutls version 3.8.13, page gnutls_fips140_mode_enabled(3), mwah πŸ’‹πŸ§š

πŸ“¦ where this page comes from