From 2863ef032c656950b9872ec3bc006eb2bcffafa9 Mon Sep 17 00:00:00 2001 From: Keith Vetter Date: Thu, 2 Mar 1995 01:45:56 +0000 Subject: [PATCH] Prototype changes for the krb5/os functions needed on the PC git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5055 dc483132-0cff-0310-8789-dd5450dbe970 --- src/include/krb5/ChangeLog | 7 ++++ src/include/krb5/func-proto.h | 9 +++++ src/include/krb5/los-proto.h | 66 +++++++++++++++++++---------------- 3 files changed, 52 insertions(+), 30 deletions(-) diff --git a/src/include/krb5/ChangeLog b/src/include/krb5/ChangeLog index 0062e9dcb..c96c35b11 100644 --- a/src/include/krb5/ChangeLog +++ b/src/include/krb5/ChangeLog @@ -1,3 +1,10 @@ +Wed Mar 1 17:40:00 1995 Keith Vetter (keithv@fusion.com) + + * func-proto.h: added missing prototype for krb5_mk_cred. + * los-proto.h: added windows INTERFACE keyword to all functions, + plus added 2 missing prototypes: krb5_os_init_context and + krb5_os_free_context. + Wed Mar 1 12:48:20 1995 Keith Vetter (keithv@fusion.com) * config.h: added defines to pull in winsock.h as needed diff --git a/src/include/krb5/func-proto.h b/src/include/krb5/func-proto.h index 038b458a3..eb1f0863f 100644 --- a/src/include/krb5/func-proto.h +++ b/src/include/krb5/func-proto.h @@ -607,6 +607,15 @@ krb5_error_code INTERFACE krb5_walk_realm_tree krb5_principal **, int)); +krb5_error_code INTERFACE krb5_mk_cred + PROTOTYPE((krb5_context, + krb5_kdc_rep *, + krb5_enctype, + krb5_keyblock *, + krb5_address *, + krb5_address *, + krb5_data *)); + #define KRB5_REALM_BRANCH_CHAR '.' #endif /* KRB5_FUNC_PROTO__ */ diff --git a/src/include/krb5/los-proto.h b/src/include/krb5/los-proto.h index aec2ef0ea..4a2ecade1 100644 --- a/src/include/krb5/los-proto.h +++ b/src/include/krb5/los-proto.h @@ -29,116 +29,122 @@ #include -krb5_error_code krb5_init_os_context +krb5_error_code INTERFACE krb5_init_os_context PROTOTYPE((krb5_context)); -void krb5_free_os_context +void INTERFACE krb5_free_os_context PROTOTYPE((krb5_context)); /* libos.spec */ -krb5_error_code krb5_read_password +krb5_error_code INTERFACE krb5_read_password PROTOTYPE((krb5_context, char *, char *, char *, int * )); -krb5_error_code krb5_lock_file +krb5_error_code INTERFACE krb5_lock_file PROTOTYPE((krb5_context, FILE *, char *, int )); -krb5_error_code krb5_unlock_file +krb5_error_code INTERFACE krb5_unlock_file PROTOTYPE((krb5_context, FILE *, char * )); -krb5_error_code krb5_timeofday +krb5_error_code INTERFACE krb5_timeofday PROTOTYPE((krb5_context, krb5_int32 * )); -krb5_error_code krb5_us_timeofday +krb5_error_code INTERFACE krb5_us_timeofday PROTOTYPE((krb5_context, krb5_int32 *, krb5_int32 * )); -int krb5_net_read +int INTERFACE krb5_net_read PROTOTYPE((krb5_context, int , char *, int )); -int krb5_net_write +int INTERFACE krb5_net_write PROTOTYPE((krb5_context, int , const char *, int )); /* get all the addresses of this host */ -krb5_error_code krb5_os_localaddr +krb5_error_code INTERFACE krb5_os_localaddr PROTOTYPE((krb5_address ***)); -krb5_error_code krb5_sendto_kdc +krb5_error_code INTERFACE krb5_sendto_kdc PROTOTYPE((krb5_context, const krb5_data *, const krb5_data *, krb5_data * )); -krb5_error_code krb5_get_krbhst +krb5_error_code INTERFACE krb5_get_krbhst PROTOTYPE((krb5_context, const krb5_data *, char *** )); -krb5_error_code krb5_free_krbhst +krb5_error_code INTERFACE krb5_free_krbhst PROTOTYPE((krb5_context, char * const * )); -krb5_error_code krb5_aname_to_localname +krb5_error_code INTERFACE krb5_aname_to_localname PROTOTYPE((krb5_context, krb5_const_principal, const int, char * )); -krb5_error_code krb5_get_default_realm +krb5_error_code INTERFACE krb5_get_default_realm PROTOTYPE((krb5_context, char ** )); -krb5_error_code krb5_get_host_realm +krb5_error_code INTERFACE krb5_get_host_realm PROTOTYPE((krb5_context, const char *, char *** )); -krb5_error_code krb5_free_host_realm +krb5_error_code INTERFACE krb5_free_host_realm PROTOTYPE((krb5_context, char * const * )); -krb5_error_code krb5_get_realm_domain +krb5_error_code INTERFACE krb5_get_realm_domain PROTOTYPE((krb5_context, const char *, char ** )); -krb5_boolean krb5_kuserok +krb5_boolean INTERFACE krb5_kuserok PROTOTYPE((krb5_context, krb5_principal, const char *)); krb5_error_code INTERFACE krb5_random_confounder PROTOTYPE((int, krb5_pointer )); -krb5_error_code krb5_gen_replay_name +krb5_error_code INTERFACE krb5_gen_replay_name PROTOTYPE((krb5_context, const krb5_address *, const char *, char **)); -krb5_error_code krb5_gen_portaddr +krb5_error_code INTERFACE krb5_gen_portaddr PROTOTYPE((krb5_context, const krb5_address *, krb5_const_pointer, krb5_address **)); -krb5_error_code krb5_create_secure_file +krb5_error_code INTERFACE krb5_create_secure_file PROTOTYPE((krb5_context, const char * pathname)); -krb5_error_code krb5_sync_disk_file +krb5_error_code INTERFACE krb5_sync_disk_file PROTOTYPE((krb5_context, FILE *fp)); -krb5_error_code krb5_read_message +krb5_error_code INTERFACE krb5_read_message PROTOTYPE((krb5_context, krb5_pointer, krb5_data *)); -krb5_error_code krb5_write_message +krb5_error_code INTERFACE krb5_write_message PROTOTYPE((krb5_context, krb5_pointer, krb5_data *)); -krb5_error_code krb5_sname_to_principal - PROTOTYPE((krb5_context, +krb5_error_code INTERFACE krb5_sname_to_principal + PROTOTYPE((krb5_context, const char *, - const char *, - krb5_int32, - krb5_principal *)); + const char *, + krb5_int32, + krb5_principal *)); + +krb5_error_code INTERFACE krb5_os_init_context + PROTOTYPE((krb5_context)); + +void INTERFACE krb5_os_free_context + PROTOTYPE((krb5_context)); #endif /* KRB5_LIBOS_PROTO__ */ -- 2.26.2