gsasl_server_ca...ck_cram_md5_set(3)

πŸ“¦ version 1.10.0, in ubuntu jammy

πŸ’– NAME πŸ’–

gsasl_server_callback_cram_md5_set β€” bestie, it's an API function 🫢

Okay so quick vibe check: this is a page from the gsasl manual, and it's all about ONE little function that tells your server how to check if somebody is actually who they say they are, using CRAM-MD5. Let's get into it. ✨


🌸 SYNOPSIS 🌸

#include <gsasl.h>

void gsasl_server_callback_cram_md5_set(Gsasl * ctx,
Gsasl_server_callback_cram_md5 cb);

That's it. That's the whole thing. Two arguments, returns nothing, void energy. πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • Gsasl * ctx β€” your libgsasl handle. The main character of every gsasl story, honestly. πŸ‘‘
  • Gsasl_server_callback_cram_md5 cb β€” the callback function. Like, the function you're handing over so the server knows what to do. πŸ¦‹

✨ DESCRIPTION ✨

So here's the tea: you call this to specify the callback function that the server should use when it's deciding if a user is authenticated using a CRAM-MD5 challenge and response. That's the whole job. πŸ“

And if you ever need it back later? No worries, you can grab it again with gsasl_server_callback_cram_md5_get(). Iconic symmetry, fr fr. πŸ’œ


πŸ’€ DEPRECATED πŸ’€

Bestie. Listen. This one is old. 😭

This function is part of the old callback interface. The new interface does things differently: you use gsasl_callback_set() to set the application callback, and then you use gsasl_callback() or gsasl_property_get() to invoke the callback for certain properties.

So like, it still exists, it still works, but it's giving vintage. If you're writing new code, the new interface is the moment. 🌈


πŸ™ˆ REPORTING BUGS πŸ™ˆ

Found something cursed? Tell the maintainers! Not me, I'm just the messenger. πŸ’Œ


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.

(Translation: share it, remix it, whatever β€” 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:

http://www.gnu.org/software/gsasl/manual/

And that's the page, bestie!! This one comes to you from the gsasl manual, version 1.10.0 β€” mwah, slay, go authenticate something. πŸ’…πŸ’–πŸ¦‹

πŸ“¦ where this page comes from