1sasl_server_new(16 May 2001)                      sasl_server_new(16 May 2001)
2
3
4

NAME

6       sasl_server_new - Create a new server authentication object
7
8
9

SYNOPSIS

11       #include <sasl/sasl.h>
12
13       int sasl_server_new(const char *service,
14                       const char *serverFQDN,
15                       const char *user_realm,
16                       const char *iplocalport,
17                       const char *ipremoteport,
18                       const sasl_callback_t *callbacks,
19                       unsigned flags,
20                       sasl_conn_t ** pconn);
21
22

DESCRIPTION

24       sasl_server_new() creates a new SASL context. This context will be used
25       for all SASL calls for one connection. It handles  both  authentication
26       and integrity/encryption layers after authentication.
27
28       service  is  the  registered  name of the service (usually the protocol
29       name) using SASL (e.g. "imap").
30
31       serverFQDN is the fully qualified server domain name.  NULL  means  use
32       gethostname().  This is useful for multi-homed servers.
33
34       user_realm  is the domain of the user agent. This is usually not neces‐
35       sary (NULL is default)
36
37       iplocalport is the IP and port of the local side of the connection,  or
38       NULL.   If  iplocalport is NULL it will disable mechanisms that require
39       IP address information.  This strings must be in one of  the  following
40       formats:   "a.b.c.d;port"  (IPv4),  "e:f:g:h:i:j:k:l;port"  (IPv6),  or
41       "e:f:g:h:i:j:a.b.c.d;port" (IPv6)
42
43       ipremoteport is the IP and port of the remote side of  the  connection,
44       or NULL (see iplocalport)
45
46       flags are connection flags (see below)
47
48       pconn  is a pointer to the connection context allocated by the library.
49       This structure will be used for all future SASL calls for this  connec‐
50       tion.
51
52       Connection Flags
53
54       SASL_SUCCESS_DATA
55               The protocol supports a server-last send
56
57       SASL_NEED_PROXY
58               Force  the use of a mechanism that supports an authorization id
59               that is not the authentication id.
60
61

RETURN VALUE

63       sasl_server_new() returns an integer which corresponds to  one  of  the
64       SASL  error  codes. SASL_OK is the only one that indicates success. All
65       others indicate errors and should either be handled or the  authentica‐
66       tion session should be quit.
67
68

CONFORMING TO

70       RFC 2222
71

SEE ALSO

73       sasl(3),   sasl_errors(3),  sasl_server_init(3),  sasl_server_start(3),
74       sasl_server_step(3), sasl_setprop(3)
75
76
77
78SASL man pages                       SASL         sasl_server_new(16 May 2001)
Impressum