From a84983deee1a78d7a233bb7ed718ea4041308efe Mon Sep 17 00:00:00 2001 From: Johan Danielsson Date: Sat, 8 Mar 1997 05:58:26 +0000 Subject: [PATCH] Protypes for new storage functions. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1281 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/krb5/krb5.h | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/lib/krb5/krb5.h b/lib/krb5/krb5.h index 1e39b0ff2..7297a6a3c 100644 --- a/lib/krb5/krb5.h +++ b/lib/krb5/krb5.h @@ -203,8 +203,16 @@ typedef struct krb5_keytab_entry { krb5_keyblock keyblock; } krb5_keytab_entry; +typedef struct krb5_storage{ + void *data; + size_t (*fetch)(struct krb5_storage*, void*, size_t); + size_t (*store)(struct krb5_storage*, void*, size_t); + off_t (*seek)(struct krb5_storage*, off_t, int); +} krb5_storage; + typedef struct krb5_kt_cursor { - int fd; + int fd; + krb5_storage *sp; } krb5_kt_cursor; typedef struct krb5_auth_context_data{ @@ -538,5 +546,16 @@ struct error_list { const char *krb5_get_err_text(krb5_context context, long code); + +/* XXX these are glue functions and really don't belong here */ + +krb5_error_code krb5_principal2principalname (PrincipalName *p, + krb5_principal from); +krb5_error_code principalname2krb5_principal (krb5_principal *principal, + PrincipalName from, + char *realm); + +#include "store.h" + #endif /* __KRB5_H__ */