SASL_SETPROP(3)
π¦ SASL_SETPROP(3) π¦
okay so bestie, welcome to the Cyrus SASL manual pages, and this particular page? it's giving let me tell the library a secret energy π
sasl_setprop is how your app pipes extra info into the SASL library, and honestly it's lowkey essential. let's get into it π«Ά
πΈ NAME πΈ
sasl_setprop β Cyrus SASL documentation
β¨ SYNOPSIS β¨
#include <sasl/sasl.h>
int sasl_setprop(sasl_conn_t *conn,
int propnum,
const void * pvalue)
π DESCRIPTION π
int sasl_setprop(sasl_conn_t *conn,
int propnum,
const void * pvalue)
so like, sasl_setprop sets the value of a SASL property. real talk: your application should tell the SASL library about any external negotiated security layer (i.e. TLS). no gatekeeping, keep the library in the loop π«Ά
π Parameters π
connβ is the SASL connection contextpropnumβ is the identifier for the property requestedpvalueβ contains a pointer to the data. It is the applications job to make sure this type is correct. This is an easy way to crash a program. π not me handing over the wrong type and nuking the whole processSASL_AUTH_EXTERNALβ external authentication ID (const char *)SASL_SSF_EXTERNALβ external SSF active ββ (sasl_ssf_t)SASL_DEFUSERREALMβ user realm (const char *)SASL_SEC_PROPSβsasl_security_properties_t(may be freed after call)SASL_IPLOCALPORTβ string describing the local ip and port in the formβa.b.c.d;pβ, orβe:f:g:h:i:j:k:l;portβSASL_IPREMOTEPORTβ string describing the remote ip and port in the formβa.b.c.d;pβ, orβe:f:g:h:i:j:k:l;portβ
π«Ά RETURN VALUE π«Ά
SASL callback functions should return SASL return codes. See sasl.h for a complete list. SASL_OK indicates success β¨ (that's the one you want, the main character ending).
Other return codes indicate errors and should be handled. fr fr, don't just ignore them π
π SEE ALSO π
- RFC 4422,
:saslman:sasl(3),sasl_errors(3)
π AUTHOR π
The Cyrus Team
π COPYRIGHT π
1993-2016, The Cyrus Team
and that's the whole page bestie π
that was version 2.1.28, dated February 18, 2022. periodt. go set some properties, you've got this π¦β¨
π¦ 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