+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.
* 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
* 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))
* krb5_address_search()
*/
-
-#include <krb5/krb5.h>
+#include "k5-int.h"
/*
* if addr is listed in addrlist, or addrlist is null, return TRUE.
* 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>
* 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>
#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;
*/
#include <stdio.h>
-#include <krb5/krb5.h>
+#include "k5-int.h"
#define MAX_REALM_LN 500
* 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>
* hard-coded in this file.
*/
-#include <krb5/krb5.h>
+#include "k5-int.h"
#include <string.h>
#include <ctype.h>
* 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)
* 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)
* 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)
* 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)
* krb5_copy_cred()
*/
-
-#include <krb5/krb5.h>
-#include <krb5/ext-proto.h>
-
+#include "k5-int.h"
/*
* Copy credentials, allocating fresh storage where needed.
* krb5_copy_data()
*/
-
-#include <krb5/krb5.h>
-#include <krb5/ext-proto.h>
+#include "k5-int.h"
/*
* Copy a data structure, with fresh allocation.
* krb5_copy_keyblock()
*/
-
-#include <krb5/krb5.h>
-#include <krb5/ext-proto.h>
+#include "k5-int.h"
/*
* Copy a keyblock, including alloc'ed storage.
* krb5_copy_principal()
*/
-
-#include <krb5/krb5.h>
-
-#include <krb5/ext-proto.h>
+#include "k5-int.h"
/*
* Copy a principal structure, with fresh allocation.
* 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)
* krb5_copy_keyblock()
*/
-
-#include <krb5/krb5.h>
-#include <krb5/ext-proto.h>
+#include "k5-int.h"
/*
* Copy a keyblock, including alloc'ed storage.
* 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
* 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
* 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,
* 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
* 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))
* 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)
* 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
* along the way.
*/
-
#include <stdio.h>
-#include <krb5/krb5.h>
-#include <krb5/ext-proto.h>
+#include "k5-int.h"
#include "int-proto.h"
/*
* 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
* 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))
* 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)
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)
#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 */
* 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
*
*/
-#include <krb5/krb5.h>
-#include <krb5/ext-proto.h>
+#include "k5-int.h"
struct keytab_keyproc_arg {
krb5_keytab keytab;
* 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;
*
*/
-
-#include <krb5/krb5.h>
-
-#include <krb5/ext-proto.h>
+#include "k5-int.h"
struct skey_keyproc_arg {
const krb5_keyblock *key;
* 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)
* 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
* 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;
/* 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
* 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.
* 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.
* 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.
* 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.
* 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
* 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.
* 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
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 {
* 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.
#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[] = {
* not.
*/
-
-#include <krb5/krb5.h>
-#include <krb5/ext-proto.h>
+#include "k5-int.h"
krb5_boolean INTERFACE
krb5_realm_compare(context, princ1, princ2)
/* 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)
* 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
* 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)
* 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.
* 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.
* 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
* 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.
* 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)
*/
-#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>
* 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.
* 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
* 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>
*/
#include <stdio.h>
-#include <com_err.h>
-
-#include <krb5/krb5.h>
+#include "com_err.h"
+#include "k5-int.h"
main(argc, argv)
int argc;
* 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() */
#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
* 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() */