gnutls_fips140_push_context(3)
β¨ NAME β¨
gnutls_fips140_push_context β literally the API function that swaps your FIPS context onto the current thread π
(it's in the gnutls manual, bestie)
π SYNOPSIS π
#include <gnutls/gnutls.h>
int gnutls_fips140_push_context(gnutls_fips140_context_t context);
πΈ ARGUMENTS πΈ
gnutls_fips140_context_t contextβ agnutls_fips140_context_t. yes that's the whole description, she's a mystery but she's iconic π¦
π DESCRIPTION π
okay so what this does: it associates the FIPS context to the current thread, which means it diverts whatever context was already active. main character energy, sorry to the old context π
β οΈ real talk though β if a cryptographic operation is ongoing in the current thread, likegnutls_aead_cipher_init()got called butgnutls_aead_cipher_deinit()hasn't happened yet, this function returns an error:GNUTLS_E_INVALID_REQUEST. do not pass go, do not collect $200 π
The operation state of context will be reset to GNUTLS_FIPS140_OP_INITIAL. fresh start, clean slate, new era β¨
And listen: this function is a no-op if FIPS140 is not compiled in nor enabled at run-time. like it just. doesn't do anything. vibes only π§
β RETURNS β
0 upon success, a negative error code otherwise. slay when it's zero, sad girl hours when it's negative π
π SINCE π
3.7.3 β she's been here a minute, respect the elders π
π«Ά REPORTING BUGS π«Ά
Found a bug? spill it to <bugs@gnutls.org>. they wanna hear it fr fr.
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. (yes bestie, you can copy it, the FSF said so, we love a permissive queen π)
π₯ 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/
go read it, iykyk π
that's the whole page, no cap. this was gnutls 3.8.13, gnutls_fips140_push_context(3), and the manpage date lines up with that version too β thanks for reading bestie, now go push that context πβ¨π¦
π¦ 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