SASL_GETPATH_T(3)
π sasl_getpath_t β the Cyrus SASL glow-up guide π
okay bestie, so this is sasl_getpath_t(3) from the Cyrus SASL manual, and it's genuinely one of the most "you either need it or you don't" little functions ever. let's get into it π«Ά
β¨ NAME β¨
sasl_getpath_t β Cyrus SASL documentation π
πΈ SYNOPSIS πΈ
#include <sasl/sasl.h>
int sasl_getpath_t(void *context,
char ** path);
π¦ DESCRIPTION π¦
int sasl_getpath_t(void *context, char **path);
so here's the tea, bestie β β sasl_getpath_t() is the callback you bring out when your app wants to use a different location for the SASL mechanism drivers. and by "mechanism drivers" we mean the shared library files, no cap π
and listen, if you don't use this callback? SASL isn't gonna be dramatic about it, it'll just go find them itself, either using:
- the location in the environment variable
SASL_PATH, or /usr/lib/sasl2by default
so yeah, the default path behavior is your fallback bestie if you never show up with this callback. iconic of SASL honestly π
β RETURN VALUE β
SASL callback functions should return SASL return codes. like, that's the vibe. see sasl.h for a complete list β it's giving reference material, and you should absolutely go look π
SASL_OKindicates success π- Other return codes indicate errors and should be handled π
not me emphasizing this but fr fr: those other codes? handle them. they are not decorative. π
π SEE ALSO π
π AUTHOR π
The Cyrus Team π«Ά
π COPYRIGHT π
1993-2016, The Cyrus Team
and that's the whole page, bestie β¨ this was Cyrus SASL version 2.1.28, dated February 18, 2022 β so go forth, set your path, return SASL_OK, and slay π
π
π¦ 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