1sasl_decode(10 July 2001)                            sasl_decode(10 July 2001)
2
3
4

NAME

6       sasl_decode - Decode data received
7
8
9

SYNOPSIS

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

DESCRIPTION

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

RETURN VALUE

37       Returns SASL_OK on success. See sasl_errors(3) for  meanings  of  other
38       return codes.
39
40

CONFORMING TO

42       RFC 2222
43

SEE ALSO

45       sasl(3), sasl_errors(3), sasl_encode(3)
46
47
48
49SASL man pages                       SASL            sasl_decode(10 July 2001)
Impressum