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:
ctx libgsasl handle.
mech name of SASL mechanism.
sctx pointer 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.

References Gsasl::client_mechs, and Gsasl::n_client_mechs.

Referenced by gsasl_client_suggest_mechanism().

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

gsasl_server_start:

Parameters:
ctx libgsasl handle.
mech name of SASL mechanism.
sctx pointer 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.

References Gsasl::n_server_mechs, and Gsasl::server_mechs.


Generated on Tue Aug 22 12:06:07 2006 for gsasl by  doxygen 1.4.7