X-Git-Url: https://git.openssl.org/?a=blobdiff_plain;f=ssl%2Fkssl.h;h=a3d20e1ccbdc303f5a7522f6ef2e2f8d9d2930d8;hb=1385ddbb14286dba10e0cca41546986ffc8ea645;hp=7319b3daf2cc0aaca258ed968ed1315da7bd2a44;hpb=2a1ef754358e35c8e86df903e0a2f92c35a550d0;p=openssl.git diff --git a/ssl/kssl.h b/ssl/kssl.h index 7319b3daf2..a3d20e1ccb 100644 --- a/ssl/kssl.h +++ b/ssl/kssl.h @@ -63,6 +63,8 @@ #ifndef KSSL_H #define KSSL_H +#include + #ifndef OPENSSL_NO_KRB5 #include @@ -80,6 +82,12 @@ extern "C" { #ifdef KRB5_HEIMDAL typedef unsigned char krb5_octet; #define FAR +#else + +#ifndef FAR +#define FAR +#endif + #endif /* Uncomment this to debug kssl problems or @@ -141,25 +149,13 @@ typedef struct kssl_ctx_st #define KSSL_CTX_ERR 1 #define KSSL_NOMEM 2 - -/* Private (internal to OpenSSL) */ -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); - -char *kstring(char *string); -char *knumber(int len, krb5_octet *contents); - -EVP_CIPHER *kssl_map_enc(krb5_enctype enctype); - - /* Public (for use by applications that use OpenSSL with Kerberos 5 support */ krb5_error_code kssl_ctx_setstring(KSSL_CTX *kssl_ctx, int which, char *text); KSSL_CTX *kssl_ctx_new(void); KSSL_CTX *kssl_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); + 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,