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 Gsasl_mechanism_functions | Gsasl_mechanism_functions |
typedef Gsasl_mechanism | Gsasl_mechanism |
Functions | |
int | gsasl_register (Gsasl *ctx, const Gsasl_mechanism *mech) |
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.
typedef struct Gsasl_mechanism Gsasl_mechanism |
Definition at line 59 of file gsasl-mech.h.
typedef struct Gsasl_mechanism_functions Gsasl_mechanism_functions |
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.
int gsasl_register | ( | Gsasl * | ctx, | |
const Gsasl_mechanism * | mech | |||
) |
gsasl_register:
ctx | pointer to libgsasl handle. | |
mech | plugin structure with information about plugin. |
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, Gsasl_mechanism::server, and Gsasl::server_mechs.