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 π
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
- alpine 3.22: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- alpine 3.23: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- alpine 3.24: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- arch rolling: gnutls 3.8.13-3 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 43: gnutls-devel 3.8.13-1.fc43 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 43: gnutls-devel 3.8.13-1.fc43 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 44: gnutls-devel 3.8.13-1.fc44 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 44: gnutls-devel 3.8.13-1.fc44 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- ubuntu stonking: gnutls-doc 3.8.13-1ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms