1sasl_encode(3SSiAmSpLl)e Authentication Security Layer Library Funcstaisoln_sencode(3SASL)
2
3
4

NAME

6       sasl_encode,  sasl_encodev  - encode data for transport to an authenti‐
7       cated host
8

SYNOPSIS

10       cc [ flag ... ] file ... -lsasl   [ library ... ]
11       #include <sasl/sasl.h>
12
13       int sasl_encode(sasl_conn_t *conn, const char *input, unsigned inputlen,
14            const char **output, unsigned *outputlen);
15
16
17       int  sasl_encodev(sasl_conn_t *conn, const struct iovec *invec,
18            unsigned numiov, const char *outputlen);
19
20

DESCRIPTION

22       The sasl_encode() interface encodes data to be sent to  a  remote  host
23       for  which there has been a successful authentication session. If there
24       is a negotiated security, the data is signed or encrypted, and the out‐
25       put  is  sent  without  modification to the remote host. If there is no
26       security layer, the output is identical to the input.
27
28
29       The sasl_encodev() interface functions the same  as  the  sasl_encode()
30       interface,  but  operates on a struct iovec instead of a character buf‐
31       fer.
32

PARAMETERS

34       conn         The SASL connection context.
35
36
37       input        Data.
38
39
40       inputlen     input length.
41
42
43       output       The encoded data. output must be allocated or freed by the
44                    library.
45
46
47       outputlen    The length of output.
48
49
50       invec        A pointer to set of iovec structures.
51
52
53       numiov       The number of iovec structures in the invec set.
54
55

RETURN VALUES

57       sasl_encode() returns an integer that corresponds to a SASL error code.
58

ERRORS

60       SASL_OK    The call to sasl_encode() or sasl_encodev()was successful.
61
62
63
64       See sasl_errors(3SASL) for information on SASL error codes.
65

ATTRIBUTES

67       See attributes(5) for descriptions of the following attributes:
68
69
70
71
72       ┌─────────────────────────────┬─────────────────────────────┐
73       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
74       ├─────────────────────────────┼─────────────────────────────┤
75       │Availability                 │SUNWlibsasl                  │
76       ├─────────────────────────────┼─────────────────────────────┤
77       │Interface Stability          │Evolving                     │
78       ├─────────────────────────────┼─────────────────────────────┤
79       │MT-Level                     │Safe                         │
80       └─────────────────────────────┴─────────────────────────────┘
81

SEE ALSO

83       attributes(5)
84
85
86
87SunOS 5.11                        22 Oct 2003               sasl_encode(3SASL)
Impressum