gsasl_property_get(3)
π gsasl_property_get β the gsasl manual, bestie edition β¨
okay so this page lives in the gsasl manual, and it's all about one little function that goes β¨fetchβ¨ for you. sit down, hydrate, let's get into it π«Ά
πΈ NAME πΈ
gsasl_property_get β it's an API function, bestie. that's the whole name. periodt.
π SYNOPSIS π
#include <gsasl.h>
const char * gsasl_property_get(Gsasl_session * sctx, Gsasl_property
prop);
like, that's the shape of it. two args in, a const char * out. iconic π
π¦ ARGUMENTS π¦
Gsasl_session * sctxβ the session handle. it's giving "your lil connection passport", the thing that holds all your session state πGsasl_property propβ an enumerated value of theGsasl_propertytype, and it tells the function what kind of data you want out ofdata. iykyk π
β¨ DESCRIPTION β¨
so basically: this function retrieves the data stored in the session handle for a given property prop. and if it doesn't already know the answer, it might go invoke the application callback to get the value. no cap, it'll go ask your app π
β οΈ big one, don't skip this: the pointer you get back points to live data, and it must not be deallocated or modified in any way. like, hands off, it's not yours, do not touch π
also, when a property value isn't known yet, this function will invoke the application callback using gsasl_callback(). so the callback does the actual fetching when needed, and this function is the one knocking on its door πͺβ¨
Return value: it returns the data for the property, or NULL if no value is known. simple as that, bestie.
β SINCE β
0.2.0 β been here since forever, a true veteran, main character energy from day one π
π REPORTING BUGS π
found a bug? don't gatekeep it, tell the devs:
- Report bugs to <bug-gsasl@gnu.org>.
- General guidelines for reporting bugs: https://www.gnu.org/gethelp/
- GNU SASL home page: 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.
(yes bestie, that means you can share it, 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. As an alternative you may obtain the manual from:
https://www.gnu.org/software/libidn/gsasl/manual/
and that's the whole page, bestie π₯Ή this lil writeup came from gsasl version 2.2.4, and it's the gsasl_property_get(3) page specifically β go forth, fetch your properties, and remember: don't free the pointer, no matter how tempting π
β¨π¦
π¦ 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