1sasl_decode(3SSiAmSpLl)e Authentication Security Layer Library Funcstaisoln_sdecode(3SASL)
2
3
4

NAME

6       sasl_decode - decode data received
7

SYNOPSIS

9       cc [ flag ... ] file ... -lsasl   [ library ... ]
10       #include <sasl/sasl.h>
11
12       int sasl_decode(sasl_conn_t *conn, const char *input, unsigned inputlen,
13            const char **output, unsigned *outputlen);
14
15

DESCRIPTION

17       Use  the sasl_decode() interface to decode data received. After authen‐
18       tication, call this function on all data received. The data is  decoded
19       from  encrypted  or  signed  form  to plain data. If no security lay is
20       negotiated, the output is identical to the input.
21
22
23       Do not give sasl_decode() more data than the negotiated maxbufsize. See
24       sasl_getprop(3SASL).
25
26
27       sasl_decode() can complete successfully although the value of outputlen
28       is zero. If this is the case, wait for more data and call sasl_decode()
29       again.
30

PARAMETERS

32       conn         The SASL connection context.
33
34
35       input        Data received.
36
37
38       inputlen     The length of input
39
40
41       output       The decoded data. output must be allocated or freed by the
42                    library.
43
44
45       outputlen    The length of output.
46
47

RETURN VALUES

49       sasl_decode() returns an integer that corresponds to a SASL error code.
50

ERRORS

52       SASL_OK    The call to sasl_decode() was successful.
53
54
55
56       See sasl_errors(3SASL) for information on SASL error codes.
57

ATTRIBUTES

59       See attributes(5) for descriptions of the following attributes:
60
61
62
63
64       ┌─────────────────────────────┬─────────────────────────────┐
65       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
66       ├─────────────────────────────┼─────────────────────────────┤
67       │Availability                 │SUNWlibsasl                  │
68       ├─────────────────────────────┼─────────────────────────────┤
69       │Interface Stability          │Evolving                     │
70       ├─────────────────────────────┼─────────────────────────────┤
71       │MT-Level                     │Safe                         │
72       └─────────────────────────────┴─────────────────────────────┘
73

SEE ALSO

75       sasl_errors(3SASL), sasl_getprop(3SASL), attributes(5)
76
77
78
79SunOS 5.11                        28 Aug 2003               sasl_decode(3SASL)
Impressum