28 # ifdef USE_SCRAM_SHA1
30 # define GSASL_SCRAM_SHA1_NAME "SCRAM-SHA-1"
31 # define GSASL_SCRAM_SHA1_PLUS_NAME "SCRAM-SHA-1-PLUS"
36 int _gsasl_scram_sha1_client_start (
Gsasl_session * sctx,
void **mech_data);
39 _gsasl_scram_sha1_plus_client_start (
Gsasl_session * sctx,
void **mech_data);
44 const char *input,
size_t input_len,
45 char **output,
size_t *output_len);
50 int _gsasl_scram_sha1_server_start (
Gsasl_session * sctx,
void **mech_data);
53 _gsasl_scram_sha1_plus_server_start (
Gsasl_session * sctx,
void **mech_data);
59 char **output,
size_t *output_len);
65 # ifdef USE_SCRAM_SHA256
67 # define GSASL_SCRAM_SHA256_NAME "SCRAM-SHA-256"
68 # define GSASL_SCRAM_SHA256_PLUS_NAME "SCRAM-SHA-256-PLUS"
73 int _gsasl_scram_sha256_client_start (
Gsasl_session * sctx,
void **mech_data);
82 const char *input,
size_t input_len,
83 char **output,
size_t *output_len);
88 int _gsasl_scram_sha256_server_start (
Gsasl_session * sctx,
void **mech_data);
98 char **output,
size_t *output_len);
int _gsasl_scram_client_step(Gsasl_session *sctx, void *mech_data, const char *input, size_t input_len, char **output, size_t *output_len)
void _gsasl_scram_client_finish(Gsasl_session *sctx _GL_UNUSED, void *mech_data)
void _gsasl_scram_server_finish(Gsasl_session *sctx _GL_UNUSED, void *mech_data)
int _gsasl_scram_server_step(Gsasl_session *sctx, void *mech_data, const char *input, size_t input_len, char **output, size_t *output_len)