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 the Gsasl_property type, and it tells you what kind of data is chillin' in data ⭐
  • 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 Β© 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