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 the Gsasl_property type, and it's the one telling you what kind of data is vibing inside data
  • const 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 Β© 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