Avoid <krb5/...> includes
authorJohn Gilmore <gnu@toad.com>
Tue, 28 Feb 1995 09:10:59 +0000 (09:10 +0000)
committerJohn Gilmore <gnu@toad.com>
Tue, 28 Feb 1995 09:10:59 +0000 (09:10 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5014 dc483132-0cff-0310-8789-dd5450dbe970

31 files changed:
src/lib/krb5/os/ChangeLog
src/lib/krb5/os/an_to_ln.c
src/lib/krb5/os/ccdefname.c
src/lib/krb5/os/def_realm.c
src/lib/krb5/os/free_hstrl.c
src/lib/krb5/os/free_krbhs.c
src/lib/krb5/os/full_ipadr.c
src/lib/krb5/os/gen_port.c
src/lib/krb5/os/gen_rname.c
src/lib/krb5/os/get_krbhst.c
src/lib/krb5/os/hst_realm.c
src/lib/krb5/os/init_os_ctx.c
src/lib/krb5/os/krbfileio.c
src/lib/krb5/os/ktdefname.c
src/lib/krb5/os/kuserok.c
src/lib/krb5/os/localaddr.c
src/lib/krb5/os/locate_kdc.c
src/lib/krb5/os/lock_file.c
src/lib/krb5/os/net_read.c
src/lib/krb5/os/net_write.c
src/lib/krb5/os/osconfig.c
src/lib/krb5/os/port2ip.c
src/lib/krb5/os/read_msg.c
src/lib/krb5/os/read_pwd.c
src/lib/krb5/os/realm_dom.c
src/lib/krb5/os/sendto_kdc.c
src/lib/krb5/os/sn2princ.c
src/lib/krb5/os/timeofday.c
src/lib/krb5/os/unlck_file.c
src/lib/krb5/os/ustime.c
src/lib/krb5/os/write_msg.c

index c5d032b5a31e1bdbd6fd5dec2b539aa947e1a7e7..d1e55452d2c62e00777586bf50da7d6731142683 100644 (file)
@@ -1,3 +1,7 @@
+Tue Feb 28 01:07:37 1995  John Gilmore  (gnu at toad.com)
+
+       * *.c:  Avoid <krb5/...> includes.
+
 Fri Feb  3 08:24:18 1995  Theodore Y. Ts'o  (tytso@dcl)
 
        * gmt_mktime.c (gmt_mktime): Don't double count the leap day in a
index de4633c9ac35e56934795b4c4bee2a22ae198c91..a96fb4c18d9b0ec0ed86f509021122325dafd156 100644 (file)
  * krb5_aname_to_localname()
  */
 
-
-#include <krb5/osconf.h>
-
-#include <krb5/krb5.h>
-#include <krb5/los-proto.h>
-#include <krb5/ext-proto.h>
-
-#include <krb5/sysincl.h>
-#ifdef USE_DBM_LNAME
-#include <krb5/dbm.h>
-#endif
+#include "k5-int.h"
 
 #ifndef min
 #define min(a,b) ((a) > (b) ? (b) : (a))
index dde631c71b1b6c432d2b8b584b591fdad82c2962..3b00b6df5b2c83a1a3413062af6e7fb34925ff0a 100644 (file)
  * Return default cred. cache name.
  */
 
-
-#include <krb5/krb5.h>
-
+#include "k5-int.h"
 #include <stdio.h>
-#include <krb5/ext-proto.h>
-#include <krb5/osconf.h>
 
 char *krb5_cc_default_name(context)
     krb5_context context;
index 0685d20814fd6f3a497527c4ea30a675c4e8faf3..f32061ec39aa03e6d2ea7cf7c91126448011145c 100644 (file)
  * krb5_get_default_realm() function.
  */
 
-
-#include <krb5/krb5.h>
-#include <krb5/ext-proto.h>
-
+#include "k5-int.h"
 #include <stdio.h>
 
 /*
index 4945dab56a0c0aeb7e7e65a4fadc8ae7df19f9d6..f112041e4e3e4224286b11bda4055707a0dc7e4f 100644 (file)
  * krb5_free_host_realm()
  */
 
-
-#include <krb5/krb5.h>
-
-#include <krb5/ext-proto.h>
+#include "k5-int.h"
 #include <stdio.h>
-#include <krb5/los-proto.h>
 
 /*
  Frees the storage taken by a realm list returned by krb5_get_local_realm.
index c0326d61210085f9811897b07b7b59ff29140830..066acfcbf63ce4e41c83f238280cea88cd5ced72 100644 (file)
  * krb5_free_krbhst() function
  */
 
-
-#include <krb5/krb5.h>
-
-#include <krb5/ext-proto.h>
+#include "k5-int.h"
 
 /*
  Frees the storage taken by a host list returned by krb5_get_krbhst.
index 10d26eb2d0172421ff7673cc231dccb2c29d409d..d5539e454e280cd233132b8cbfcf0ab0abbd62eb 100644 (file)
  * Take an IP addr & port and generate a full IP address.
  */
 
-
-#include <krb5/krb5.h>
-#include <krb5/osconf.h>
+#include "k5-int.h"
 
 #ifdef KRB5_USE_INET
 
-#include <krb5/ext-proto.h>
-#include <krb5/los-proto.h>
 #include "os-proto.h"
 #include <netinet/in.h>
 
index 33ebd3d4421e7503fd7f32c210b15a4cccab5bf5..a5eb91bca54f3c0f6df099de8ccc8454af428785 100644 (file)
  * Take an IP addr & port and generate a full IP address.
  */
 
-
-#include <krb5/krb5.h>
-#include <krb5/osconf.h>
-#include <krb5/ext-proto.h>
-#include <krb5/los-proto.h>
+#include "k5-int.h"
 #include "os-proto.h"
 
 krb5_error_code
index 26c770fcd92241777fc9e9e493c5b7392113ed60..59bd7dacac5072417ac5468906009206c193dac2 100644 (file)
  * a replay cache tag string.
  */
 
-
-#include <krb5/krb5.h>
-#include <krb5/osconf.h>
-
-#include <krb5/ext-proto.h>
-#include <krb5/los-proto.h>
+#include "k5-int.h"
 #include "os-proto.h"
 #ifdef KRB5_USE_INET
 #include <sys/types.h>
index a779936b4b7e1b6b5c316c955a5219f42a11d920..2445c1bde95bf6e1f1e6cbaa740c13dc59e15d12 100644 (file)
@@ -24,9 +24,7 @@
  * krb5_get_krbhst() function.
  */
 
-
-#include <krb5/krb5.h>
-#include <krb5/ext-proto.h>
+#include "k5-int.h"
 #include <stdio.h>
 #include <ctype.h>
 
index 3f1768b77b2d2cd82dc4975535a3301f3c2cdd74..1cbe9aead995805d47de4607a5a37db50b08cbde 100644 (file)
  * host names should be in the usual form (e.g. FOO.BAR.BAZ)
  */
 
-
-#include <krb5/krb5.h>
-#include <krb5/ext-proto.h>
-#include <krb5/los-proto.h>
-#include <krb5/sysincl.h>
+#include "k5-int.h"
 #include <ctype.h>
-
 #include <stdio.h>
 
 /* for old Unixes and friends ... */
index 59c7c28ffe6e562928b410b44b793084c4bbf43a..4c92c6775dd14b06e55ef9d619ccc445da45c589 100644 (file)
  * krb5_init_contex()
  */
 
-#include <krb5/krb5.h>
-#include <krb5/libos.h>
-#include <krb5/los-proto.h>
-#include <krb5/ext-proto.h>
+#include "k5-int.h"
 
 krb5_error_code
 krb5_os_init_context(ctx)
index 139493e624866d696836f95f70fda82646262a1a..44521dd9b5f26144cfc92a6c3ef959c5113e8f32 100644 (file)
 static char *VersionID = "@(#)krbfileio.c      2 - 08/22/91";
 #endif
 
-#include <krb5/krb5.h>
-#include <krb5/libos.h>
-#include <krb5/los-proto.h>
-
+#include "k5-int.h"
 #include <sys/file.h>
-
 #include <sys/types.h>
-#include <krb5/ext-proto.h>
 #ifdef NEED_SYS_FCNTL_H
 #include <sys/fcntl.h>
 #endif
index bc0bf48c368c4de27c862f8eebf224e54d81a68f..2e944d0e2496c3c9c160035be54ee05ee92cf655 100644 (file)
  * Return default keytab file name.
  */
 
-
-#include <krb5/krb5.h>
-#include <krb5/osconf.h>
-
-#include <krb5/ext-proto.h>
+#include "k5-int.h"
 
 extern char *krb5_defkeyname;
 
index e7fa04ad0ac52141d38ec4226dda0a607206f64e..900f8c0bee53d0b6dc79f7b0821686b3408d2009 100644 (file)
  * krb5_kuserok()
  */
 
-
-#include <krb5/krb5.h>
-#include <krb5/osconf.h>
-#include <krb5/ext-proto.h>
-#include <krb5/los-proto.h>
-#include <krb5/sysincl.h>
-
+#include "k5-int.h"
 #include <stdio.h>
 #include <pwd.h>
 
index 45b91695a5692a64ddae26a3615e9bc13e9037d2..1e35ca4ecff3e541f06cd02721de5c86006d154e 100644 (file)
  */
 
 
-#include <krb5/krb5.h>
-#include <krb5/osconf.h>
-
-#include <krb5/ext-proto.h>
+#include "k5-int.h"
 
 /* needed for solaris, harmless elsewhere... */
 #define BSD_COMP
index fa1f5e04e80e481a0444f64a3199af092126fc37..99e6fdcfebbf45b2efd927fa4290151dfe247387 100644 (file)
  * get socket addresses for KDC.
  */
 
-
-#include <krb5/krb5.h>
-#include <krb5/osconf.h>
-
-#include <krb5/ext-proto.h>
+#include "k5-int.h"
 #include <stdio.h>
-#include <krb5/los-proto.h>
-
 #include <sys/types.h>
 #include <sys/socket.h>
 #ifdef KRB5_USE_INET
index 9e342f4292caa159b8b1789cdf9c5ae60e141dd9..86368d80e0268cc4b05d2fa98eefd982dcd22537 100644 (file)
  * libos: krb5_lock_file routine
  */
 
-
 #if HAVE_UNISTD_H
 #include <unistd.h>
 #endif
-          
-#include <krb5/krb5.h>
-#include <krb5/libos.h>
-
+#include "k5-int.h"
 #include <stdio.h>
 
 #ifdef POSIX_FILE_LOCKS
@@ -48,7 +44,6 @@
 #endif
 
 #include <sys/types.h>
-#include <krb5/ext-proto.h>
 
 extern int errno;
 
index 89394d564230838c26972849aaf6a478dbd0a528..caa85ff78f47e7ae99a29761edd08fd978a7a243 100644 (file)
@@ -22,9 +22,7 @@
  * 
  */
 
-
-#include <krb5/krb5.h>
-#include <krb5/ext-proto.h>
+#include "k5-int.h"
 
 /*
  * krb5_net_read() reads from the file descriptor "fd" to the buffer
index 5d07fd415c5869e0c77896543f09b666b5b42c25..9cf3bb5e7b6e5fd451cc8d6907e806074897bb06 100644 (file)
@@ -22,9 +22,7 @@
  * 
  */
 
-
-#include <krb5/krb5.h>
-#include <krb5/ext-proto.h>
+#include "k5-int.h"
 
 /*
  * krb5_net_write() writes "len" bytes from "buf" to the file
index d7da6315f4dfab86035b831b4e0a21d7b8628130..84ec68c2f27a31dc2311956437cf4c21cf4fc167 100644 (file)
  * Definition of default configuration parameters.
  */
 
-
-#include <krb5/osconf.h>
-#include <krb5/config.h>
-
+#include "k5-int.h"
 
 char *krb5_config_file = DEFAULT_CONFIG_FILENAME;
 char *krb5_trans_file = DEFAULT_TRANS_FILENAME;
index 77750752f4f30ebba0b85582b880306e2c95766d..b6883d782a125229156ab4bc4856dcea7d087ccd 100644 (file)
  * Take an ADDRPORT address and split into IP addr & port.
  */
 
-
-#include <krb5/krb5.h>
-#include <krb5/osconf.h>
+#include "k5-int.h"
 
 #ifdef KRB5_USE_INET
-
-#include <krb5/ext-proto.h>
-#include <krb5/los-proto.h>
 #include "os-proto.h"
 #include <netinet/in.h>
 
index 08232a5be92c3d4ea043471c49503c501f4dc480..2d49249dc1f770690a7742a644630e5b6110eae7 100644 (file)
  * Write a message to the network
  */
 
-
-#include <krb5/krb5.h>
-#include <krb5/los-proto.h>
-#include <krb5/ext-proto.h>
-#include <com_err.h>
+#include "k5-int.h"
 #include <errno.h>
-
-#include <stdio.h>
-#include <string.h>
 #include <netinet/in.h>
 
 krb5_error_code
index 98d9ce47fe6e547972d8f286042ad0354e0187fa..3ca73fbbecc86acad8103d0bf6dcab259c0a95d0 100644 (file)
@@ -24,9 +24,7 @@
  * libos: krb5_read_password for BSD 4.3
  */
 
-
-#include <krb5/krb5.h>
-
+#include "k5-int.h"
 #include <stdio.h>
 #include <errno.h>
 #include <signal.h>
@@ -36,8 +34,6 @@
 #include <sgtty.h>
 #endif
 
-#include <krb5/ext-proto.h>
-
 /* POSIX_* are auto-magically defined in <krb5/config.h> at source
    configuration time. */
 
index 8acf7be9b12ed62578df2bdf55bbff8215f6e6cf..dd146825a01f8d8410e40845bafe3252c274ba68 100644 (file)
  * This was hacked together from krb5_get_host_realm().
  */
 
-#include <krb5/krb5.h>
-#include <krb5/ext-proto.h>
-#include <krb5/los-proto.h>
-#include <krb5/sysincl.h>
+#include "k5-int.h"
 #include <ctype.h>
-
 #include <stdio.h>
 
 /* for old Unixes and friends ... */
index 55c85603dedaf0c4bc8485a43365b4d7ed3cde58..24022ad6b34b8853ae0e79ea5c218ff8d62e9b9f 100644 (file)
  * as necessary.
  */
 
-
-#include <krb5/krb5.h>
-#include <krb5/ext-proto.h>
-#include <krb5/sysincl.h>
+#include "k5-int.h"
 
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <sys/time.h>
-
-#include <krb5/los-proto.h>
 #include "os-proto.h"
 
 #ifdef _AIX
  *
  * The storage for 'reply' is allocated and should be freed by the caller
  * when finished.
- *
  */
 
-
 extern int krb5_max_dgram_size;
 extern int krb5_max_skdc_timeout;
 extern int krb5_skdc_timeout_shift;
index 41bfb7a06a8edeb284c91e26cee563e3239d62fc..97509717b61b7070195406f3a9860358bbb13d31 100644 (file)
  * form.
  */
 
-
-#include <krb5/krb5.h>
-#include <krb5/ext-proto.h>
-#include <krb5/los-proto.h>
+#include "k5-int.h"
 #include <netdb.h>
 #include <ctype.h>
 #include <sys/param.h>
index dc431502abc1e5a676cda36faa191acbecb41b19..5197809d35924888a4ab9da5a38db23d2d1af590 100644 (file)
@@ -28,9 +28,7 @@
 #include <time.h>
 #include <stdio.h>                     /* needed for libos-proto.h */
 
-#include <krb5/config.h>
-#include <krb5/krb5.h>
-#include <krb5/los-proto.h>
+#include "k5-int.h"
 
 #ifdef POSIX_TYPES
 #define timetype time_t
index 681f3c8e67853137adc44a21e7e8a91157c32fc6..900073e09892ee285f4013c64e9ff51c01944c42 100644 (file)
  * libos: krb5_lock_file routine
  */
 
-
 #include <stdio.h>
-
-#include <krb5/krb5.h>
-#include <krb5/libos.h>
-#include <krb5/los-proto.h>
+#include "k5-int.h"
 
 krb5_error_code
 krb5_unlock_file(context, filep, pathname)
index 9e3c7ae5b6cc0160270a066b29ac033c43756c00..1d5014691ced0730ee00acabd779353c2361c6fa 100644 (file)
  * krb5_mstimeofday for BSD 4.3
  */
 
-
-#include <krb5/config.h>
-#include <krb5/krb5.h>
-#include <krb5/los-proto.h>
-#include <krb5/sysincl.h>
+#include "k5-int.h"
 
 extern int errno;
 
index f1c2f8f4ae24a52d96e34b601a0f3eb1aeca84f0..e9f615412fd41957ac7d1e5fbc2b82e8edc378f0 100644 (file)
  * convenience sendauth/recvauth functions
  */
 
-
-#include <krb5/krb5.h>
-#include <krb5/los-proto.h>
-#include <com_err.h>
+#include "k5-int.h"
 #include <errno.h>
-
-#include <stdio.h>
-#include <string.h>
 #include <netinet/in.h>
 
 krb5_error_code