gnutls_srp_set_prime_bits(3)
β¨ gnutls_srp_set_prime_bits β¨
okay bestie, gather round, because we're talking about a lil function from the gnutls manual and honestly it's giving "small but mighty" π
π NAME π
gnutls_srp_set_prime_bits β it's an API function, no cap π«Ά
πΈ SYNOPSIS πΈ
#include <gnutls/gnutls.h>
void gnutls_srp_set_prime_bits(gnutls_session_t session, unsigned int
bits);
like, that's the whole vibe. two args, returns nothing, just does its thing β¨
π ARGUMENTS π
gnutls_session_t sessionβ bestie this is literally just agnutls_session_ttype. that's it. that's the arg πunsigned int bitsβ and this one? it's the number of bits. the bits!! the whole point!! π₯
π¦ DESCRIPTION π¦
so what does it actually DO. okay so this function sets the minimum accepted number of bits, for use in an SRP key exchange. π§
and listen β if you pass zero, the default 2048 bits gets used. iconic behavior honestly.
on the client side, it sets the minimum accepted number of bits. so if a server sends a prime with less bits than that... π the handshake is gonna return GNUTLS_E_RECEIVED_ILLEGAL_PARAMETER. rude of them tbh. not the vibe. π«
and this function? has no effect in server side. like, zero. none. it's a client-side main character, periodt. π
β SINCE β
2.6.0 β been here since way back, a real OG π
π REPORTING BUGS π
found a bug? not me being shocked π report it to <bugs@gnutls.org> 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. π«Ά (so yes bestie, you can share it, just keep the receipts β¨)
π SEE ALSO π
the full documentation for gnutls is maintained as a Texinfo manual. and if the /usr/share/doc/gnutls/ directory does NOT contain the HTML form β tragic, I know β then visit:
https://www.gnutls.org/manual/
okay that's the whole page, you ate that π
this was gnutls version 3.8.13, and yeah the footer said gnutls_srp_set_prime_bits(3) again because manpages love a lil encore π bye bestie, go set some prime bits π
π¦ 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