gsasl_property_set_raw(3)
β¨ gsasl_property_set_raw β¨
okay bestie, so we're in the gsasl manual, and this page is literally the glow-up version of setting a property β it's the one that takes a length π
πΈ NAME πΈ
gsasl_property_set_raw β it's an API function, no cap π
π¦ SYNOPSIS π¦
#include <gsasl.h>
int gsasl_property_set_raw(Gsasl_session * sctx, Gsasl_property prop,
const char * data, size_t len);
π ARGUMENTS π
Gsasl_session * sctxβ the session handle, aka your main character π«ΆGsasl_property propβ an enumerated value of theGsasl_propertytype, and it's the one telling you what kind of data is vibing insidedataconst char * dataβ the character string you wanna store πsize_t lenβ how long that character string is, like the length bestie, the actual count
β DESCRIPTION β
So what this does is: it makes a copy of data, only the len-sized chunk of it, and stores a zero terminated version of that in the session handle, filed under the property you named in prop. π§
And the iconic part?? You can immediately deallocate data right after you call this function, and the data that's chillin' in the session handle is totally unaffected. no notes. π₯
Also just so you know β apart from that length indicator, this function is identical to gsasl_property_set.
Return value: GSASL_OK iff it worked, otherwise GSASL_MALLOC_ERROR. that's it that's the whole vibe check π
π SINCE π
0.2.0 β she's been here a minute, a true veteran queen π
π REPORTING BUGS π
Found a bug? spill the tea to <bug-gsasl@gnu.org>. π
Like, 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. (basically: keep the receipts, that's all they ask π«Ά)
π 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. And as an alternative you may obtain the manual from:
https://www.gnu.org/software/libidn/gsasl/manual/
and that's the page, bestie π this was gsasl version 2.2.4, page gsasl_property_set_raw(3) β go forth and set those properties, you absolute legend β¨
π¦ 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