#include "kerberos_v5.h"
#include "shared.h"
Go to the source code of this file.
Data Structures | |
struct | _Gsasl_kerberos_v5_server_state |
Functions | |
int | _gsasl_kerberos_v5_server_init (Gsasl_ctx *ctx) |
int | _gsasl_kerberos_v5_server_start (Gsasl_session *sctx, void **mech_data) |
int | _gsasl_kerberos_v5_server_step (Gsasl_session *sctx, void *mech_data, const char *input, size_t input_len, char *output, size_t *output_len) |
int | _gsasl_kerberos_v5_server_encode (Gsasl_session *sctx, void *mech_data, const char *input, size_t input_len, char *output, size_t *output_len) |
int | _gsasl_kerberos_v5_server_decode (Gsasl_session *sctx, void *mech_data, const char *input, size_t input_len, char *output, size_t *output_len) |
int | _gsasl_kerberos_v5_server_finish (Gsasl_session *sctx, void *mech_data) |
int _gsasl_kerberos_v5_server_decode | ( | Gsasl_session * | sctx, | |
void * | mech_data, | |||
const char * | input, | |||
size_t | input_len, | |||
char * | output, | |||
size_t * | output_len | |||
) |
Definition at line 535 of file kerberos_v5/server.c.
References _Gsasl_kerberos_v5_server_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_server_state::safe, _Gsasl_kerberos_v5_server_state::sessionkey, and _Gsasl_kerberos_v5_server_state::sh.
int _gsasl_kerberos_v5_server_encode | ( | Gsasl_session * | sctx, | |
void * | mech_data, | |||
const char * | input, | |||
size_t | input_len, | |||
char * | output, | |||
size_t * | output_len | |||
) |
Definition at line 488 of file kerberos_v5/server.c.
References _Gsasl_kerberos_v5_server_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_server_state::safe, _Gsasl_kerberos_v5_server_state::sessionkey, and _Gsasl_kerberos_v5_server_state::sh.
int _gsasl_kerberos_v5_server_finish | ( | Gsasl_session * | sctx, | |
void * | mech_data | |||
) |
Definition at line 586 of file kerberos_v5/server.c.
References GSASL_OK, _Gsasl_kerberos_v5_server_state::password, _Gsasl_kerberos_v5_server_state::random, _Gsasl_kerberos_v5_server_state::sh, and _Gsasl_kerberos_v5_server_state::username.
int _gsasl_kerberos_v5_server_init | ( | Gsasl_ctx * | ctx | ) |
Definition at line 56 of file kerberos_v5/server.c.
References GSASL_OK, and GSASL_UNKNOWN_MECHANISM.
int _gsasl_kerberos_v5_server_start | ( | Gsasl_session * | sctx, | |
void ** | mech_data | |||
) |
Definition at line 65 of file kerberos_v5/server.c.
References GSASL_KERBEROS_V5_INIT_ERROR, GSASL_KERBEROS_V5_INTERNAL_ERROR, GSASL_MALLOC_ERROR, GSASL_OK, GSASL_QOP_AUTH, GSASL_QOP_AUTH_INT, and RANDOM_LEN.
int _gsasl_kerberos_v5_server_step | ( | Gsasl_session * | sctx, | |
void * | mech_data, | |||
const char * | input, | |||
size_t | input_len, | |||
char * | output, | |||
size_t * | output_len | |||
) |
Definition at line 106 of file kerberos_v5/server.c.
References _Gsasl_kerberos_v5_server_state::ap, _Gsasl_kerberos_v5_server_state::as, BITMAP_LEN, CLIENT_HELLO_LEN, _Gsasl_kerberos_v5_server_state::clientmaxbuf, _Gsasl_kerberos_v5_server_state::clientmutual, _Gsasl_kerberos_v5_server_state::clientqop, _Gsasl_kerberos_v5_server_state::firststep, GSASL_AUTHENTICATION_ERROR, GSASL_CANNOT_GET_CTX, GSASL_KERBEROS_V5_INTERNAL_ERROR, GSASL_MALLOC_ERROR, GSASL_NEED_SERVER_RETRIEVE_CALLBACK, GSASL_NEED_SERVER_SERVICE_CALLBACK, GSASL_NEEDS_MORE, GSASL_OK, GSASL_QOP_AUTH, GSASL_QOP_AUTH_CONF, GSASL_QOP_AUTH_INT, gsasl_server_callback_maxbuf_get(), gsasl_server_callback_qop_get(), gsasl_server_callback_realm_get(), gsasl_server_callback_retrieve_get(), gsasl_server_callback_service_get(), gsasl_server_ctx_get(), GSASL_TOO_SMALL_BUFFER, MAXBUF_DEFAULT, MAXBUF_LEN, MUTUAL, _Gsasl_kerberos_v5_server_state::password, _Gsasl_kerberos_v5_server_state::random, RANDOM_LEN, SERVER_HELLO_LEN, _Gsasl_kerberos_v5_server_state::serverhello, _Gsasl_kerberos_v5_server_state::serverhostname, _Gsasl_kerberos_v5_server_state::servermaxbuf, _Gsasl_kerberos_v5_server_state::serverqops, _Gsasl_kerberos_v5_server_state::serverrealm, _Gsasl_kerberos_v5_server_state::serverservice, _Gsasl_kerberos_v5_server_state::sessionkey, _Gsasl_kerberos_v5_server_state::sessiontktkey, _Gsasl_kerberos_v5_server_state::sh, _Gsasl_kerberos_v5_server_state::userkey, _Gsasl_kerberos_v5_server_state::username, and _Gsasl_kerberos_v5_server_state::userrealm.