gsasl  1.8.0
Functions
xstart.c File Reference
#include "internal.h"

Go to the source code of this file.

Functions

int gsasl_client_start (Gsasl *ctx, const char *mech, Gsasl_session **sctx)
int gsasl_server_start (Gsasl *ctx, const char *mech, Gsasl_session **sctx)

Function Documentation

int gsasl_client_start ( Gsasl ctx,
const char *  mech,
Gsasl_session **  sctx 
)

gsasl_client_start:

Parameters:
ctxlibgsasl handle.
mechname of SASL mechanism.
sctxpointer to client handle.

This functions initiates a client SASL authentication. This function must be called before any other gsasl_client_*() function is called.

Return value: Returns GSASL_OK if successful, or error code.

Definition at line 119 of file xstart.c.

int gsasl_server_start ( Gsasl ctx,
const char *  mech,
Gsasl_session **  sctx 
)

gsasl_server_start:

Parameters:
ctxlibgsasl handle.
mechname of SASL mechanism.
sctxpointer to server handle.

This functions initiates a server SASL authentication. This function must be called before any other gsasl_server_*() function is called.

Return value: Returns GSASL_OK if successful, or error code.

Definition at line 137 of file xstart.c.