1sasl_server_step(3) SASL man pages sasl_server_step(3)
2
3
4
6 sasl_server_step - Perform a step in the authentication negotiation
7
8
9
11 #include <sasl/sasl.h>
12
13 int sasl_server_step(sasl_conn_t *conn,
14 const char *clientin,
15 unsigned clientinlen,
16 const char ** serverout,
17 unsigned * serveroutlen);
18
19
20
22 sasl_server_step() performs a step in the authentication negotiation.
23 It returns SASL_OK if the whole negotiation is successful and SASL_CON‐
24 TINUE if this step is ok but at least one more step is needed.
25
26
27 conn is the SASL connection context
28
29 clientin is the data given by the client (decoded if the protocol
30 encodes requests sent over the wire) clientinlen is the length of cli‐
31 entin
32
33 serverout and serveroutlen are set by the library and should be sent to
34 the client.
35
37 sasl_server_step returns an integer which corresponds to one of the
38 SASL error codes. SASL_CONTINUE indicates success and that there are
39 more steps needed in the authentication. SASL_OK indicates that the
40 authentication is complete. All other return codes indicate errors and
41 should either be handled or the authentication session should be quit.
42
43
45 RFC 4422
46
48 sasl(3), sasl_errors(3), sasl_server_init(3), sasl_server_new(3),
49 sasl_server_start(3)
50
51
52
53SASL 10 July 2001 sasl_server_step(3)