1sasl_decode(3) SASL man pages sasl_decode(3)
2
3
4
6 sasl_decode - Decode data received
7
8
9
11 #include <sasl/sasl.h>
12
13
14 int sasl_decode(sasl_conn_t *conn,
15 const char * input,
16 unsigned inputlen,
17 const char ** output,
18 unsigned * outputlen);
19
20
22 sasl_decode decodes data received. After successful authentication this
23 function should be called on all data received. It decodes the data
24 from encrypted or signed form to plain data. If there was no security
25 layer negotiated the output is identical to the input.
26
27 output contains the decoded data and is allocated/freed by the library.
28
29 One should not to give sasl_decode more data than the negotiated
30 maxbufsize (see sasl_getprop).
31
32 Note that sasl_decode can succeed and outputlen can be zero. If this is
33 the case simply wait for more data and call sasl_decode again.
34
35
37 Returns SASL_OK on success. See sasl_errors(3) for meanings of other
38 return codes.
39
40
42 RFC 4422
43
45 sasl(3), sasl_errors(3), sasl_encode(3)
46
47
48
49SASL 10 July 2001 sasl_decode(3)