#include "digest-md5.h"
#include <stdlib.h>
#include <string.h>
#include "tokens.h"
#include "parser.h"
#include "printer.h"
#include "free.h"
#include "session.h"
#include "digesthmac.h"
Go to the source code of this file.
Data Structures | |
struct | _Gsasl_digest_md5_client_state |
Defines | |
#define | CNONCE_ENTROPY_BYTES 16 |
Typedefs | |
typedef _Gsasl_digest_md5_client_state | _Gsasl_digest_md5_client_state |
Functions | |
int | _gsasl_digest_md5_client_start (Gsasl_session *sctx, void **mech_data) |
int | _gsasl_digest_md5_client_step (Gsasl_session *sctx, void *mech_data, const char *input, size_t input_len, char **output, size_t *output_len) |
void | _gsasl_digest_md5_client_finish (Gsasl_session *sctx, void *mech_data) |
int | _gsasl_digest_md5_client_encode (Gsasl_session *sctx, void *mech_data, const char *input, size_t input_len, char **output, size_t *output_len) |
int | _gsasl_digest_md5_client_decode (Gsasl_session *sctx, void *mech_data, const char *input, size_t input_len, char **output, size_t *output_len) |
#define CNONCE_ENTROPY_BYTES 16 |
typedef struct _Gsasl_digest_md5_client_state _Gsasl_digest_md5_client_state |
Definition at line 59 of file digest-md5/client.c.
int _gsasl_digest_md5_client_decode | ( | Gsasl_session * | sctx, | |
void * | mech_data, | |||
const char * | input, | |||
size_t | input_len, | |||
char ** | output, | |||
size_t * | output_len | |||
) |
Definition at line 297 of file digest-md5/client.c.
References digest_md5_decode(), GSASL_INTEGRITY_ERROR, GSASL_NEEDS_MORE, GSASL_OK, _Gsasl_digest_md5_client_state::kis, digest_md5_response::qop, _Gsasl_digest_md5_client_state::readseqnum, and _Gsasl_digest_md5_client_state::response.
int _gsasl_digest_md5_client_encode | ( | Gsasl_session * | sctx, | |
void * | mech_data, | |||
const char * | input, | |||
size_t | input_len, | |||
char ** | output, | |||
size_t * | output_len | |||
) |
Definition at line 273 of file digest-md5/client.c.
References digest_md5_encode(), GSASL_INTEGRITY_ERROR, GSASL_NEEDS_MORE, GSASL_OK, _Gsasl_digest_md5_client_state::kic, digest_md5_response::qop, _Gsasl_digest_md5_client_state::response, and _Gsasl_digest_md5_client_state::sendseqnum.
void _gsasl_digest_md5_client_finish | ( | Gsasl_session * | sctx, | |
void * | mech_data | |||
) |
Definition at line 258 of file digest-md5/client.c.
References _Gsasl_digest_md5_client_state::challenge, digest_md5_free_challenge(), digest_md5_free_finish(), digest_md5_free_response(), _Gsasl_digest_md5_client_state::finish, and _Gsasl_digest_md5_client_state::response.
int _gsasl_digest_md5_client_start | ( | Gsasl_session * | sctx, | |
void ** | mech_data | |||
) |
Definition at line 62 of file digest-md5/client.c.
References CNONCE_ENTROPY_BYTES, gsasl_base64_to(), GSASL_MALLOC_ERROR, gsasl_nonce(), and GSASL_OK.
int _gsasl_digest_md5_client_step | ( | Gsasl_session * | sctx, | |
void * | mech_data, | |||
const char * | input, | |||
size_t | input_len, | |||
char ** | output, | |||
size_t * | output_len | |||
) |
Definition at line 93 of file digest-md5/client.c.
References digest_md5_response::authzid, _Gsasl_digest_md5_client_state::challenge, digest_md5_response::cipher, digest_md5_response::cnonce, digest_md5_hmac(), DIGEST_MD5_LENGTH, digest_md5_parse_challenge(), digest_md5_parse_finish(), digest_md5_print_response(), DIGEST_MD5_RESPONSE_LENGTH, digest_md5_response::digesturi, _Gsasl_digest_md5_client_state::finish, GSASL_AUTHENTICATION_ERROR, GSASL_AUTHID, GSASL_AUTHZID, gsasl_callback(), GSASL_CRYPTO_ERROR, GSASL_HOSTNAME, GSASL_MALLOC_ERROR, gsasl_md5(), GSASL_MECHANISM_CALLED_TOO_MANY_TIMES, GSASL_MECHANISM_PARSE_ERROR, GSASL_NEEDS_MORE, GSASL_NO_AUTHID, GSASL_NO_HOSTNAME, GSASL_NO_PASSWORD, GSASL_NO_SERVICE, GSASL_OK, GSASL_PASSWORD, gsasl_property_fast(), gsasl_property_get(), gsasl_property_set(), GSASL_REALM, GSASL_SERVICE, _Gsasl_digest_md5_client_state::kcc, _Gsasl_digest_md5_client_state::kcs, _Gsasl_digest_md5_client_state::kic, _Gsasl_digest_md5_client_state::kis, digest_md5_response::nc, digest_md5_response::nonce, digest_md5_challenge::nonce, digest_md5_challenge::nrealms, digest_md5_response::qop, digest_md5_response::realm, digest_md5_challenge::realms, _Gsasl_digest_md5_client_state::response, digest_md5_response::response, digest_md5_finish::rspauth, _Gsasl_digest_md5_client_state::secret, _Gsasl_digest_md5_client_state::step, digest_md5_response::username, and digest_md5_response::utf8.