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

NAME

6       sasl_encode - Encode data for transport to authenticated host
7
8
9

SYNOPSIS

11       #include <sasl/sasl.h>
12
13
14       int sasl_encode(sasl_conn_t *conn,
15                      const char * input,
16                         unsigned inputlen,
17                      const char ** output,
18                      unsigned * outputlen);
19
20       int sasl_encodev(sasl_conn_t *conn,
21                      const struct iovec * invec,
22                         unsigned numiov,
23                      const char ** output,
24                      unsigned * outputlen);
25
26

DESCRIPTION

28       sasl_encode  encodes  data  to  be sent to be sent to a remote host who
29       we've had a successful authentication session with. If there is a nego‐
30       tiated  security  the data in signed/encrypted and the output should be
31       sent without modification to the remote host. If there is  no  security
32       layer the output is identical to the input.
33
34       sasl_encodev does the same, but for a struct iovec instead of a charac‐
35       ter buffer.
36
37       output contains the encoded data and is allocated/freed by the library.
38
39

RETURN VALUE

41       Returns SASL_OK on success.  See sasl_errors(3) for meanings  of  other
42       return codes.
43
44

CONFORMING TO

46       RFC 2222
47

SEE ALSO

49       sasl(3), sasl_errors(3), sasl_decode(3)
50
51
52
53SASL man pages                       SASL            sasl_encode(10 July 2001)
Impressum