SASL_ERRSTRING(3)
π SASL_ERRSTRING(3) π
okay bestie, gather round, it's Cyrus SASL time and we're looking at sasl_errstring β the lil glow-up machine that turns your sad little integer error code into actual words a human can read π¦
β¨ NAME β¨
sasl_errstring β Cyrus SASL documentation π
β¨ SYNOPSIS β¨
#include <sasl/sasl.h>
const char * sasl_errstring(int saslerr,
const char * langlist,
const char ** outlang);
β¨ DESCRIPTION β¨
so here's the whole vibe, fr fr:
const char * sasl_errstring(int saslerr,
const char * langlist,
const char ** outlang);
sasl_errstring gets called when you wanna convert a SASL return code (yes, the integer one, the cryptic one, the one that's giving absolutely nothing) into a human readable string. β¨ At this time the only language available is American English. no cap. that's it. that's the whole menu. π
heads up bestie: if that string is gonna get sent to the client, a server should call sasl_usererr(3) on a return code first. do not skip this step, it's important π
πΈ Parameters πΈ
saslerrβ this is the error number you wanna convert. the mystery number. the little guy. π’langlistβ currently unused. UseNULL. that's literally it, she does nothing, she's just here for the plot π«Άoutlangβ specifies the desired RFC 1766 language for output.NULLdefaults to"en-us"; currently the only supported language. so likeβ¦NULLit is, bestie π
π real talk moment: this function is not the recommended means of extracting error code information from SASL. instead, your application should use sasl_errdetail(3), which contains this information (and more). like, she's the main character, this one is the understudy. iykyk π
β¨ RETURN VALUE β¨
Returns the string. π And if langlist is NULL, US-ASCII is used.
β¨ SEE ALSO β¨
RFC 4422,:saslman:sasl(3)sasl_errdetail(3)sasl_errors(3)
β¨ AUTHOR β¨
The Cyrus Team π
β¨ COPYRIGHT β¨
1993-2016, The Cyrus Team
and that's the tea π this lil page is from Cyrus SASL 2.1.28, dated February 18, 2022 β mwah, love that for us, periodt π β¨
π¦ 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