From a4dac6dd757ba72bbf8e8065337a445e857b75b4 Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Tue, 26 Jun 2001 20:35:59 +0000 Subject: [PATCH] * krb4int.h: Add prototypes for krb__get_realmsfile(), krb5 prototypes are declarted from krb.hkrb__get_cnffile() and krb5 prototypes are declarted from krb.hk_gethostname(). * g_pw_in_tkt.c: Declare passwd_to_key() static. * cr_tkt.c: Move krb5.h inclusion before krb.h so that certain krb5 prototypes are declarted from krb.h. * g_admhost.c, g_cnffile.c, g_krbhst.c, g_krbrlm.c, gethostname.c krb5 prototypes are declarted from krb.hrealmofhost.c: Include krb4int.h and remove prototypes included in there. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13512 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb4/ChangeLog | 14 ++++++++++++++ src/lib/krb4/cr_tkt.c | 2 +- src/lib/krb4/g_admhst.c | 3 ++- src/lib/krb4/g_cnffile.c | 1 + src/lib/krb4/g_krbhst.c | 3 ++- src/lib/krb4/g_krbrlm.c | 3 ++- src/lib/krb4/g_pw_in_tkt.c | 2 +- src/lib/krb4/gethostname.c | 2 ++ src/lib/krb4/krb4int.h | 12 +++++++++++- src/lib/krb4/realmofhost.c | 2 +- 10 files changed, 37 insertions(+), 7 deletions(-) diff --git a/src/lib/krb4/ChangeLog b/src/lib/krb4/ChangeLog index cb2a0a7d0..82a463997 100644 --- a/src/lib/krb4/ChangeLog +++ b/src/lib/krb4/ChangeLog @@ -1,3 +1,17 @@ +2001-06-26 Ezra Peisach + + * krb4int.h: Add prototypes for krb__get_realmsfile(), + krb5 prototypes are declarted from krb.hkrb__get_cnffile() and + krb5 prototypes are declarted from krb.hk_gethostname(). + + * g_pw_in_tkt.c: Declare passwd_to_key() static. + + * cr_tkt.c: Move krb5.h inclusion before krb.h so that certain + krb5 prototypes are declarted from krb.h. + + * g_admhost.c, g_cnffile.c, g_krbhst.c, g_krbrlm.c, gethostname.c + krb5 prototypes are declarted from krb.hrealmofhost.c: + Include krb4int.h and remove prototypes included in there. 2001-06-20 Ezra Peisach diff --git a/src/lib/krb4/cr_tkt.c b/src/lib/krb4/cr_tkt.c index 09e5cf847..b688f8468 100644 --- a/src/lib/krb4/cr_tkt.c +++ b/src/lib/krb4/cr_tkt.c @@ -24,11 +24,11 @@ * or implied warranty. */ +#include #include "des.h" #include "krb.h" #include "prot.h" #include -#include static int krb_cr_tkt_int PROTOTYPE((KTEXT tkt, unsigned int flags_in, char *pname, diff --git a/src/lib/krb4/g_admhst.c b/src/lib/krb4/g_admhst.c index c5bed3f68..abaf48136 100644 --- a/src/lib/krb4/g_admhst.c +++ b/src/lib/krb4/g_admhst.c @@ -12,6 +12,7 @@ #include #include "krb.h" #include +#include "krb4int.h" /* * Given a Kerberos realm, find a host on which the Kerberos database @@ -40,7 +41,7 @@ krb_get_admhst(h, r, n) char FAR *r; int n; { - FILE *cnffile, *krb__get_cnffile(); + FILE *cnffile; char tr[REALM_SZ]; char linebuf[BUFSIZ]; char scratch[64]; diff --git a/src/lib/krb4/g_cnffile.c b/src/lib/krb4/g_cnffile.c index 83654b83f..c31a9d219 100644 --- a/src/lib/krb4/g_cnffile.c +++ b/src/lib/krb4/g_cnffile.c @@ -18,6 +18,7 @@ #include #include "krb.h" #include "k5-int.h" +#include "krb4int.h" krb5_context krb5__krb4_context = 0; diff --git a/src/lib/krb4/g_krbhst.c b/src/lib/krb4/g_krbhst.c index 4e0fd6d76..65bf57fa3 100644 --- a/src/lib/krb4/g_krbhst.c +++ b/src/lib/krb4/g_krbhst.c @@ -12,6 +12,7 @@ #include #include "krb.h" #include +#include "krb4int.h" /* * Given a Kerberos realm, find a host on which the Kerberos authenti- @@ -69,7 +70,7 @@ krb_get_krbhst(h,r,n) char FAR *r; int n; { - FILE *cnffile, *krb__get_cnffile(); + FILE *cnffile; char tr[REALM_SZ]; char linebuf[BUFSIZ]; register int i; diff --git a/src/lib/krb4/g_krbrlm.c b/src/lib/krb4/g_krbrlm.c index 3c381aace..d31b59a02 100644 --- a/src/lib/krb4/g_krbrlm.c +++ b/src/lib/krb4/g_krbrlm.c @@ -12,6 +12,7 @@ #include #include "krb.h" #include +#include "krb4int.h" /* * krb_get_lrealm takes a pointer to a string, and a number, n. It fills @@ -33,7 +34,7 @@ krb_get_lrealm(r,n) char *r; int n; { - FILE *cnffile, *krb__get_cnffile(); + FILE *cnffile; if (n > 1) return(KFAILURE); /* Temporary restriction */ diff --git a/src/lib/krb4/g_pw_in_tkt.c b/src/lib/krb4/g_pw_in_tkt.c index 91e24a1c6..b81a4e270 100644 --- a/src/lib/krb4/g_pw_in_tkt.c +++ b/src/lib/krb4/g_pw_in_tkt.c @@ -47,7 +47,7 @@ * and 0 is returned. */ /*ARGSUSED */ -int +static int passwd_to_key(user,instance,realm,passwd,key) char *user, *instance, *realm, *passwd; C_Block key; diff --git a/src/lib/krb4/gethostname.c b/src/lib/krb4/gethostname.c index 6360a353d..07425e616 100644 --- a/src/lib/krb4/gethostname.c +++ b/src/lib/krb4/gethostname.c @@ -10,6 +10,8 @@ #include "mit-copyright.h" #define DEFINE_SOCKADDR #include "krb.h" +#include "krb4int.h" + #ifdef HAVE_UNISTD_H #include #endif diff --git a/src/lib/krb4/krb4int.h b/src/lib/krb4/krb4int.h index bdd3281d3..2525d77ab 100644 --- a/src/lib/krb4/krb4int.h +++ b/src/lib/krb4/krb4int.h @@ -2,7 +2,17 @@ * be available for self consistancy in the library. */ - +/* getst.c */ int getst(int, char *, int); +/* tf_util.c */ int tf_save_cred(char *, char *, char *, C_Block, int , int, KTEXT, long); + +/* g_cnffile.c */ +FILE *krb__get_realmsfile(void); + +FILE *krb__get_cnffile(void); + +/* gethostname.c */ +int k_gethostname(char *, int); + diff --git a/src/lib/krb4/realmofhost.c b/src/lib/krb4/realmofhost.c index 684670c6b..b3499de42 100644 --- a/src/lib/krb4/realmofhost.c +++ b/src/lib/krb4/realmofhost.c @@ -21,6 +21,7 @@ #else extern char *malloc(); #endif +#include "krb4int.h" /* * krb_realmofhost. @@ -48,7 +49,6 @@ krb_realmofhost(host) { char *domain; FILE *trans_file; - FILE *krb__get_realmsfile(); /* * This used to be MAXHOSTNAMELEN, but we don't know how big * that will necessarily be on all systems, so assume 1024. -- 2.26.2