man pages section 3: Networking Library Functions

Exit Print View

Updated: July 2014
 
 

sasl_server_add_plugin(3SASL)

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(5) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Availability
system/library/security/libsasl
Interface Stability
Committed
MT-Level
MT–Safe

See also

sasl_errors(3SASL), attributes(5)