gsasl_property_set(3)
β¨ gsasl_property_set β¨
okay bestie, so this one lives in the gsasl manual (that's GNU SASL, the auth library, iykyk) and it's literally just "here's a string, hold onto it for me" π
πΈ NAME πΈ
gsasl_property_set β API function π
π SYNOPSIS π
#include <gsasl.h>
int gsasl_property_set(Gsasl_session * sctx, Gsasl_property prop, const
char * data);
π¦ ARGUMENTS π¦
Gsasl_session * sctxβ the session handle, aka your lil session bestie that's gonna carry this data around π«ΆGsasl_property propβ an enumerated value of theGsasl_propertytype, and it tells you what kind of data is chillin' indataβconst char * dataβ a zero terminated character string that you want to store. yes, the classic null-terminated kind, no surprises π
π DESCRIPTION π
So what this does: it makes a copy of data, and stores that copy in the session handle under the indicated property prop. that's it. that's the whole vibe πΈ
and here's the part that's genuinely so convenient: you can immediately deallocate data after calling this function, and it will not affect the data stored in the session handle. because it copied it. she took a photo, she didn't borrow your phone πΈβ¨
Return value: GSASL_OK iff successful, otherwise GSASL_MALLOC_ERROR. so if you get something that isn't GSASL_OK, the malloc said no and that's the whole story π
β³ SINCE β³
0.2.0 β she's been iconic since day one, periodt π
π REPORTING BUGS π
found a bug? spill it to <bug-gsasl@gnu.org>. they want to know π«Ά
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. yes bestie, 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/
ngl, if you're reading the manpage and not the Texinfo manual, you're lowkey missing lore. go run info gsasl. it's giving main character research energy π₯
okay that's the whole page, you ate it, no crumbs π
this was gsasl_property_set(3) from gsasl version 2.2.4 β mwah, stan, bye bestie ππ¦π
π¦ 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