gsasl_check_version(3)
π gsasl_check_version(3) β the vibe check for your GNU SASL Library π
okay bestie, welcome to section 3 of the gsasl manual, and today we're doing the cutest little API function there ever was. no cap, she's tiny and she's powerful. let's go β¨
β¨ NAME β¨
gsasl_check_version β she's an API function, your honor π
π¦ SYNOPSIS π¦
#include <gsasl.h>
const char * gsasl_check_version(const char * req_version);
like, that's it. one include, one function, zero drama π
π ARGUMENTS π
const char * req_versionβ the version string you wanna compare against, orNULLif you're feeling feral and just want the version back with no questions asked π
πΈ DESCRIPTION πΈ
So what does she actually do? She checks the GNU SASL Library version. That's the whole job. And she's so good at it.
If you need a suitable string to pass as your req_version, go look at GSASL_VERSION β she's right there waiting for you, iykyk.
Now here's the iconic part: this function is one of the few in the library that can be used without a successful call to gsasl_init(). no init, no problem. she said "I don't need your setup, I'm built different" ππ₯
Return value: She checks that the version of the library is at minimum the one you gave her as a string in req_version, and then hands you back the actual version string of the library. If that condition isn't met? You get NULL. sorry bestie π but also fair.
And if you pass NULL to this function? No check is done at all β she just returns the version string, periodt. no notes. π
π REPORTING BUGS π
Found a bug? First of all, relatable. Report it to <bug-gsasl@gnu.org>.
The general guidelines for reporting bugs live at: https://www.gnu.org/gethelp/
And the GNU SASL home page is right here: https://www.gnu.org/software/gsasl/
β COPYRIGHT β
Copyright Β© 2002-2026 Simon Josefsson.
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. (iconic behavior, honestly β share freely, just keep the receipts π«Ά)
π§ SEE ALSO π§
The full documentation for gsasl is maintained as a Texinfo manual. If the info and gsasl programs are properly installed at your site, the command
info gsasl
should give you access to the complete manual. no skipping, it's genuinely so helpful.
As an alternative you may obtain the manual from:
https://www.gnu.org/software/libidn/gsasl/manual/
okay that's the whole page, bestie π₯Ή this is gsasl version 2.2.4, straight from the gsasl manual collection, page gsasl_check_version(3). go forth and version-check responsibly. mwah πβ¨
π¦ where this page comes from
- arch rolling: gsasl 2.2.4-1 Β· LGPL-2.1-or-later AND GPL-3.0-or-later AND GFDL-1.3-or-later
- ubuntu stonking: libgsasl-dev 2.2.4-1 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms