gsasl  2.2.1
Functions
register.c File Reference
#include <config.h>
#include "internal.h"

Go to the source code of this file.

Functions

int gsasl_register (Gsasl *ctx, const Gsasl_mechanism *mech)
 

Function Documentation

◆ gsasl_register()

int gsasl_register ( Gsasl ctx,
const Gsasl_mechanism mech 
)

gsasl_register:

Parameters
ctxpointer to libgsasl handle.
mechplugin structure with information about plugin.

This function initialize given mechanism, and if successful, add it to the list of plugins that is used by the library.

Return value: GSASL_OK iff successful, otherwise GSASL_MALLOC_ERROR.

Since: 0.2.0

Definition at line 39 of file register.c.