gnutls_check_version(3)
π gnutls_check_version(3) π
okay bestie, welcome to the gnutls manual, and this little page right here is gnutls_check_version(3) β it's giving "am I running a new enough GnuTLS or am I about to have a bad time" and honestly? iconic. π¦
β¨ NAME β¨
gnutls_check_version β literally an API function, that's the whole job description π
β¨ SYNOPSIS β¨
#include <gnutls/gnutls.h>
const char * gnutls_check_version(const char * req_version);
β¨ ARGUMENTS β¨
const char * req_versionβ the version string you wanna compare against, orNULLif you're feeling mysterious π
β¨ DESCRIPTION β¨
so what it does is: it checks the GnuTLS Library version against the string you handed it. no cap, that's it. π
and if you need a suitable req_version string to pass in? go look at GNUTLS_VERSION, she's got you covered β¨
also, quick shoutout: peep gnutls_check_version_numeric(), which does this exact same functionality but as a macro π iykyk.
β¨ RETURNS β¨
here's the vibe check π₯ it makes sure the library version is at minimum the one you gave it as a string in req_version, and then it returns the actual version string of the library. π
but if that condition is not met? it returns NULL. π that's the sad path.
and if you pass NULL in as req_version? no check is done at all β it just returns the version string, periodt. π«Ά
β¨ REPORTING BUGS β¨
found a bug? don't be shy, tell the girlies at <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. (yes queen, 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, bestie, just go visit:
https://www.gnutls.org/manual/
okay that's the whole page, mwah π this was gnutls_check_version(3) from gnutls 3.8.13, and yes that's the source and version, right there at the bottom where it belongs πβ¨π¦
π¦ 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