SASL_GETREALM_T(3)
๐ SASL_GETREALM_T(3) โ Cyrus SASL ๐
okay bestie, sit down, hydrate, and let's talk about sasl_getrealm_t, a little callback from the Cyrus SASL manual, third section. this is genuinely one of the good ones. no cap. ๐ฆ
โจ NAME โจ
sasl_getrealm_t โ Cyrus SASL documentation. that's it, that's the name, she's simple and she knows it. ๐
๐ธ SYNOPSIS ๐ธ
#include <sasl/sasl.h>
int sasl_getrealm_t(void *context,
int id,
const char **availrealms,
const char **result)
like, look at her. four little params, zero drama. ๐
๐ซ DESCRIPTION ๐ซ
int sasl_getrealm_t(void *context,
int id,
const char **availrealms,
const char **result)
so, sasl_getrealm_t() is the function that gets called when there's an interaction with SASL_CB_GETREALM as the type. iykyk. ๐ฅ
here's the tea, and this part is actually important so pay attention bestie: if a mechanism would use this callback but it's not present, then the first realm listed is automatically selected. yes, automatically. she picked for you. ๐
and lowkey a lil plot twist: a mechanism may still force the existence of a getrealm callback by adding SASL_CB_GETREALM to its required_prompts list. so like, you don't get to just skip it if the mechanism says no. main character energy on the mechanism's part honestly. ๐
๐ Parameters
contextโ context from the callback record. it's the vibe handoff. ๐ซถidโ callback ID, and that'sSASL_CB_GETREALM. ๐ท๏ธavailrealmsโ a string list of the available realms.NULLterminated, and it may be empty. (empty is valid, don't panic ๐)resultโ the chosen realm. a NUL terminated string, periodt. โจ
โญ RETURN VALUE โญ
SASL callback functions should return SASL return codes. go peek at sasl.h for a complete list, she's got the receipts. ๐
SASL_OK indicates success. anything else is an error and, bestie, you should handle it. don't just let it sit there. ๐ญ
๐ฎ SEE ALSO ๐ฎ
RFC 4422,:saslman:sasl(3), sasl_callbacks(3)
go read those too, they're iconic. ๐
๐ AUTHOR ๐
The Cyrus Team. legends only, fr fr. ๐
๐ COPYRIGHT ๐
1993-2016, The Cyrus Team.
ok that's the whole page, every single detail intact, nothing skipped, you're welcome ๐
this has been SASL_GETREALM_T(3) from Cyrus SASL, version 2.1.28, dated February 18, 2022. mwah, slay, go write some callbacks bestie ๐ฆโจ๐
๐ฆ where this page comes from
- alpine 3.22: cyrus-sasl-doc 2.1.28-r8 ยท BSD-3-Clause-Attribution AND BSD-4-Clause
- alpine 3.23: cyrus-sasl-doc 2.1.28-r9 ยท BSD-3-Clause-Attribution AND BSD-4-Clause
- alpine 3.24: cyrus-sasl-doc 2.1.28-r9 ยท BSD-3-Clause-Attribution AND BSD-4-Clause
- centos-stream 10: cyrus-sasl-devel 2.1.28-27.el10 ยท BSD-Attribution-HPND-disclaimer
- fedora 43: cyrus-sasl-devel 2.1.28-33.fc43 ยท BSD-Attribution-HPND-disclaimer
- fedora 43: cyrus-sasl-devel 2.1.28-33.fc43 ยท BSD-Attribution-HPND-disclaimer
- fedora 44: cyrus-sasl-devel 2.1.28-35.fc44 ยท BSD-Attribution-HPND-disclaimer
- fedora 44: cyrus-sasl-devel 2.1.28-35.fc44 ยท BSD-Attribution-HPND-disclaimer
- opensuse-leap 16.0: cyrus-sasl-bdb-devel 2.1.28-160000.4.1 ยท BSD-4-Clause
- opensuse-leap 16.0: cyrus-sasl-bdb-devel 2.1.28-160000.4.1 ยท BSD-4-Clause
- opensuse-leap 16.0: cyrus-sasl-bdb-devel 2.1.28-160000.4.1 ยท BSD-4-Clause
- opensuse-leap 16.0: cyrus-sasl-bdb-devel 2.1.28-160000.4.1 ยท BSD-4-Clause
- opensuse-leap 16.0: cyrus-sasl-devel 2.1.28-160000.4.1 ยท BSD-4-Clause
- opensuse-leap 16.0: cyrus-sasl-devel 2.1.28-160000.4.1 ยท BSD-4-Clause
- opensuse-leap 16.0: cyrus-sasl-devel 2.1.28-160000.4.1 ยท BSD-4-Clause
- opensuse-leap 16.0: cyrus-sasl-devel 2.1.28-160000.4.1 ยท BSD-4-Clause
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms