From: John Gilmore Date: Tue, 28 Feb 1995 09:34:25 +0000 (+0000) Subject: Avoid includes X-Git-Tag: krb5-1.0-beta5~653 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f54af20374e5d2c43a78f9643bd19eafc468cdbb;p=krb5.git Avoid includes git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5017 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/ChangeLog b/src/lib/ChangeLog index 9cfddf42a..e84f31e91 100644 --- a/src/lib/ChangeLog +++ b/src/lib/ChangeLog @@ -1,3 +1,7 @@ +Tue Feb 28 01:33:52 1995 John Gilmore (gnu at toad.com) + + * glue4.c: Avoid includes. + Thu Oct 6 20:06:06 1994 Theodore Y. Ts'o (tytso@dcl) * configure.in: Add recursive "make check" target. diff --git a/src/lib/des425/ChangeLog b/src/lib/des425/ChangeLog index a9439e803..88137efd1 100644 --- a/src/lib/des425/ChangeLog +++ b/src/lib/des425/ChangeLog @@ -1,3 +1,8 @@ +Tue Feb 28 01:30:11 1995 John Gilmore (gnu at toad.com) + + * cksum.c, des.c, des.h, enc_dec.c, pcbc_encrypt.c, quad_cksum.c, + read_passwd.c, string2key.c, weak_key.c: Avoid includes. + Tue Feb 21 17:42:44 1995 Keith Vetter (keithv@fusion.com) * Makefile.in: made to work on the PC diff --git a/src/lib/des425/cksum.c b/src/lib/des425/cksum.c index 519b4ac4c..568e706af 100644 --- a/src/lib/des425/cksum.c +++ b/src/lib/des425/cksum.c @@ -36,7 +36,6 @@ #include "des.h" -#include /* * This routine performs DES cipher-block-chaining checksum operation, diff --git a/src/lib/des425/des.c b/src/lib/des425/des.c index 93e07e65a..289061ae6 100644 --- a/src/lib/des425/des.c +++ b/src/lib/des425/des.c @@ -50,7 +50,6 @@ #include "des.h" -#include int INTERFACE des_ecb_encrypt(clear, cipher, schedule, encrypt) diff --git a/src/lib/des425/des.h b/src/lib/des425/des.h index 7d4f61599..893f2503f 100644 --- a/src/lib/des425/des.h +++ b/src/lib/des425/des.h @@ -31,8 +31,7 @@ #ifndef DES_DEFS #define DES_DEFS -#include -#include +#include "k5-int.h" typedef mit_des_cblock des_cblock; /* crypto-block size */ diff --git a/src/lib/des425/enc_dec.c b/src/lib/des425/enc_dec.c index a221a3483..90de9253a 100644 --- a/src/lib/des425/enc_dec.c +++ b/src/lib/des425/enc_dec.c @@ -37,7 +37,6 @@ #include "des.h" -#include /* * This routine performs DES cipher-block-chaining operation, either diff --git a/src/lib/des425/pcbc_encrypt.c b/src/lib/des425/pcbc_encrypt.c index 06258cf8b..ea8948b7e 100644 --- a/src/lib/des425/pcbc_encrypt.c +++ b/src/lib/des425/pcbc_encrypt.c @@ -18,9 +18,8 @@ /* * copy of include/des.h to avoid collision with local one */ -#include -#include -#include +#include "k5-config.h" +#include "osconf.h" #ifndef KRB_INT32 #if (SIZEOF_LONG == 4) diff --git a/src/lib/des425/quad_cksum.c b/src/lib/des425/quad_cksum.c index 0a9628b48..4654a1037 100644 --- a/src/lib/des425/quad_cksum.c +++ b/src/lib/des425/quad_cksum.c @@ -86,8 +86,7 @@ #include /* Application include files */ -#include -#include +#include "k5-int.h" #include "des.h" /* Definitions for byte swapping */ diff --git a/src/lib/des425/read_passwd.c b/src/lib/des425/read_passwd.c index d6f0c78fc..e62285978 100644 --- a/src/lib/des425/read_passwd.c +++ b/src/lib/des425/read_passwd.c @@ -27,10 +27,6 @@ * echoing. */ - -#include -#include - #include "des.h" static krb5_context krb4_global_context = 0; diff --git a/src/lib/des425/string2key.c b/src/lib/des425/string2key.c index 826065c2b..89c816955 100644 --- a/src/lib/des425/string2key.c +++ b/src/lib/des425/string2key.c @@ -26,8 +26,6 @@ #include "des.h" -#include - #include "des_int.h" #ifdef DEBUG diff --git a/src/lib/des425/weak_key.c b/src/lib/des425/weak_key.c index 14f67eabd..cab80d400 100644 --- a/src/lib/des425/weak_key.c +++ b/src/lib/des425/weak_key.c @@ -31,7 +31,6 @@ #include "des.h" -#include /* * mit_des_is_weak_key: returns true iff key is a [semi-]weak des key. diff --git a/src/lib/glue4.c b/src/lib/glue4.c index 08566f0c1..bf9bbd8a0 100644 --- a/src/lib/glue4.c +++ b/src/lib/glue4.c @@ -1,4 +1,4 @@ -#include +#include "krb5.h" krb5_data string_list[3] = { {11, "FOO.MIT.EDU"}, diff --git a/src/slave/ChangeLog b/src/slave/ChangeLog index 9b8bd0dcb..0203ec037 100644 --- a/src/slave/ChangeLog +++ b/src/slave/ChangeLog @@ -1,3 +1,7 @@ +Tue Feb 28 01:21:52 1995 John Gilmore (gnu at toad.com) + + * kprop.c, kpropd.c: Avoid includes. + Tue Feb 14 15:30:55 1995 Chris Provenzano (proven@mit.edu) * kprop.c Call krb5_sendauth() with new calling convention. diff --git a/src/slave/kprop.c b/src/slave/kprop.c index 649094c86..b699cc7fc 100644 --- a/src/slave/kprop.c +++ b/src/slave/kprop.c @@ -38,15 +38,8 @@ #include #include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include "k5-int.h" +#include "com_err.h" #ifdef NEED_SYS_FCNTL_H #include diff --git a/src/slave/kpropd.c b/src/slave/kpropd.c index 646b65e09..de6ef5a4e 100644 --- a/src/slave/kpropd.c +++ b/src/slave/kpropd.c @@ -50,15 +50,8 @@ #include #include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include "k5-int.h" +#include "com_err.h" #include #include "kprop.h" diff --git a/src/tests/ChangeLog b/src/tests/ChangeLog index d98b432cf..a83c8d9e9 100644 --- a/src/tests/ChangeLog +++ b/src/tests/ChangeLog @@ -1,3 +1,7 @@ +Tue Feb 28 01:23:18 1995 John Gilmore (gnu at toad.com) + + * dump.c, test1.c: Avoid includes. + Sun Oct 23 01:47:14 1994 (tytso@rsx-11) * Makefile.in (check): Do checks for depth = 5 diff --git a/src/tests/asn.1/ChangeLog b/src/tests/asn.1/ChangeLog index f0a94dad7..f6a0b30ac 100644 --- a/src/tests/asn.1/ChangeLog +++ b/src/tests/asn.1/ChangeLog @@ -1,3 +1,8 @@ +Tue Feb 28 01:23:57 1995 John Gilmore (gnu at toad.com) + + * krb5_decode_test.c, krb5_encode_test.c, ktest.h, ktest_equal.h, + utility.c, utility.h: Avoid includes. + Tue Feb 14 00:18:35 1995 Theodore Y. Ts'o (tytso@dcl) * Makefile.in: Use $(LD) instead of $(CC) when linking. diff --git a/src/tests/asn.1/krb5_decode_test.c b/src/tests/asn.1/krb5_decode_test.c index c56dc8e7b..576c3fad7 100644 --- a/src/tests/asn.1/krb5_decode_test.c +++ b/src/tests/asn.1/krb5_decode_test.c @@ -1,10 +1,10 @@ -#include +#include "krb5.h" #include "ktest.h" -#include +#include "com_err.h" #include "utility.h" #include "ktest_equal.h" -#include +#include "asn1.h" #include "debug.h" #include diff --git a/src/tests/asn.1/krb5_encode_test.c b/src/tests/asn.1/krb5_encode_test.c index c821aa338..72c708aaa 100644 --- a/src/tests/asn.1/krb5_encode_test.c +++ b/src/tests/asn.1/krb5_encode_test.c @@ -1,7 +1,7 @@ #include -#include -#include -#include +#include "krb5.h" +#include "asn1.h" +#include "com_err.h" #include "utility.h" #include "ktest.h" diff --git a/src/tests/asn.1/ktest.h b/src/tests/asn.1/ktest.h index 29e5d4f46..3465d244c 100644 --- a/src/tests/asn.1/ktest.h +++ b/src/tests/asn.1/ktest.h @@ -1,7 +1,7 @@ #ifndef __KTEST_H__ #define __KTEST_H__ -#include +#include "krb5.h" #define SAMPLE_USEC 123456 #define SAMPLE_TIME 771228197 /* Fri Jun 10 6:03:17 GMT 1994 */ diff --git a/src/tests/asn.1/ktest_equal.h b/src/tests/asn.1/ktest_equal.h index 0885974e8..5b71c437d 100644 --- a/src/tests/asn.1/ktest_equal.h +++ b/src/tests/asn.1/ktest_equal.h @@ -1,7 +1,7 @@ #ifndef __KTEST_EQUAL_H__ #define __KTEST_EQUAL_H__ -#include +#include "krb5.h" /* int ktest_equal_structure(krb5_structure *ref, *var) */ /* effects Returns true (non-zero) if ref and var are diff --git a/src/tests/asn.1/utility.c b/src/tests/asn.1/utility.c index 6f911e370..324c98976 100644 --- a/src/tests/asn.1/utility.c +++ b/src/tests/asn.1/utility.c @@ -1,4 +1,4 @@ -#include +#include "krb5.h" #include "utility.h" #include #include diff --git a/src/tests/asn.1/utility.h b/src/tests/asn.1/utility.h index 66ca4dc86..0fda2c00a 100644 --- a/src/tests/asn.1/utility.h +++ b/src/tests/asn.1/utility.h @@ -1,7 +1,7 @@ #ifndef __UTILITY_H__ #define __UTILITY_H__ -#include +#include "krb5.h" #include "krbasn1.h" #include "asn1buf.h" diff --git a/src/tests/create/ChangeLog b/src/tests/create/ChangeLog index 6b4908f26..019d36928 100644 --- a/src/tests/create/ChangeLog +++ b/src/tests/create/ChangeLog @@ -1,3 +1,7 @@ +Tue Feb 28 01:24:52 1995 John Gilmore (gnu at toad.com) + + * kdb5_mkdums.c: Avoid includes. + Fri Jan 13 15:23:47 1995 Chris Provenzano (proven@mit.edu) * Added krb5_context to all krb5_routines diff --git a/src/tests/create/kdb5_mkdums.c b/src/tests/create/kdb5_mkdums.c index db0b19ac7..33a361825 100644 --- a/src/tests/create/kdb5_mkdums.c +++ b/src/tests/create/kdb5_mkdums.c @@ -24,17 +24,8 @@ * Edit a KDC database. */ -#include -#include -#include -#include -#include -#include -#include -#include /* for MAXPATHLEN */ -#include - -#include +#include "k5-int.h" +#include "com_err.h" #include #include diff --git a/src/tests/dump.c b/src/tests/dump.c index b6bde51c8..4cef05f53 100644 --- a/src/tests/dump.c +++ b/src/tests/dump.c @@ -25,8 +25,7 @@ */ #include - -#include +#include "krb5.h" void dump_data (data) krb5_data *data; diff --git a/src/tests/hammer/ChangeLog b/src/tests/hammer/ChangeLog index b03e90377..50650f3eb 100644 --- a/src/tests/hammer/ChangeLog +++ b/src/tests/hammer/ChangeLog @@ -1,3 +1,7 @@ +Tue Feb 28 01:25:13 1995 John Gilmore (gnu at toad.com) + + * kdc5_hammer.c, pp.c: Avoid includes. + Mon Feb 06 17:19:04 1995 Chris Provenzano (proven@mit.edu) * kdc5_hammer.c Removed krb5_keytype, changed krb5_enctype to diff --git a/src/tests/hammer/kdc5_hammer.c b/src/tests/hammer/kdc5_hammer.c index 8b7a7ea4b..5ebfa1122 100644 --- a/src/tests/hammer/kdc5_hammer.c +++ b/src/tests/hammer/kdc5_hammer.c @@ -26,13 +26,8 @@ #include -#include -#include -#include -#include -#include - -#include +#include "k5-int.h" +#include "com_err.h" #define KRB5_DEFAULT_OPTIONS 0 #define KRB5_DEFAULT_LIFE 60*60*8 /* 8 hours */ diff --git a/src/tests/hammer/pp.c b/src/tests/hammer/pp.c index 4dafd2eca..403d60de8 100644 --- a/src/tests/hammer/pp.c +++ b/src/tests/hammer/pp.c @@ -9,7 +9,7 @@ * */ -#include +#include "krb5.h" void print_principal(p) diff --git a/src/tests/test1.c b/src/tests/test1.c index b62808d1d..ae7dc78ef 100644 --- a/src/tests/test1.c +++ b/src/tests/test1.c @@ -24,7 +24,7 @@ * Regression tests for the kerberos library. */ -#include +#include "krb5.h" unsigned char key_one[8] = { 0x10, 0x23, 0x32, 0x45, 0x54, 0x67, 0x76, 0x89 }; unsigned char key_two[8] = { 0xea, 0x89, 0x57, 0x76, 0x5b, 0xcd, 0x0d, 0x34 }; diff --git a/src/tests/verify/ChangeLog b/src/tests/verify/ChangeLog index 914490a78..b41e8ab42 100644 --- a/src/tests/verify/ChangeLog +++ b/src/tests/verify/ChangeLog @@ -1,3 +1,7 @@ +Tue Feb 28 01:25:37 1995 John Gilmore (gnu at toad.com) + + * kdb5_verify.c: Avoid includes. + Fri Jan 13 15:23:47 1995 Chris Provenzano (proven@mit.edu) * Added krb5_context to all krb5_routines diff --git a/src/tests/verify/kdb5_verify.c b/src/tests/verify/kdb5_verify.c index d66c3cb28..ffd61b5bb 100644 --- a/src/tests/verify/kdb5_verify.c +++ b/src/tests/verify/kdb5_verify.c @@ -24,21 +24,11 @@ * Edit a KDC database. */ -#include -#include -#include -#include -#include -#include -#include -#include /* for MAXPATHLEN */ -#include - -#include +#include "k5-int.h" +#include "com_err.h" #include #include - #define REALM_SEP '@' #define REALM_SEP_STR "@"