gsasl  1.10.0
About: GNU SASL is an implementation of the Simple Authentication and Security Layer (SASL). Development version.
  Fossies Dox: gsasl-1.10.0.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

gsasl-mech.h File Reference
This graph shows which files directly or indirectly include this file:

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)
 

Typedef Documentation

◆ Gsasl_code_function

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.

◆ Gsasl_done_function

typedef void(* Gsasl_done_function) (Gsasl *ctx)

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

◆ Gsasl_finish_function

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

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

◆ Gsasl_init_function

typedef int(* Gsasl_init_function) (Gsasl *ctx)

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

◆ Gsasl_mechanism

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

◆ Gsasl_mechanism_functions

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

◆ Gsasl_start_function

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

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

◆ Gsasl_step_function

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_register()

GSASL_API int gsasl_register ( Gsasl ctx,
const Gsasl_mechanism mech 
)

gsasl_register: @ctx: pointer to libgsasl handle. @mech: plugin 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.

References Gsasl_mechanism::client, Gsasl::client_mechs, GSASL_MALLOC_ERROR, GSASL_OK, Gsasl_mechanism_functions::init, Gsasl::n_client_mechs, Gsasl::n_server_mechs, NULL, Gsasl_mechanism::server, Gsasl::server_mechs, and tmp.

Referenced by register_builtin_mechs().