From dc9dab91ba5fc3a192560e180b112ed401878db9 Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Thu, 7 Aug 1997 20:25:54 +0000 Subject: [PATCH] new prototypes git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2736 ec53bebd-3082-4978-b11e-865c3cabbd6b --- admin/admin_locl.h | 1 + lib/krb5/krb5.h | 33 ++++++++++++++++++++++++++++----- lib/krb5/krb5_locl.h | 17 +++++++++++++++++ 3 files changed, 46 insertions(+), 5 deletions(-) diff --git a/admin/admin_locl.h b/admin/admin_locl.h index 92a7b17d9..a5d0af4fc 100644 --- a/admin/admin_locl.h +++ b/admin/admin_locl.h @@ -98,5 +98,6 @@ void event2string(Event *ev, char **str); int flags2int(HDBFlags *f); time_t gettime(const char *prompt, const char *def); +size_t puttime(time_t t, char *s, size_t len); #endif /* __ADMIN_LOCL_H__ */ diff --git a/lib/krb5/krb5.h b/lib/krb5/krb5.h index 61fbe1e09..fda40ef2a 100644 --- a/lib/krb5/krb5.h +++ b/lib/krb5/krb5.h @@ -168,7 +168,10 @@ typedef struct krb5_ccache_data{ }krb5_ccache_data; typedef struct krb5_cc_cursor{ - int fd; + union { + int fd; + void *v; + } u; }krb5_cc_cursor; typedef struct krb5_ccache_data *krb5_ccache; @@ -280,10 +283,6 @@ typedef struct krb5_rcache{ int dummy; }krb5_rcache; -typedef struct krb5_fcache{ - char *filename; -}krb5_fcache; - typedef struct krb5_keytab_data { char *filename; }krb5_keytab_data; @@ -449,6 +448,16 @@ void krb5_free_keyblock(krb5_context context, krb5_keyblock *keyblock); +krb5_error_code +krb5_copy_keyblock (krb5_context context, + const krb5_keyblock *inblock, + krb5_keyblock **to); + +krb5_error_code +krb5_copy_keyblock_contents (krb5_context context, + const krb5_keyblock *inblock, + krb5_keyblock *to); + krb5_error_code krb5_auth_setcksumtype(krb5_context context, krb5_auth_context auth_context, @@ -689,10 +698,24 @@ krb5_verify_ap_req(krb5_context context, krb5_flags *ap_req_options, krb5_ticket **ticket); +krb5_error_code +krb5_free_creds_contents (krb5_context context, + krb5_creds *creds); + krb5_error_code krb5_free_creds (krb5_context context, krb5_creds *creds); +krb5_error_code +krb5_copy_creds (krb5_context context, + const krb5_creds *incred, + krb5_creds **outcred); + +krb5_error_code +krb5_copy_creds_contents (krb5_context context, + const krb5_creds *incred, + krb5_creds *c); + typedef EncAPRepPart krb5_ap_rep_enc_part; krb5_error_code diff --git a/lib/krb5/krb5_locl.h b/lib/krb5/krb5_locl.h index 228fae809..9c514879d 100644 --- a/lib/krb5/krb5_locl.h +++ b/lib/krb5/krb5_locl.h @@ -103,18 +103,26 @@ #include #include +/* data.c */ + krb5_error_code krb5_data_alloc(krb5_data *, int); krb5_error_code krb5_data_realloc(krb5_data *, int); krb5_error_code krb5_data_copy(krb5_data *, void *, size_t); +/* set_default_realm.c */ + krb5_error_code krb5_set_default_realm(krb5_context context, char *realm); +/* get_default_realm.c */ + krb5_error_code krb5_get_default_realm(krb5_context context, char **realm); +/* config_file.c */ + krb5_error_code krb5_config_parse_file (const char *fname, krb5_config_section **res); const void *krb5_config_get_next (krb5_config_section *c, @@ -125,6 +133,15 @@ const void *krb5_config_vget_next (krb5_config_section *c, krb5_config_binding **pointer, int type, va_list args); + +const void *krb5_config_get (krb5_config_section *c, + int type, + ...); + +const void *krb5_config_vget (krb5_config_section *c, + int type, + va_list args); + const char *krb5_config_get_string (krb5_config_section *c, ...); const char *krb5_config_vget_string (krb5_config_section *c,