diff options
author | John Gilmore <gnu@toad.com> | 1995-02-28 09:21:46 +0000 |
---|---|---|
committer | John Gilmore <gnu@toad.com> | 1995-02-28 09:21:46 +0000 |
commit | ef90d8fb6d87241ab82560131c1268e50a2c9c7f (patch) | |
tree | 58113353a351c0f286285ad557da9f1ed28be0c5 /src/lib | |
parent | 0120342539d5bf6314175d43c74ad2a8fb1ce920 (diff) | |
download | krb5-ef90d8fb6d87241ab82560131c1268e50a2c9c7f.tar.gz krb5-ef90d8fb6d87241ab82560131c1268e50a2c9c7f.tar.xz krb5-ef90d8fb6d87241ab82560131c1268e50a2c9c7f.zip |
* *.c: Avoid <krb5/...> includes.
* parse.c: Exdent #ifndef to left margin for old compilers.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5015 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib')
66 files changed, 76 insertions, 274 deletions
diff --git a/src/lib/krb5/krb/ChangeLog b/src/lib/krb5/krb/ChangeLog index a6c9e65a7d..7e3e5d6d26 100644 --- a/src/lib/krb5/krb/ChangeLog +++ b/src/lib/krb5/krb/ChangeLog @@ -1,3 +1,8 @@ +Tue Feb 28 01:14:57 1995 John Gilmore (gnu at toad.com) + + * *.c: Avoid <krb5/...> includes. + * parse.c: Exdent #ifndef to left margin for old compilers. + Wed Feb 22 17:14:31 1995 Keith Vetter (keithv@fusion.com) * walk_rtr.c (krb5_walk_realm_tree): formal parameter wasn't declared. diff --git a/src/lib/krb5/krb/addr_comp.c b/src/lib/krb5/krb/addr_comp.c index 76d8e91baf..f63ea0205e 100644 --- a/src/lib/krb5/krb/addr_comp.c +++ b/src/lib/krb5/krb/addr_comp.c @@ -24,9 +24,7 @@ * krb5_address_compare() */ - -#include <krb5/krb5.h> -#include <krb5/ext-proto.h> +#include "k5-int.h" /* * If the two addresses are the same, return TRUE, else return FALSE diff --git a/src/lib/krb5/krb/addr_order.c b/src/lib/krb5/krb/addr_order.c index 185f73f519..c872c52c68 100644 --- a/src/lib/krb5/krb/addr_order.c +++ b/src/lib/krb5/krb/addr_order.c @@ -24,9 +24,7 @@ * krb5_address_order() */ - -#include <krb5/krb5.h> -#include <krb5/ext-proto.h> +#include "k5-int.h" #ifndef min #define min(a,b) ((a) < (b) ? (a) : (b)) diff --git a/src/lib/krb5/krb/addr_srch.c b/src/lib/krb5/krb/addr_srch.c index 1988d08c19..2e112ea8c4 100644 --- a/src/lib/krb5/krb/addr_srch.c +++ b/src/lib/krb5/krb/addr_srch.c @@ -24,8 +24,7 @@ * krb5_address_search() */ - -#include <krb5/krb5.h> +#include "k5-int.h" /* * if addr is listed in addrlist, or addrlist is null, return TRUE. diff --git a/src/lib/krb5/krb/bld_pr_ext.c b/src/lib/krb5/krb/bld_pr_ext.c index 753bbb7c7d..1eb4f8bc88 100644 --- a/src/lib/krb5/krb/bld_pr_ext.c +++ b/src/lib/krb5/krb/bld_pr_ext.c @@ -24,9 +24,7 @@ * Build a principal from a list of lengths and strings */ - -#include <krb5/krb5.h> -#include <krb5/ext-proto.h> +#include "k5-int.h" #if __STDC__ || defined(STDARG_PROTOTYPES) #include <stdarg.h> diff --git a/src/lib/krb5/krb/bld_princ.c b/src/lib/krb5/krb/bld_princ.c index b82c43a037..6d1048e7ba 100644 --- a/src/lib/krb5/krb/bld_princ.c +++ b/src/lib/krb5/krb/bld_princ.c @@ -24,9 +24,8 @@ * Build a principal from a list of strings */ - /* Need <krb5/config.h> for STDARG_PROTOTYPES */ -#include <krb5/krb5.h> +#include "k5-int.h" #if __STDC__ || defined(STDARG_PROTOTYPES) #include <stdarg.h> @@ -34,8 +33,6 @@ #include <varargs.h> #endif -#include <krb5/ext-proto.h> - krb5_error_code INTERFACE_C krb5_build_principal_va(context, princ, rlen, realm, ap) krb5_context context; diff --git a/src/lib/krb5/krb/chk_trans.c b/src/lib/krb5/krb/chk_trans.c index b3264318f3..e7627ff45c 100644 --- a/src/lib/krb5/krb/chk_trans.c +++ b/src/lib/krb5/krb/chk_trans.c @@ -21,7 +21,7 @@ */ #include <stdio.h> -#include <krb5/krb5.h> +#include "k5-int.h" #define MAX_REALM_LN 500 diff --git a/src/lib/krb5/krb/compat_recv.c b/src/lib/krb5/krb/compat_recv.c index 9e986c0025..0a65e307cb 100644 --- a/src/lib/krb5/krb/compat_recv.c +++ b/src/lib/krb5/krb/compat_recv.c @@ -33,16 +33,10 @@ * to a V4 sendauth. */ - -#include <krb5/krb5.h> +#include "k5-int.h" #ifndef _MSDOS -#include <krb5/osconf.h> -#include <krb5/kdb.h> -#include <krb5/kdb_dbm.h> -#include <krb5/ext-proto.h> -#include <krb5/los-proto.h> #include <kerberosIV/krb.h> -#include <com_err.h> +#include "com_err.h" #include <errno.h> #include <stdio.h> diff --git a/src/lib/krb5/krb/conv_princ.c b/src/lib/krb5/krb/conv_princ.c index 0013080419..770df77d2c 100644 --- a/src/lib/krb5/krb/conv_princ.c +++ b/src/lib/krb5/krb/conv_princ.c @@ -30,7 +30,7 @@ * hard-coded in this file. */ -#include <krb5/krb5.h> +#include "k5-int.h" #include <string.h> #include <ctype.h> diff --git a/src/lib/krb5/krb/copy_addrs.c b/src/lib/krb5/krb/copy_addrs.c index ad21082b39..29c97cecd0 100644 --- a/src/lib/krb5/krb/copy_addrs.c +++ b/src/lib/krb5/krb/copy_addrs.c @@ -24,10 +24,7 @@ * krb5_copy_addresses() */ - -#include <krb5/krb5.h> - -#include <krb5/ext-proto.h> +#include "k5-int.h" static krb5_error_code krb5_copy_addr(context, inad, outad) diff --git a/src/lib/krb5/krb/copy_athctr.c b/src/lib/krb5/krb/copy_athctr.c index c303af5c8b..826db0e6f7 100644 --- a/src/lib/krb5/krb/copy_athctr.c +++ b/src/lib/krb5/krb/copy_athctr.c @@ -24,10 +24,7 @@ * krb5_copy_authenticator() */ - -#include <krb5/krb5.h> - -#include <krb5/ext-proto.h> +#include "k5-int.h" krb5_error_code INTERFACE krb5_copy_authenticator(context, authfrom, authto) diff --git a/src/lib/krb5/krb/copy_auth.c b/src/lib/krb5/krb/copy_auth.c index 62b0b610e0..993d084171 100644 --- a/src/lib/krb5/krb/copy_auth.c +++ b/src/lib/krb5/krb/copy_auth.c @@ -24,10 +24,7 @@ * krb5_copy_authdata() */ - -#include <krb5/krb5.h> - -#include <krb5/ext-proto.h> +#include "k5-int.h" static krb5_error_code krb5_copy_authdatum(context, inad, outad) diff --git a/src/lib/krb5/krb/copy_cksum.c b/src/lib/krb5/krb/copy_cksum.c index 0e1a25082c..c7ebb8cb7f 100644 --- a/src/lib/krb5/krb/copy_cksum.c +++ b/src/lib/krb5/krb/copy_cksum.c @@ -24,10 +24,7 @@ * krb5_copy_authenticator() */ - -#include <krb5/krb5.h> - -#include <krb5/ext-proto.h> +#include "k5-int.h" krb5_error_code INTERFACE krb5_copy_checksum(context, ckfrom, ckto) diff --git a/src/lib/krb5/krb/copy_creds.c b/src/lib/krb5/krb/copy_creds.c index 7ac47cc98b..264ca5143e 100644 --- a/src/lib/krb5/krb/copy_creds.c +++ b/src/lib/krb5/krb/copy_creds.c @@ -24,10 +24,7 @@ * krb5_copy_cred() */ - -#include <krb5/krb5.h> -#include <krb5/ext-proto.h> - +#include "k5-int.h" /* * Copy credentials, allocating fresh storage where needed. diff --git a/src/lib/krb5/krb/copy_data.c b/src/lib/krb5/krb/copy_data.c index 97010673d2..fedf2dca71 100644 --- a/src/lib/krb5/krb/copy_data.c +++ b/src/lib/krb5/krb/copy_data.c @@ -24,9 +24,7 @@ * krb5_copy_data() */ - -#include <krb5/krb5.h> -#include <krb5/ext-proto.h> +#include "k5-int.h" /* * Copy a data structure, with fresh allocation. diff --git a/src/lib/krb5/krb/copy_key.c b/src/lib/krb5/krb/copy_key.c index f714d86d86..6e367d4de5 100644 --- a/src/lib/krb5/krb/copy_key.c +++ b/src/lib/krb5/krb/copy_key.c @@ -24,9 +24,7 @@ * krb5_copy_keyblock() */ - -#include <krb5/krb5.h> -#include <krb5/ext-proto.h> +#include "k5-int.h" /* * Copy a keyblock, including alloc'ed storage. diff --git a/src/lib/krb5/krb/copy_princ.c b/src/lib/krb5/krb/copy_princ.c index 11dee84f4e..48775e20b1 100644 --- a/src/lib/krb5/krb/copy_princ.c +++ b/src/lib/krb5/krb/copy_princ.c @@ -24,10 +24,7 @@ * krb5_copy_principal() */ - -#include <krb5/krb5.h> - -#include <krb5/ext-proto.h> +#include "k5-int.h" /* * Copy a principal structure, with fresh allocation. diff --git a/src/lib/krb5/krb/copy_tick.c b/src/lib/krb5/krb/copy_tick.c index 7ee83f08a5..b1e05e83da 100644 --- a/src/lib/krb5/krb/copy_tick.c +++ b/src/lib/krb5/krb/copy_tick.c @@ -24,10 +24,7 @@ * krb5_copy_ticket() */ - -#include <krb5/krb5.h> - -#include <krb5/ext-proto.h> +#include "k5-int.h" static krb5_error_code krb5_copy_enc_tkt_part(context, partfrom, partto) diff --git a/src/lib/krb5/krb/cp_key_cnt.c b/src/lib/krb5/krb/cp_key_cnt.c index 541562bd83..b4afc2ea1c 100644 --- a/src/lib/krb5/krb/cp_key_cnt.c +++ b/src/lib/krb5/krb/cp_key_cnt.c @@ -24,9 +24,7 @@ * krb5_copy_keyblock() */ - -#include <krb5/krb5.h> -#include <krb5/ext-proto.h> +#include "k5-int.h" /* * Copy a keyblock, including alloc'ed storage. diff --git a/src/lib/krb5/krb/decode_kdc.c b/src/lib/krb5/krb/decode_kdc.c index a611ea378b..007b2ab155 100644 --- a/src/lib/krb5/krb/decode_kdc.c +++ b/src/lib/krb5/krb/decode_kdc.c @@ -24,12 +24,7 @@ * krb5_decode_kdc_rep() function. */ - - -#include <krb5/krb5.h> -#include <krb5/asn1.h> - -#include <krb5/ext-proto.h> +#include "k5-int.h" /* Takes a KDC_REP message and decrypts encrypted part using etype and diff --git a/src/lib/krb5/krb/decrypt_tk.c b/src/lib/krb5/krb/decrypt_tk.c index 9a31a0b001..330712466e 100644 --- a/src/lib/krb5/krb/decrypt_tk.c +++ b/src/lib/krb5/krb/decrypt_tk.c @@ -24,12 +24,7 @@ * krb5_decrypt_tkt_part() function. */ - - -#include <krb5/krb5.h> -#include <krb5/asn1.h> - -#include <krb5/ext-proto.h> +#include "k5-int.h" /* Decrypts dec_ticket->enc_part diff --git a/src/lib/krb5/krb/encode_kdc.c b/src/lib/krb5/krb/encode_kdc.c index 6550cb4cab..5b72dc4f10 100644 --- a/src/lib/krb5/krb/encode_kdc.c +++ b/src/lib/krb5/krb/encode_kdc.c @@ -24,10 +24,7 @@ * krb5_encode_kdc_rep() function. */ -#include <krb5/krb5.h> -#include <krb5/asn1.h> - -#include <krb5/ext-proto.h> +#include "k5-int.h" /* Takes KDC rep parts in *rep and *encpart, and formats it into *enc_rep, diff --git a/src/lib/krb5/krb/encrypt_tk.c b/src/lib/krb5/krb/encrypt_tk.c index a363cac484..65cbd744d1 100644 --- a/src/lib/krb5/krb/encrypt_tk.c +++ b/src/lib/krb5/krb/encrypt_tk.c @@ -24,12 +24,7 @@ * krb5_encrypt_tkt_part() routine. */ - - -#include <krb5/krb5.h> -#include <krb5/asn1.h> - -#include <krb5/ext-proto.h> +#include "k5-int.h" /* Takes unencrypted dec_ticket & dec_tkt_part, encrypts with diff --git a/src/lib/krb5/krb/faddr_ordr.c b/src/lib/krb5/krb/faddr_ordr.c index f0f1093811..1afb65af53 100644 --- a/src/lib/krb5/krb/faddr_ordr.c +++ b/src/lib/krb5/krb/faddr_ordr.c @@ -24,9 +24,7 @@ * krb5_fulladdr_order() */ - -#include <krb5/krb5.h> -#include <krb5/ext-proto.h> +#include "k5-int.h" #ifndef min #define min(a,b) ((a) > (b) ? (a) : (b)) diff --git a/src/lib/krb5/krb/free_rtree.c b/src/lib/krb5/krb/free_rtree.c index 7206bc3149..b3b70e4807 100644 --- a/src/lib/krb5/krb/free_rtree.c +++ b/src/lib/krb5/krb/free_rtree.c @@ -24,9 +24,7 @@ * krb5_free_realm_tree() */ - -#include <krb5/krb5.h> -#include <krb5/ext-proto.h> +#include "k5-int.h" void INTERFACE krb5_free_realm_tree(context, realms) diff --git a/src/lib/krb5/krb/gc_2tgt.c b/src/lib/krb5/krb/gc_2tgt.c index 88f493a9f7..5689f1eaf2 100644 --- a/src/lib/krb5/krb/gc_2tgt.c +++ b/src/lib/krb5/krb/gc_2tgt.c @@ -24,11 +24,7 @@ * Given two tgts, get a ticket. */ -#include <krb5/krb5.h> -#include <krb5/asn1.h> /* needed for some macros */ - -#include <krb5/los-proto.h> -#include <krb5/ext-proto.h> +#include "k5-int.h" #include "int-proto.h" krb5_error_code INTERFACE diff --git a/src/lib/krb5/krb/gc_frm_kdc.c b/src/lib/krb5/krb/gc_frm_kdc.c index 72a4578431..daf14caf49 100644 --- a/src/lib/krb5/krb/gc_frm_kdc.c +++ b/src/lib/krb5/krb/gc_frm_kdc.c @@ -27,10 +27,8 @@ * along the way. */ - #include <stdio.h> -#include <krb5/krb5.h> -#include <krb5/ext-proto.h> +#include "k5-int.h" #include "int-proto.h" /* diff --git a/src/lib/krb5/krb/gc_via_tgt.c b/src/lib/krb5/krb/gc_via_tgt.c index 11d4dfa543..de9dae52b2 100644 --- a/src/lib/krb5/krb/gc_via_tgt.c +++ b/src/lib/krb5/krb/gc_via_tgt.c @@ -24,13 +24,7 @@ * Given a tgt, and a target cred, get it. */ - -#include <krb5/krb5.h> - -#include <krb5/asn1.h> - -#include <krb5/los-proto.h> -#include <krb5/ext-proto.h> +#include "k5-int.h" #include "int-proto.h" krb5_error_code INTERFACE diff --git a/src/lib/krb5/krb/gen_seqnum.c b/src/lib/krb5/krb/gen_seqnum.c index c8d702bc58..4befc40af2 100644 --- a/src/lib/krb5/krb/gen_seqnum.c +++ b/src/lib/krb5/krb/gen_seqnum.c @@ -26,10 +26,7 @@ * then taking the output and slicing it up. */ - -#include <krb5/krb5.h> -#include <krb5/ext-proto.h> -#include <krb5/los-proto.h> +#include "k5-int.h" #ifndef MIN #define MIN(a,b) ((a) < (b) ? (a) : (b)) diff --git a/src/lib/krb5/krb/gen_subkey.c b/src/lib/krb5/krb/gen_subkey.c index 763c909a56..a326f2f43e 100644 --- a/src/lib/krb5/krb/gen_subkey.c +++ b/src/lib/krb5/krb/gen_subkey.c @@ -24,9 +24,7 @@ * Routine to automatically generate a subsession key based on an input key. */ - -#include <krb5/krb5.h> -#include <krb5/ext-proto.h> +#include "k5-int.h" krb5_error_code INTERFACE krb5_generate_subkey(context, key, subkey) diff --git a/src/lib/krb5/krb/get_creds.c b/src/lib/krb5/krb/get_creds.c index a6c08fe533..bc9360a937 100644 --- a/src/lib/krb5/krb/get_creds.c +++ b/src/lib/krb5/krb/get_creds.c @@ -40,8 +40,7 @@ returns errors from encryption routines, system errors */ -#include <krb5/krb5.h> -#include <krb5/ext-proto.h> +#include "k5-int.h" krb5_error_code INTERFACE krb5_get_credentials(context, options, ccache, in_creds, out_creds) diff --git a/src/lib/krb5/krb/get_fcreds.c b/src/lib/krb5/krb/get_fcreds.c index 3a88e77c98..08f138fb8b 100644 --- a/src/lib/krb5/krb/get_fcreds.c +++ b/src/lib/krb5/krb/get_fcreds.c @@ -35,10 +35,7 @@ #include <pwd.h> #include <netdb.h> -#include <krb5/krb5.h> -#include <krb5/asn1.h> -#include <krb5/los-proto.h> -#include <krb5/ext-proto.h> +#include "k5-int.h" #define KRB5_DEFAULT_LIFE 60*60*8 /* 8 hours */ /* helper function: convert flags to necessary KDC options */ diff --git a/src/lib/krb5/krb/get_in_tkt.c b/src/lib/krb5/krb/get_in_tkt.c index 6b4762253d..7acbb94730 100644 --- a/src/lib/krb5/krb/get_in_tkt.c +++ b/src/lib/krb5/krb/get_in_tkt.c @@ -24,11 +24,7 @@ * krb5_get_in_tkt() */ - -#include <krb5/krb5.h> -#include <krb5/asn1.h> -#include <krb5/los-proto.h> -#include <krb5/ext-proto.h> +#include "k5-int.h" /* All-purpose initial ticket routine, usually called via diff --git a/src/lib/krb5/krb/in_tkt_ktb.c b/src/lib/krb5/krb/in_tkt_ktb.c index 20df47c194..7b0858e444 100644 --- a/src/lib/krb5/krb/in_tkt_ktb.c +++ b/src/lib/krb5/krb/in_tkt_ktb.c @@ -25,8 +25,7 @@ * */ -#include <krb5/krb5.h> -#include <krb5/ext-proto.h> +#include "k5-int.h" struct keytab_keyproc_arg { krb5_keytab keytab; diff --git a/src/lib/krb5/krb/in_tkt_pwd.c b/src/lib/krb5/krb/in_tkt_pwd.c index 02ea384d9b..76fa1210df 100644 --- a/src/lib/krb5/krb/in_tkt_pwd.c +++ b/src/lib/krb5/krb/in_tkt_pwd.c @@ -24,10 +24,7 @@ * krb5_get_in_tkt_with_password() */ - -#include <krb5/krb5.h> -#include <krb5/ext-proto.h> -#include <krb5/los-proto.h> +#include "k5-int.h" extern char *krb5_default_pwd_prompt1; diff --git a/src/lib/krb5/krb/in_tkt_sky.c b/src/lib/krb5/krb/in_tkt_sky.c index 54c4a2b90b..2788950711 100644 --- a/src/lib/krb5/krb/in_tkt_sky.c +++ b/src/lib/krb5/krb/in_tkt_sky.c @@ -25,10 +25,7 @@ * */ - -#include <krb5/krb5.h> - -#include <krb5/ext-proto.h> +#include "k5-int.h" struct skey_keyproc_arg { const krb5_keyblock *key; diff --git a/src/lib/krb5/krb/init_ctx.c b/src/lib/krb5/krb/init_ctx.c index 50c6dacd64..199d8ef294 100644 --- a/src/lib/krb5/krb/init_ctx.c +++ b/src/lib/krb5/krb/init_ctx.c @@ -23,9 +23,7 @@ * krb5_init_contex() */ -#include <krb5/krb5.h> -#include <krb5/los-proto.h> -#include <krb5/ext-proto.h> +#include "k5-int.h" krb5_error_code INTERFACE krb5_init_context(context) diff --git a/src/lib/krb5/krb/kdc_rep_dc.c b/src/lib/krb5/krb/kdc_rep_dc.c index f8cdc68773..c2cdf12281 100644 --- a/src/lib/krb5/krb/kdc_rep_dc.c +++ b/src/lib/krb5/krb/kdc_rep_dc.c @@ -24,10 +24,7 @@ * krb5_kdc_rep_decrypt_proc() */ - -#include <krb5/krb5.h> -#include <krb5/asn1.h> -#include <krb5/ext-proto.h> +#include "k5-int.h" /* * Decrypt the encrypted portion of the KDC_REP message, using the key diff --git a/src/lib/krb5/krb/krbconfig.c b/src/lib/krb5/krb/krbconfig.c index c6619b9935..f0ae06d5ca 100644 --- a/src/lib/krb5/krb/krbconfig.c +++ b/src/lib/krb5/krb/krbconfig.c @@ -24,8 +24,7 @@ * Configuration variables for libkrb. */ - -#include <krb5/krb5.h> +#include "k5-int.h" krb5_deltat krb5_clockskew = 5 * 60; /* five minutes */ krb5_cksumtype krb5_kdc_req_sumtype = CKSUMTYPE_RSA_MD4; diff --git a/src/lib/krb5/krb/mk_cred.c b/src/lib/krb5/krb/mk_cred.c index 668c91f8d7..b43268056c 100644 --- a/src/lib/krb5/krb/mk_cred.c +++ b/src/lib/krb5/krb/mk_cred.c @@ -28,10 +28,7 @@ /* XXX Once we finalize the API, it should go into func-proto.h and */ /* into the API doc. */ -#include <krb5/krb5.h> -#include <krb5/ext-proto.h> -#include <krb5/los-proto.h> -#include <krb5/asn1.h> +#include "k5-int.h" /* Create asn.1 encoded KRB-CRED message from the kdc reply. */ krb5_error_code INTERFACE diff --git a/src/lib/krb5/krb/mk_error.c b/src/lib/krb5/krb/mk_error.c index 0d924aaa99..4f05e75ddb 100644 --- a/src/lib/krb5/krb/mk_error.c +++ b/src/lib/krb5/krb/mk_error.c @@ -24,11 +24,7 @@ * krb5_mk_error() routine. */ - -#include <krb5/krb5.h> -#include <krb5/asn1.h> - -#include <krb5/ext-proto.h> +#include "k5-int.h" /* formats the error structure *dec_err into an error buffer *enc_err. diff --git a/src/lib/krb5/krb/mk_priv.c b/src/lib/krb5/krb/mk_priv.c index 39832bb2c3..c09a467de3 100644 --- a/src/lib/krb5/krb/mk_priv.c +++ b/src/lib/krb5/krb/mk_priv.c @@ -24,11 +24,7 @@ * krb5_mk_priv() */ - -#include <krb5/krb5.h> -#include <krb5/asn1.h> -#include <krb5/los-proto.h> -#include <krb5/ext-proto.h> +#include "k5-int.h" /* Formats a KRB_PRIV message into outbuf. diff --git a/src/lib/krb5/krb/mk_rep.c b/src/lib/krb5/krb/mk_rep.c index d76e042a44..27543cac2e 100644 --- a/src/lib/krb5/krb/mk_rep.c +++ b/src/lib/krb5/krb/mk_rep.c @@ -24,14 +24,7 @@ * krb5_mk_rep() */ - -#include <krb5/krb5.h> -#include <krb5/asn1.h> - -#include <krb5/libos.h> -#include <krb5/los-proto.h> - -#include <krb5/ext-proto.h> +#include "k5-int.h" /* Formats a KRB_AP_REP message into outbuf. diff --git a/src/lib/krb5/krb/mk_req.c b/src/lib/krb5/krb/mk_req.c index 2bb89bc69f..91a769e931 100644 --- a/src/lib/krb5/krb/mk_req.c +++ b/src/lib/krb5/krb/mk_req.c @@ -24,10 +24,7 @@ * krb5_mk_req() routine. */ - -#include <krb5/krb5.h> - -#include <krb5/ext-proto.h> +#include "k5-int.h" /* Formats a KRB_AP_REQ message into outbuf. diff --git a/src/lib/krb5/krb/mk_req_ext.c b/src/lib/krb5/krb/mk_req_ext.c index 1f8c98eb66..38c287c19d 100644 --- a/src/lib/krb5/krb/mk_req_ext.c +++ b/src/lib/krb5/krb/mk_req_ext.c @@ -24,14 +24,7 @@ * krb5_mk_req_extended() */ - -#include <krb5/krb5.h> -#include <krb5/asn1.h> - -#include <krb5/libos.h> -#include <krb5/los-proto.h> - -#include <krb5/ext-proto.h> +#include "k5-int.h" /* Formats a KRB_AP_REQ message into outbuf, with more complete options than diff --git a/src/lib/krb5/krb/mk_safe.c b/src/lib/krb5/krb/mk_safe.c index b5b691b98e..2832dd8821 100644 --- a/src/lib/krb5/krb/mk_safe.c +++ b/src/lib/krb5/krb/mk_safe.c @@ -24,11 +24,7 @@ * krb5_mk_safe() */ - -#include <krb5/krb5.h> -#include <krb5/asn1.h> -#include <krb5/los-proto.h> -#include <krb5/ext-proto.h> +#include "k5-int.h" /* Formats a KRB_SAFE message into outbuf. diff --git a/src/lib/krb5/krb/parse.c b/src/lib/krb5/krb/parse.c index 60aea42e58..f403a31174 100644 --- a/src/lib/krb5/krb/parse.c +++ b/src/lib/krb5/krb/parse.c @@ -27,11 +27,7 @@ * characters in the principal name. */ - - -#include <krb5/krb5.h> -#include <krb5/ext-proto.h> -#include <krb5/los-proto.h> +#include "k5-int.h" /* * converts a single-string representation of the name to the @@ -190,10 +186,10 @@ krb5_parse_name(context, name, nprincipal) else krb5_princ_component(context, principal, i)->length = size; if (i + 1 != components) { - #ifndef _WINDOWS +#ifndef _WINDOWS fprintf(stderr, "Programming error in krb5_parse_name!"); - #endif +#endif exit(1); } } else { diff --git a/src/lib/krb5/krb/pr_to_salt.c b/src/lib/krb5/krb/pr_to_salt.c index 2f7beb8da7..5c7c794a1e 100644 --- a/src/lib/krb5/krb/pr_to_salt.c +++ b/src/lib/krb5/krb/pr_to_salt.c @@ -24,10 +24,7 @@ * krb5_principal2salt() */ - - -#include <krb5/krb5.h> -#include <krb5/ext-proto.h> +#include "k5-int.h" /* * Convert a krb5_principal into the default salt for that principal. diff --git a/src/lib/krb5/krb/preauth.c b/src/lib/krb5/krb/preauth.c index e4992a4ba0..f9c939b1ce 100644 --- a/src/lib/krb5/krb/preauth.c +++ b/src/lib/krb5/krb/preauth.c @@ -39,11 +39,7 @@ #include <stdio.h> #include <time.h> -#include <krb5/krb5.h> -#include <krb5/ext-proto.h> -#include <krb5/preauth.h> -#include <krb5/mit-des.h> - +#include "k5-int.h" #include <syslog.h> static krb5_preauth_ops preauth_systems[] = { diff --git a/src/lib/krb5/krb/princ_comp.c b/src/lib/krb5/krb/princ_comp.c index 7000ed8f17..12a1df20f7 100644 --- a/src/lib/krb5/krb/princ_comp.c +++ b/src/lib/krb5/krb/princ_comp.c @@ -25,9 +25,7 @@ * not. */ - -#include <krb5/krb5.h> -#include <krb5/ext-proto.h> +#include "k5-int.h" krb5_boolean INTERFACE krb5_realm_compare(context, princ1, princ2) diff --git a/src/lib/krb5/krb/rd_cred.c b/src/lib/krb5/krb/rd_cred.c index 1316be8096..d82868bb1d 100644 --- a/src/lib/krb5/krb/rd_cred.c +++ b/src/lib/krb5/krb/rd_cred.c @@ -27,10 +27,7 @@ /* XXX Once we finalize the API, it should go into func-proto.h and */ /* into the API doc. */ -#include <krb5/krb5.h> -#include <krb5/ext-proto.h> -#include <krb5/los-proto.h> -#include <krb5/asn1.h> +#include "k5-int.h" extern krb5_deltat krb5_clockskew; #define in_clock_skew(date) (labs((date)-currenttime) < krb5_clockskew) diff --git a/src/lib/krb5/krb/rd_error.c b/src/lib/krb5/krb/rd_error.c index 29a3723707..0b2d147f4f 100644 --- a/src/lib/krb5/krb/rd_error.c +++ b/src/lib/krb5/krb/rd_error.c @@ -24,12 +24,7 @@ * krb5_rd_error() routine */ - - -#include <krb5/krb5.h> -#include <krb5/asn1.h> - -#include <krb5/ext-proto.h> +#include "k5-int.h" /* * Parses an error message from enc_errbuf and returns an allocated diff --git a/src/lib/krb5/krb/rd_priv.c b/src/lib/krb5/krb/rd_priv.c index 199d46d9e0..f00440f9db 100644 --- a/src/lib/krb5/krb/rd_priv.c +++ b/src/lib/krb5/krb/rd_priv.c @@ -24,12 +24,7 @@ * krb5_rd_priv() */ - -#include <krb5/krb5.h> - -#include <krb5/asn1.h> -#include <krb5/los-proto.h> -#include <krb5/ext-proto.h> +#include "k5-int.h" extern krb5_deltat krb5_clockskew; #define in_clock_skew(date) (labs((date)-currenttime) < krb5_clockskew) diff --git a/src/lib/krb5/krb/rd_rep.c b/src/lib/krb5/krb/rd_rep.c index 779fbad949..e933b1dfc5 100644 --- a/src/lib/krb5/krb/rd_rep.c +++ b/src/lib/krb5/krb/rd_rep.c @@ -24,11 +24,7 @@ * krb5_rd_rep() */ - -#include <krb5/krb5.h> -#include <krb5/ext-proto.h> -#include <krb5/los-proto.h> -#include <krb5/asn1.h> +#include "k5-int.h" /* * Parses a KRB_AP_REP message, returning its contents. diff --git a/src/lib/krb5/krb/rd_req.c b/src/lib/krb5/krb/rd_req.c index 97e5a38398..6a6875ab18 100644 --- a/src/lib/krb5/krb/rd_req.c +++ b/src/lib/krb5/krb/rd_req.c @@ -24,11 +24,7 @@ * krb5_rd_req() */ - -#include <krb5/krb5.h> - -#include <krb5/asn1.h> -#include <krb5/ext-proto.h> +#include "k5-int.h" /* * Parses a KRB_AP_REQ message, returning its contents. diff --git a/src/lib/krb5/krb/rd_req_dec.c b/src/lib/krb5/krb/rd_req_dec.c index 19631268cc..c2ec2904f0 100644 --- a/src/lib/krb5/krb/rd_req_dec.c +++ b/src/lib/krb5/krb/rd_req_dec.c @@ -26,11 +26,7 @@ * krb5_rd_req_decoded() */ - -#include <krb5/krb5.h> -#include <krb5/ext-proto.h> -#include <krb5/los-proto.h> -#include <krb5/asn1.h> +#include "k5-int.h" /* * essentially the same as krb_rd_req, but uses a decoded AP_REQ as diff --git a/src/lib/krb5/krb/rd_req_sim.c b/src/lib/krb5/krb/rd_req_sim.c index f2db248f93..15bce82e33 100644 --- a/src/lib/krb5/krb/rd_req_sim.c +++ b/src/lib/krb5/krb/rd_req_sim.c @@ -24,10 +24,7 @@ * krb5_rd_req_simple() */ - -#include <krb5/krb5.h> -#include <krb5/asn1.h> -#include <krb5/ext-proto.h> +#include "k5-int.h" /* * Parses a KRB_AP_REQ message, returning its contents. diff --git a/src/lib/krb5/krb/rd_safe.c b/src/lib/krb5/krb/rd_safe.c index 2bdcdf4d16..68c264bc8e 100644 --- a/src/lib/krb5/krb/rd_safe.c +++ b/src/lib/krb5/krb/rd_safe.c @@ -24,11 +24,7 @@ * krb5_rd_safe() */ - -#include <krb5/krb5.h> -#include <krb5/asn1.h> -#include <krb5/los-proto.h> -#include <krb5/ext-proto.h> +#include "k5-int.h" extern krb5_deltat krb5_clockskew; #define in_clock_skew(date) (labs((date)-currenttime) < krb5_clockskew) diff --git a/src/lib/krb5/krb/recvauth.c b/src/lib/krb5/krb/recvauth.c index 2cd87c9cad..4d1c95041f 100644 --- a/src/lib/krb5/krb/recvauth.c +++ b/src/lib/krb5/krb/recvauth.c @@ -25,14 +25,9 @@ */ -#include <krb5/krb5.h> +#include "k5-int.h" #ifndef _MSDOS -#include <krb5/osconf.h> -#include <krb5/kdb.h> -#include <krb5/kdb_dbm.h> -#include <krb5/ext-proto.h> -#include <krb5/los-proto.h> -#include <com_err.h> +#include "com_err.h" #include <errno.h> #include <stdio.h> diff --git a/src/lib/krb5/krb/send_tgs.c b/src/lib/krb5/krb/send_tgs.c index 8b2d8d47a8..d20e4970b0 100644 --- a/src/lib/krb5/krb/send_tgs.c +++ b/src/lib/krb5/krb/send_tgs.c @@ -24,11 +24,8 @@ * krb5_send_tgs() */ +#include "k5-int.h" -#include <krb5/krb5.h> -#include <krb5/asn1.h> -#include <krb5/los-proto.h> -#include <krb5/ext-proto.h> /* Sends a request to the TGS and waits for a response. options is used for the options in the KRB_TGS_REQ. diff --git a/src/lib/krb5/krb/sendauth.c b/src/lib/krb5/krb/sendauth.c index 2f67f30d26..9c18ed8b5e 100644 --- a/src/lib/krb5/krb/sendauth.c +++ b/src/lib/krb5/krb/sendauth.c @@ -24,16 +24,9 @@ * convenience sendauth/recvauth functions */ - -#include <krb5/krb5.h> -#include <krb5/osconf.h> -#include <krb5/kdb.h> -#include <krb5/kdb_dbm.h> -#include <krb5/ext-proto.h> -#include <krb5/los-proto.h> -#include <com_err.h> +#include "k5-int.h" +#include "com_err.h" #include <errno.h> - #include <stdio.h> #include <string.h> #ifdef _MSDOS diff --git a/src/lib/krb5/krb/srv_rcache.c b/src/lib/krb5/krb/srv_rcache.c index 39bb229ae2..56758706ab 100644 --- a/src/lib/krb5/krb/srv_rcache.c +++ b/src/lib/krb5/krb/srv_rcache.c @@ -24,9 +24,7 @@ * Allocate & prepare a default replay cache for a server. */ - -#include <krb5/krb5.h> -#include <krb5/ext-proto.h> +#include "k5-int.h" #include <ctype.h> #include <stdio.h> diff --git a/src/lib/krb5/krb/t_walk_rtree.c b/src/lib/krb5/krb/t_walk_rtree.c index e1ced303c5..419c4137e8 100644 --- a/src/lib/krb5/krb/t_walk_rtree.c +++ b/src/lib/krb5/krb/t_walk_rtree.c @@ -3,9 +3,8 @@ */ #include <stdio.h> -#include <com_err.h> - -#include <krb5/krb5.h> +#include "com_err.h" +#include "k5-int.h" main(argc, argv) int argc; diff --git a/src/lib/krb5/krb/tgtname.c b/src/lib/krb5/krb/tgtname.c index e6cf43c889..98e17b4e0b 100644 --- a/src/lib/krb5/krb/tgtname.c +++ b/src/lib/krb5/krb/tgtname.c @@ -24,9 +24,7 @@ * krb5_tgtname() */ - -#include <krb5/krb5.h> -#include <krb5/ext-proto.h> +#include "k5-int.h" /* This is an internal-only function, used by krb5_get_cred_from_kdc() */ diff --git a/src/lib/krb5/krb/unparse.c b/src/lib/krb5/krb/unparse.c index f817450358..cf3b82dbbc 100644 --- a/src/lib/krb5/krb/unparse.c +++ b/src/lib/krb5/krb/unparse.c @@ -30,8 +30,7 @@ #include <stdio.h> -#include <krb5/krb5.h> -#include <krb5/ext-proto.h> +#include "k5-int.h" /* * converts the multi-part principal format used in the protocols to a diff --git a/src/lib/krb5/krb/walk_rtree.c b/src/lib/krb5/krb/walk_rtree.c index 38fa355250..e083738045 100644 --- a/src/lib/krb5/krb/walk_rtree.c +++ b/src/lib/krb5/krb/walk_rtree.c @@ -24,9 +24,7 @@ * krb5_walk_realm_tree() */ - -#include <krb5/krb5.h> -#include <krb5/ext-proto.h> +#include "k5-int.h" #include "int-proto.h" /* internal function, used by krb5_get_cred_from_kdc() */ |