#include "kerberos_v5.h"
#include "shared.h"
Go to the source code of this file.
Data Structures | |
struct | _Gsasl_kerberos_v5_client_state |
Defines | |
#define | STEP_FIRST 0 |
#define | STEP_NONINFRA_SEND_ASREQ 1 |
#define | STEP_NONINFRA_WAIT_ASREP 2 |
#define | STEP_NONINFRA_SEND_APREQ 3 |
#define | STEP_NONINFRA_WAIT_APREP 4 |
#define | STEP_SUCCESS 5 |
Functions | |
int | _gsasl_kerberos_v5_client_init (Gsasl_ctx *ctx) |
int | _gsasl_kerberos_v5_client_start (Gsasl_session *sctx, void **mech_data) |
int | _gsasl_kerberos_v5_client_step (Gsasl_session *sctx, void *mech_data, const char *input, size_t input_len, char *output, size_t *output_len) |
int | _gsasl_kerberos_v5_client_encode (Gsasl_session *sctx, void *mech_data, const char *input, size_t input_len, char **output, size_t *output_len) |
int | _gsasl_kerberos_v5_client_decode (Gsasl_session *sctx, void *mech_data, const char *input, size_t input_len, char *output, size_t *output_len) |
int | _gsasl_kerberos_v5_client_finish (Gsasl_session *sctx, void *mech_data) |
#define STEP_FIRST 0 |
#define STEP_NONINFRA_SEND_APREQ 3 |
#define STEP_NONINFRA_SEND_ASREQ 1 |
#define STEP_NONINFRA_WAIT_APREP 4 |
#define STEP_NONINFRA_WAIT_ASREP 2 |
#define STEP_SUCCESS 5 |
int _gsasl_kerberos_v5_client_decode | ( | Gsasl_session * | sctx, | |
void * | mech_data, | |||
const char * | input, | |||
size_t | input_len, | |||
char * | output, | |||
size_t * | output_len | |||
) |
Definition at line 414 of file kerberos_v5/client.c.
References _Gsasl_kerberos_v5_client_state::clientqop, GSASL_INTEGRITY_ERROR, GSASL_MALLOC_ERROR, GSASL_OK, GSASL_QOP_AUTH_CONF, GSASL_QOP_AUTH_INT, and _Gsasl_kerberos_v5_client_state::sessionkey.
int _gsasl_kerberos_v5_client_encode | ( | Gsasl_session * | sctx, | |
void * | mech_data, | |||
const char * | input, | |||
size_t | input_len, | |||
char ** | output, | |||
size_t * | output_len | |||
) |
Definition at line 367 of file kerberos_v5/client.c.
References _Gsasl_kerberos_v5_client_state::clientqop, GSASL_INTEGRITY_ERROR, GSASL_KERBEROS_V5_INTERNAL_ERROR, GSASL_MALLOC_ERROR, GSASL_OK, GSASL_QOP_AUTH_CONF, GSASL_QOP_AUTH_INT, _Gsasl_kerberos_v5_client_state::safe, _Gsasl_kerberos_v5_client_state::sessionkey, and _Gsasl_kerberos_v5_client_state::sh.
int _gsasl_kerberos_v5_client_finish | ( | Gsasl_session * | sctx, | |
void * | mech_data | |||
) |
Definition at line 444 of file kerberos_v5/client.c.
References GSASL_OK, and _Gsasl_kerberos_v5_client_state::sh.
int _gsasl_kerberos_v5_client_init | ( | Gsasl_ctx * | ctx | ) |
Definition at line 48 of file kerberos_v5/client.c.
References GSASL_OK, and GSASL_UNKNOWN_MECHANISM.
int _gsasl_kerberos_v5_client_start | ( | Gsasl_session * | sctx, | |
void ** | mech_data | |||
) |
Definition at line 57 of file kerberos_v5/client.c.
References GSASL_KERBEROS_V5_INIT_ERROR, GSASL_MALLOC_ERROR, GSASL_OK, and GSASL_QOP_AUTH_INT.
int _gsasl_kerberos_v5_client_step | ( | Gsasl_session * | sctx, | |
void * | mech_data, | |||
const char * | input, | |||
size_t | input_len, | |||
char * | output, | |||
size_t * | output_len | |||
) |
Definition at line 89 of file kerberos_v5/client.c.
References _Gsasl_kerberos_v5_client_state::ap, _Gsasl_kerberos_v5_client_state::as, BITMAP_LEN, CLIENT_HELLO_LEN, _Gsasl_kerberos_v5_client_state::clientmaxbuf, _Gsasl_kerberos_v5_client_state::clientqop, GSASL_AUTHENTICATION_ERROR, GSASL_CANNOT_GET_CTX, gsasl_client_callback_authentication_id_get(), gsasl_client_callback_authorization_id_get(), gsasl_client_callback_maxbuf_get(), gsasl_client_callback_password_get(), gsasl_client_callback_qop_get(), gsasl_client_callback_realm_get(), gsasl_client_callback_service_get(), gsasl_client_ctx_get(), GSASL_KERBEROS_V5_INTERNAL_ERROR, GSASL_MECHANISM_CALLED_TOO_MANY_TIMES, GSASL_MECHANISM_PARSE_ERROR, GSASL_NEED_CLIENT_PASSWORD_CALLBACK, GSASL_NEED_CLIENT_SERVICE_CALLBACK, GSASL_NEEDS_MORE, GSASL_OK, GSASL_QOP_AUTH, GSASL_QOP_AUTH_CONF, GSASL_QOP_AUTH_INT, GSASL_TOO_SMALL_BUFFER, MAXBUF_DEFAULT, MAXBUF_LEN, MUTUAL, SERVER_HELLO_LEN, _Gsasl_kerberos_v5_client_state::serverhello, _Gsasl_kerberos_v5_client_state::servermaxbuf, _Gsasl_kerberos_v5_client_state::servermutual, _Gsasl_kerberos_v5_client_state::serverqops, _Gsasl_kerberos_v5_client_state::sessionkey, _Gsasl_kerberos_v5_client_state::sh, _Gsasl_kerberos_v5_client_state::step, STEP_FIRST, STEP_NONINFRA_SEND_APREQ, STEP_NONINFRA_SEND_ASREQ, STEP_NONINFRA_WAIT_APREP, STEP_NONINFRA_WAIT_ASREP, and STEP_SUCCESS.