gsasl  1.8.0
Data Structures | Typedefs | Functions | Variables
gsasl-mech.h File Reference

Go to the source code of this file.

Data Structures

struct  Gsasl_mechanism_functions
struct  Gsasl_mechanism

Typedefs

typedef int(* Gsasl_init_function )(Gsasl *ctx)
typedef void(* Gsasl_done_function )(Gsasl *ctx)
typedef int(* Gsasl_start_function )(Gsasl_session *sctx, void **mech_data)
typedef int(* Gsasl_step_function )(Gsasl_session *sctx, void *mech_data, const char *input, size_t input_len, char **output, size_t *output_len)
typedef void(* Gsasl_finish_function )(Gsasl_session *sctx, void *mech_data)
typedef int(* Gsasl_code_function )(Gsasl_session *sctx, void *mech_data, const char *input, size_t input_len, char **output, size_t *output_len)
typedef struct
Gsasl_mechanism_functions 
Gsasl_mechanism_functions
typedef struct Gsasl_mechanism Gsasl_mechanism

Functions

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

Variables

struct Gsasl_mechanism_functions __attribute__

Typedef Documentation

typedef int(* Gsasl_code_function)(Gsasl_session *sctx, void *mech_data, const char *input, size_t input_len, char **output, size_t *output_len)

Definition at line 34 of file gsasl-mech.h.

typedef void(* Gsasl_done_function)(Gsasl *ctx)

Definition at line 28 of file gsasl-mech.h.

typedef void(* Gsasl_finish_function)(Gsasl_session *sctx, void *mech_data)

Definition at line 33 of file gsasl-mech.h.

typedef int(* Gsasl_init_function)(Gsasl *ctx)

Definition at line 27 of file gsasl-mech.h.

Definition at line 59 of file gsasl-mech.h.

Definition at line 49 of file gsasl-mech.h.

typedef int(* Gsasl_start_function)(Gsasl_session *sctx, void **mech_data)

Definition at line 29 of file gsasl-mech.h.

typedef int(* Gsasl_step_function)(Gsasl_session *sctx, void *mech_data, const char *input, size_t input_len, char **output, size_t *output_len)

Definition at line 30 of file gsasl-mech.h.


Function Documentation

GSASL_API 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 38 of file register.c.


Variable Documentation