OpenSSL  1.0.1c
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Macros | Functions
kssl.c File Reference
#include <openssl/opensslconf.h>
#include <string.h>
#include <openssl/ssl.h>
#include <openssl/evp.h>
#include <openssl/objects.h>
#include <openssl/krb5_asn.h>
#include "kssl_lcl.h"

Go to the source code of this file.

Macros

#define KRB5_PRIVATE   1
 
#define ENOMEM   KRB5KRB_ERR_GENERIC
 
#define kssl_malloc(size)   OPENSSL_malloc((size))
 
#define kssl_realloc(ptr, size)   OPENSSL_realloc(ptr, size)
 
#define kssl_free(ptr)   OPENSSL_free((ptr))
 

Functions

char * kstring (char *string)
 
const EVP_CIPHERkssl_map_enc (krb5_enctype enctype)
 
unsigned char * kssl_skip_confound (krb5_enctype etype, unsigned char *a)
 
void kssl_err_set (KSSL_ERR *kssl_err, int reason, char *text)
 
void print_krb5_data (char *label, krb5_data *kdata)
 
void print_krb5_authdata (char *label, krb5_authdata **adata)
 
void print_krb5_keyblock (char *label, krb5_keyblock *keyblk)
 
krb5_error_code kssl_cget_tkt (KSSL_CTX *kssl_ctx, krb5_data **enc_ticketp, 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)
 
KSSL_CTXkssl_ctx_new (void)
 
KSSL_CTXkssl_ctx_free (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_ctx_setstring (KSSL_CTX *kssl_ctx, int which, char *text)
 
krb5_error_code kssl_ctx_setkey (KSSL_CTX *kssl_ctx, krb5_keyblock *session)
 
void kssl_ctx_show (KSSL_CTX *kssl_ctx)
 
int kssl_keytab_is_available (KSSL_CTX *kssl_ctx)
 
int kssl_tgt_is_available (KSSL_CTX *kssl_ctx)
 
void kssl_krb5_free_data_contents (krb5_context context, krb5_data *data)
 
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)
 
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)
 
void SSL_set0_kssl_ctx (SSL *s, KSSL_CTX *kctx)
 
KSSL_CTXSSL_get0_kssl_ctx (SSL *s)
 
char * kssl_ctx_get0_client_princ (KSSL_CTX *kctx)
 

Macro Definition Documentation

#define ENOMEM   KRB5KRB_ERR_GENERIC

Definition at line 84 of file kssl.c.

#define KRB5_PRIVATE   1

Definition at line 73 of file kssl.c.

#define kssl_free (   ptr)    OPENSSL_free((ptr))

Definition at line 799 of file kssl.c.

#define kssl_malloc (   size)    OPENSSL_malloc((size))

Definition at line 797 of file kssl.c.

#define kssl_realloc (   ptr,
  size 
)    OPENSSL_realloc(ptr, size)

Definition at line 798 of file kssl.c.

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 
)

Definition at line 2155 of file kssl.c.

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

Definition at line 1061 of file kssl.c.

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

Definition at line 1994 of file kssl.c.

KSSL_CTX* kssl_ctx_free ( KSSL_CTX kssl_ctx)

Definition at line 1574 of file kssl.c.

char* kssl_ctx_get0_client_princ ( KSSL_CTX kctx)

Definition at line 2207 of file kssl.c.

KSSL_CTX* kssl_ctx_new ( void  )

Definition at line 1564 of file kssl.c.

krb5_error_code kssl_ctx_setkey ( KSSL_CTX kssl_ctx,
krb5_keyblock *  session 
)

Definition at line 1688 of file kssl.c.

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

Definition at line 1596 of file kssl.c.

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

Definition at line 1653 of file kssl.c.

void kssl_ctx_show ( KSSL_CTX kssl_ctx)

Definition at line 1740 of file kssl.c.

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

Definition at line 940 of file kssl.c.

int kssl_keytab_is_available ( KSSL_CTX kssl_ctx)

Definition at line 1773 of file kssl.c.

void kssl_krb5_free_data_contents ( krb5_context  context,
krb5_data *  data 
)

Definition at line 1881 of file kssl.c.

const EVP_CIPHER* kssl_map_enc ( krb5_enctype  enctype)

Definition at line 816 of file kssl.c.

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

Definition at line 1309 of file kssl.c.

unsigned char* kssl_skip_confound ( krb5_enctype  etype,
unsigned char *  a 
)

Definition at line 916 of file kssl.c.

int kssl_tgt_is_available ( KSSL_CTX kssl_ctx)

Definition at line 1831 of file kssl.c.

krb5_error_code kssl_validate_times ( krb5_timestamp  atime,
krb5_ticket_times *  ttimes 
)

Definition at line 1957 of file kssl.c.

char* kstring ( char *  string)

Definition at line 803 of file kssl.c.

void print_krb5_authdata ( char *  label,
krb5_authdata **  adata 
)

Definition at line 972 of file kssl.c.

void print_krb5_data ( char *  label,
krb5_data *  kdata 
)

Definition at line 953 of file kssl.c.

void print_krb5_keyblock ( char *  label,
krb5_keyblock *  keyblk 
)

Definition at line 998 of file kssl.c.

KSSL_CTX* SSL_get0_kssl_ctx ( SSL s)

Definition at line 2202 of file kssl.c.

void SSL_set0_kssl_ctx ( SSL s,
KSSL_CTX kctx 
)

Definition at line 2197 of file kssl.c.