gsasl_client_step(3)
π gsasl_client_step(3) β the gsasl girlies' guide π
okay bestie, sit down, grab a strawberry π, because we're about to talk about gsasl_client_step β a little API function from the gsasl manual and honestly? she's iconic but she's also, like, retired. we'll get to that. π«Ά
β¨ NAME β¨
gsasl_client_step β it's an API function, no cap π
πΈ SYNOPSIS πΈ
#include <gsasl.h>
int gsasl_client_step(Gsasl_session * sctx, const char * input, size_t
input_len, char * output, size_t * output_len);
like. look at her. five whole parameters. main character energy fr fr π
π ARGUMENTS π
Gsasl_session * sctxβ your libgsasl client handle, aka the girl holding the whole session together πconst char * inputβ the input byte array. raw bytes, no vibes, just data.size_t input_lenβ how big that input byte array is. she's theinput's plus-one, they come as a set π¦char * outputβ the output byte array. this is where you write back.size_t * output_lenβ the size of the output byte array. pointer, because she updates. lowkey important.
π« DESCRIPTION π«
so what does she do? she performs one step of SASL authentication in client. one step. like one dance move at a time, bestie π§
here's the tea: she reads data from server (that's what input and input_len are for), processes it (and ooooh, she might invoke callbacks to the application while she's at it β so if your app has opinions, she's asking), and then she writes data to server (into output and output_len, obviously π
).
β οΈ okay real talk for a sec because this one matters: the contents of theoutputbuffer are unspecified if this function returns anything other thanGSASL_NEEDS_MORE. unspecified!! do not read it, do not trust it, do not make it your personality. it's giving undefined, and not in a cute way π
Return value: she returns GSASL_OK if authenticated terminated successfully β¨, GSASL_NEEDS_MORE if more data is needed (relatable, we've all been there π), or an error code.
π DEPRECATED π
bestie. she's deprecated. use gsasl_step() instead. that's it, that's the whole note. still love her, but move on π
π’ REPORTING BUGS π’
found a bug? tell the girlies at <bug-gsasl@gnu.org> π
general guidelines for reporting bugs live at: http://www.gnu.org/gethelp/
and the GNU SASL home page is right here: http://www.gnu.org/software/gsasl/
π COPYRIGHT π
Copyright Β© 2002-2021 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.
(no royalties, no drama, just respect the notice and we're good π«Ά)
π 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, this command:
info gsasl
should give you access to the complete manual. slay. π
as an alternative you may obtain the manual from:
http://www.gnu.org/software/gsasl/manual/
and that's the whole page, bestie!! π this was gsasl_client_step(3) from the gsasl manual, version 1.10.0, brought to you by the gsasl gang. go call gsasl_step() instead, ily, bye!! β¨ππ¦
π¦ where this page comes from
- ubuntu jammy: libgsasl-dev 1.10.0-5 Β· 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