SASL_SERVER_ADD_PLUGIN(3SASL)
Simple Authentication Security Layer Library Functions
sasl_server_add_plugin - add a SASL server plug-in
cc [ flag ... ] file ... -lsasl [ library ... ]
#include <sasl/saslplug.h>
int sasl_server_add_plugin(const char *plugname,
sasl_server_plug_init_t *cplugfunc);
Use the sasl_server_add_plugin() interface to add a server plug-in to
the current list of client plug-ins in the SASL library.
plugname
The name of the server plug-in.
cplugfunc
The value of cplugfunc is filled in by the
sasl_server_plug_init_t structure.
sasl_server_add_plugin() returns an integer that corresponds to a
SASL error code.
SASL_OK
The call to sasl_client_add_plugin() was successful.
SASL_BADVERS
Version mismatch with plug-in.
SASL_NOMEM
Memory shortage failure.
See sasl_errors(3SASL) for information on other SASL error codes.
See attributes(7) for descriptions of the following attributes:
+--------------------+-----------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+--------------------+-----------------+
|Interface Stability | Evolving |
+--------------------+-----------------+
|MT-Level | MT-Safe |
+--------------------+-----------------+
sasl_errors(3SASL), attributes(7)
October 1, 2003 SASL_SERVER_ADD_PLUGIN(3SASL)
Simple Authentication Security Layer Library Functions
NAME
sasl_server_add_plugin - add a SASL server plug-in
SYNOPSIS
cc [ flag ... ] file ... -lsasl [ library ... ]
#include <sasl/saslplug.h>
int sasl_server_add_plugin(const char *plugname,
sasl_server_plug_init_t *cplugfunc);
DESCRIPTION
Use the sasl_server_add_plugin() interface to add a server plug-in to
the current list of client plug-ins in the SASL library.
PARAMETERS
plugname
The name of the server plug-in.
cplugfunc
The value of cplugfunc is filled in by the
sasl_server_plug_init_t structure.
RETURN VALUES
sasl_server_add_plugin() returns an integer that corresponds to a
SASL error code.
ERRORS
SASL_OK
The call to sasl_client_add_plugin() was successful.
SASL_BADVERS
Version mismatch with plug-in.
SASL_NOMEM
Memory shortage failure.
See sasl_errors(3SASL) for information on other SASL error codes.
ATTRIBUTES
See attributes(7) for descriptions of the following attributes:
+--------------------+-----------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+--------------------+-----------------+
|Interface Stability | Evolving |
+--------------------+-----------------+
|MT-Level | MT-Safe |
+--------------------+-----------------+
SEE ALSO
sasl_errors(3SASL), attributes(7)
October 1, 2003 SASL_SERVER_ADD_PLUGIN(3SASL)