1sasl_setprop(3) SASL man pages sasl_setprop(3)
2
3
4
6 sasl_setprop - Set a SASL property
7
9 #include <sasl/sasl.h>
10
11
12 int sasl_setprop(sasl_conn_t *conn,
13 int propnum,
14 const void * pvalue)
15
16
18 sasl_setprop sets the value of a SASL property. For example an applica‐
19 tion should tell the SASL library about any external negotiated secu‐
20 rity layer (i.e. TLS).
21
22 conn is the SASL connection object. propnum is the identifier for the
23 property requested and pvalue contains a pointer to the data. It is the
24 applications job to make sure this type is correct. This is an easy way
25 to crash a program.
26
27 SASL_AUTH_EXTERNAL - external authentication ID (const char *)
28 SASL_SSF_EXTERNAL - external SSF active -- (sasl_ssf_t)
29 SASL_DEFUSERREALM - user realm (const char *)
30 SASL_SEC_PROPS - sasl_security_properties_t (may be freed after call)
31 SASL_IPLOCALPORT - string describing the local ip and port in the form
32 "a.b.c.d;p", or "e:f:g:h:i:j:k:l;port"
33 SASL_IPREMOTEPORT - string describing the remote ip and port in the form
34 "a.b.c.d;p", or "e:f:g:h:i:j:k:l;port"
35
36
38 Returns SASL_OK on success. SASL error code on failure.
39
40
42 RFC 4422
43
45 sasl(3), sasl_errors(3)
46
47
48
49SASL 10 July 2001 sasl_setprop(3)