1sasl_getprop(10 July 2001) sasl_getprop(10 July 2001)
2
3
4
6 sasl_getprop - Get a SASL property
7
8
9
11 #include <sasl/sasl.h>
12
13
14 int sasl_getprop(sasl_conn_t *conn,
15 int propnum,
16 const void ** pvalue);
17
18
20 sasl_getprop gets the value of a SASL property. For example after suc‐
21 cessful authentication a server may wish to know the authorization
22 name. Or a client application may wish to know the strength of the
23 negotiated security layer.
24
25 conn is the SASL connection object. propnum is the identifier for the
26 property requested and pvalue is filled in on success. List of proper‐
27 ties follows:
28
29 SASL_USERNAME - pointer to NUL terminated user name
30 SASL_SSF - security layer security strength factor,
31 if 0, call to sasl_encode, sasl_decode unnecessary
32 SASL_MAXOUTBUF - security layer max output buf unsigned
33 SASL_DEFUSERREALM - server authentication realm used
34 SASL_GETOPTCTX - context for getopt callback
35 SASL_IPLOCALPORT - local address string
36 SASL_IPREMOTEPORT - remote address string
37 SASL_SERVICE - service passed to sasl_*_new
38 SASL_SERVERFQDN - serverFQDN passed to sasl_*_new
39 SASL_AUTHSOURCE - name of auth source last used, useful for failed
40 authentication tracking
41 SASL_MECHNAME - active mechanism name, if any
42 SASL_PLUGERR - similar to sasl_errdetail
43
44
46 Returns SASL_OK on success. SASL error code on failure.
47
48
50 RFC 2222
51
53 sasl(3), sasl_errors(3), sasl_server_new(3), sasl_client_new(3)
54
55
56
57SASL man pages SASL sasl_getprop(10 July 2001)