kerberos_v5.h File Reference

#include "internal.h"

Go to the source code of this file.

Defines

#define _GSASL_KERBEROS_V5_NAME   "KERBEROS_V5"

Functions

int _gsasl_kerberos_v5_client_init (Gsasl *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)
int _gsasl_kerberos_v5_server_init (Gsasl *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)


Define Documentation

#define _GSASL_KERBEROS_V5_NAME   "KERBEROS_V5"

Definition at line 31 of file kerberos_v5.h.


Function Documentation

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 
)

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  ) 

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.

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  ) 

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.


Generated on Tue Aug 22 12:06:07 2006 for gsasl by  doxygen 1.4.7