29 const char *input,
size_t input_len,
30 char **output,
size_t *output_len)
35 *output_len = input_len;
36 *output = malloc (*output_len);
40 memcpy (*output, input, input_len);
44 return code (sctx, sctx->
mech_data, input, input_len, output, output_len);
67 const char *input,
size_t input_len,
68 char **output,
size_t *output_len)
77 return _gsasl_code (sctx, code, input, input_len, output, output_len);
100 const char *input,
size_t input_len,
101 char **output,
size_t *output_len)
110 return _gsasl_code (sctx, code, input, input_len, output, output_len);
int(* Gsasl_code_function)(Gsasl_session *sctx, void *mech_data, const char *input, size_t input_len, char **output, size_t *output_len)
Gsasl_code_function encode
Gsasl_code_function decode
struct Gsasl_mechanism_functions server
struct Gsasl_mechanism_functions client
int gsasl_decode(Gsasl_session *sctx, const char *input, size_t input_len, char **output, size_t *output_len)
int gsasl_encode(Gsasl_session *sctx, const char *input, size_t input_len, char **output, size_t *output_len)