1sasl_encode64S(i3mSpAlSeL)Authentication Security Layer Library Fusnacstli_oennscode64(3SASL)
2
3
4

NAME

6       sasl_encode64 - encode base64 string
7

SYNOPSIS

9       cc [ flag ... ] file ... -lsasl   [ library ... ]
10       #include <sasl/saslutil.h>
11
12       int sasl_encode64(const char *in, unsigned inlen, char *out,
13            unsigned outmax, unsigned *outlen);
14
15

DESCRIPTION

17       Use  the  sasl_encode64()  interface  to convert an octet string into a
18       base64 string. This routine  is  useful  for  SASL  profiles  that  use
19       base64,  such as the IMAP (IMAP4) and POP (POP_AUTH) profiles. The out‐
20       put is null-terminated. If outlen is non-NULL, the length is placed  in
21       the outlen.
22

PARAMETERS

24       in        Input data.
25
26
27       inlen     The length of the input data.
28
29
30       out       The output data. The value of out can be the same as in. How‐
31                 ever, there must be enough space.
32
33
34       outlen    The length of the actual output.
35
36
37       outmax    The maximum size of the output buffer.
38
39

RETURN VALUES

41       sasl_encode64() returns an integer that corresponds  to  a  SASL  error
42       code.
43

ERRORS

45       SASL_OK         The call to sasl_encode64() was successful.
46
47
48       SASL_BUFOVER    The output buffer was too small.
49
50

ATTRIBUTES

52       See attributes(5) for descriptions of the following attributes:
53
54
55
56
57       ┌─────────────────────────────┬─────────────────────────────┐
58       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
59       ├─────────────────────────────┼─────────────────────────────┤
60       │Availability                 │SUNWlibsasl                  │
61       ├─────────────────────────────┼─────────────────────────────┤
62       │Interface Stability          │Evolving                     │
63       ├─────────────────────────────┼─────────────────────────────┤
64       │MT-Level                     │MT-Safe                      │
65       └─────────────────────────────┴─────────────────────────────┘
66

SEE ALSO

68       sasl_errors(3SASL), attributes(5)
69
70
71
72SunOS 5.11                        16 Sep 2003             sasl_encode64(3SASL)
Impressum