cc [ flag... ] file... –lsasl [ library... ] #include <sasl/sasl.h> #include <sasl/prop.h> #include <sasl/saslutil.h>
SASL is a security framework used by connection-oriented network applications primarily for authentication. Another way to describe SASL is that it is a glue layer between a network application and some security mechanisms that allow applications to authenticate each other and provide additional security services such as data encryption. As a glue layer, SASL hides the interface specifics of the security mechanism from the application, which allows greater portability and flexibility as new security mechanisms are implemented. SASL is similar to the GSS-API in that it provides a layer of abstraction between an application and one or more security mechanisms.
libsasl provides both an API for applications and an SPI for various plug-ins. To link with this library, specify –lsasl on the cc command line.
The shared object libsasl.so.1 and associated include files provide the public interfaces defined below. The *_t interfaces are function prototypes for callbacks that are defined in the public SASL header files. While libsasl provides default versions for some of the callbacks, this structure allows an application to define its own version of the some of the callback functions.
See Intro(3) for additional information on shared object interfaces.
See attributes(5) for descriptions of the following attributes: