Simple Authentication Security Layer Library Functions
saslserverinit(3SASL)
NAME
saslserverinit - SASL server authentication initialization
SYNOPSIS
cc [ flag ... ] file ... -lsasl [ library ... ]
#include
int saslserverinit(const saslcallback *callbacks, const char *appname);
DESCRIPTION
Use the saslserverinit() interface to initialize SASL. You
must call saslserverinit() before you make a call to
saslserverstart(). saslserverinit() may be called only
once per process. A call to saslserverinit() initializes
all SASL mechanism drivers, that is, the authentication
mechanisms. The SASL mechanism drivers are usually found in
the /usr/lib/sasl directory.
PARAMETERS
callbacks Specifies the base callbacks for all client
connections.
appname The name of the application for lower level
logging. For example, the sendmail server calls
appname this way:
saslserverinit(srvcallbacks, "Sendmail")
RETURN VALUES
saslserverinit() returns an integer that corresponds to a
SASL error code.
ERORS
SASLOK The call to saslserverinit() was successful.
All other error codes indicate an error situation that must
be handled, or the authentication session should be quit.
See saslerrors(3SASL) for information on SASL error codes.
ATRIBUTES
See attributes(5) for descriptions of the following attri-
butes:
SunOS 5.11 Last change: 22 Oct 2003 1
Simple Authentication Security Layer Library Functions
saslserverinit(3SASL)
ATRIBUTE TYPE ATRIBUTE VALUE
Availability SUNWlibsasl
Interface Stability Evolving
MT-Level Unsafe
SEE ALSO
saslerrors(3SASL), attributes(5)
NOTES
While most of libsasl is MT-Safe, no other libsasl function
should be called until this function completes.
SunOS 5.11 Last change: 22 Oct 2003 2
Simple Authentication Security Layer Library Functions
saslserverinit(3SASL)
SunOS 5.11 Last change: 22 Oct 2003 3
|