kssl.h File Reference

#include <openssl/opensslconf.h>
#include <stdio.h>
#include <ctype.h>
#include <krb5.h>

Go to the source code of this file.

Data Structures

struct  kssl_err_st
struct  kssl_ctx_st

Defines

#define KRB5SVC   "host"
#define KRB5KEYTAB   "/etc/krb5.keytab"
#define KRB5SENDAUTH   1
#define KRB5CHECKAUTH   1
#define KSSL_CLOCKSKEW   300;
#define KSSL_ERR_MAX   255
#define KSSL_CLIENT   1
#define KSSL_SERVER   2
#define KSSL_SERVICE   3
#define KSSL_KEYTAB   4
#define KSSL_CTX_OK   0
#define KSSL_CTX_ERR   1
#define KSSL_NOMEM   2

Typedefs

typedef struct kssl_err_st KSSL_ERR
typedef struct kssl_ctx_st KSSL_CTX

Functions

krb5_error_code kssl_ctx_setstring (KSSL_CTX *kssl_ctx, int which, char *text)
KSSL_CTXkssl_ctx_new (void)
KSSL_CTXkssl_ctx_free (KSSL_CTX *kssl_ctx)
void kssl_ctx_show (KSSL_CTX *kssl_ctx)
krb5_error_code kssl_ctx_setprinc (KSSL_CTX *kssl_ctx, int which, krb5_data *realm, krb5_data *entity, int nentities)
krb5_error_code kssl_cget_tkt (KSSL_CTX *kssl_ctx, krb5_data **enc_tktp, krb5_data *authenp, KSSL_ERR *kssl_err)
krb5_error_code kssl_sget_tkt (KSSL_CTX *kssl_ctx, krb5_data *indata, krb5_ticket_times *ttimes, KSSL_ERR *kssl_err)
krb5_error_code kssl_ctx_setkey (KSSL_CTX *kssl_ctx, krb5_keyblock *session)
void kssl_err_set (KSSL_ERR *kssl_err, int reason, char *text)
void kssl_krb5_free_data_contents (krb5_context context, krb5_data *data)
krb5_error_code kssl_build_principal_2 (krb5_context context, krb5_principal *princ, int rlen, const char *realm, int slen, const char *svc, int hlen, const char *host)
krb5_error_code kssl_validate_times (krb5_timestamp atime, krb5_ticket_times *ttimes)
krb5_error_code kssl_check_authent (KSSL_CTX *kssl_ctx, krb5_data *authentp, krb5_timestamp *atimep, KSSL_ERR *kssl_err)
unsigned char * kssl_skip_confound (krb5_enctype enctype, unsigned char *authn)


Define Documentation

#define KRB5CHECKAUTH   1

Definition at line 112 of file kssl.h.

#define KRB5KEYTAB   "/etc/krb5.keytab"

Definition at line 104 of file kssl.h.

#define KRB5SENDAUTH   1

Definition at line 108 of file kssl.h.

#define KRB5SVC   "host"

Definition at line 100 of file kssl.h.

#define KSSL_CLIENT   1

Definition at line 143 of file kssl.h.

#define KSSL_CLOCKSKEW   300;

Definition at line 116 of file kssl.h.

#define KSSL_CTX_ERR   1

Definition at line 149 of file kssl.h.

#define KSSL_CTX_OK   0

Definition at line 148 of file kssl.h.

#define KSSL_ERR_MAX   255

Definition at line 119 of file kssl.h.

#define KSSL_KEYTAB   4

Definition at line 146 of file kssl.h.

#define KSSL_NOMEM   2

Definition at line 150 of file kssl.h.

#define KSSL_SERVER   2

Definition at line 144 of file kssl.h.

#define KSSL_SERVICE   3

Definition at line 145 of file kssl.h.


Typedef Documentation

typedef struct kssl_ctx_st KSSL_CTX

typedef struct kssl_err_st KSSL_ERR


Function Documentation

krb5_error_code kssl_build_principal_2 ( krb5_context  context,
krb5_principal *  princ,
int  rlen,
const char *  realm,
int  slen,
const char *  svc,
int  hlen,
const char *  host 
)

krb5_error_code kssl_cget_tkt ( KSSL_CTX kssl_ctx,
krb5_data **  enc_tktp,
krb5_data *  authenp,
KSSL_ERR kssl_err 
)

krb5_error_code kssl_check_authent ( KSSL_CTX kssl_ctx,
krb5_data *  authentp,
krb5_timestamp *  atimep,
KSSL_ERR kssl_err 
)

KSSL_CTX* kssl_ctx_free ( KSSL_CTX kssl_ctx  ) 

KSSL_CTX* kssl_ctx_new ( void   ) 

krb5_error_code kssl_ctx_setkey ( KSSL_CTX kssl_ctx,
krb5_keyblock *  session 
)

krb5_error_code kssl_ctx_setprinc ( KSSL_CTX kssl_ctx,
int  which,
krb5_data *  realm,
krb5_data *  entity,
int  nentities 
)

krb5_error_code kssl_ctx_setstring ( KSSL_CTX kssl_ctx,
int  which,
char *  text 
)

void kssl_ctx_show ( KSSL_CTX kssl_ctx  ) 

void kssl_err_set ( KSSL_ERR kssl_err,
int  reason,
char *  text 
)

void kssl_krb5_free_data_contents ( krb5_context  context,
krb5_data *  data 
)

krb5_error_code kssl_sget_tkt ( KSSL_CTX kssl_ctx,
krb5_data *  indata,
krb5_ticket_times *  ttimes,
KSSL_ERR kssl_err 
)

unsigned char* kssl_skip_confound ( krb5_enctype  enctype,
unsigned char *  authn 
)

krb5_error_code kssl_validate_times ( krb5_timestamp  atime,
krb5_ticket_times *  ttimes 
)


Generated on Thu Aug 20 22:33:06 2009 for OpenXDAS by  doxygen 1.5.6