gsasl  2.2.1
Functions
xstart.c File Reference
#include <config.h>
#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

◆ gsasl_client_start()

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 120 of file xstart.c.

◆ gsasl_server_start()

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 138 of file xstart.c.