Added support for building krb4 library (win16/win32)
authorRichard Basch <probe@mit.edu>
Tue, 18 Feb 1997 05:37:41 +0000 (05:37 +0000)
committerRichard Basch <probe@mit.edu>
Tue, 18 Feb 1997 05:37:41 +0000 (05:37 +0000)
krb_err.h is a generated file.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9879 dc483132-0cff-0310-8789-dd5450dbe970

src/include/kerberosIV/ChangeLog
src/include/kerberosIV/des.h
src/include/kerberosIV/krb.h
src/include/kerberosIV/krb_err.h [deleted file]

index 11a5a50f8c7638484582ff488cf034e06fa2e136..75c900502a9f57d12ba590db214f7623867859c1 100644 (file)
@@ -1,3 +1,15 @@
+Mon Feb 17 13:59:41 1997  Richard Basch  <basch@lehman.com>
+
+       * des.h: Added various function prototypes
+       * krb.h: Moved various macros from krb.h to des.h so
+               prototypes could be added to des.h
+
+Sun Feb 16 18:43:24 1997  Richard Basch  <basch@lehman.com>
+
+       * krb.h:
+               Removed INTERFACE declaration
+               Added prototypes for exported V4 functions
+
 Thu Feb  6 00:22:22 1997  Richard Basch  <basch@lehman.com>
 
        * krb.h: Make sure KRB5_EXPORTVAR is defined
index 76e632c55b5086b0541562b4e5654c93fb103531..82423aa0d91b43a999370dc974d45d1de601af32 100644 (file)
 #ifndef DES_DEFS
 #define DES_DEFS
 
+#if defined(_WIN32) && !defined(_WINDOWS)
+#define _WINDOWS
+#endif
+
+#if defined(_WINDOWS)
+#ifndef KRB4
+#define KRB4 1
+#endif
+#include <win-mac.h>
+#endif
+
+/* Windows declarations */
+#ifndef KRB5_CALLCONV
+#define KRB5_CALLCONV
+#define KRB5_CALLCONV_C
+#define KRB5_DLLIMP
+#define KRB5_EXPORTVAR
+#endif
+#ifndef FAR
+#define FAR
+#define NEAR
+#endif
+
+#ifndef __alpha
+#define KRB4_32        long
+#else
+#define KRB4_32        int
+#endif
+
+
+#ifndef PROTOTYPE
+#if (defined(__STDC__) || defined(_WINDOWS)) && !defined(KRB5_NO_PROTOTYPES)
+#define PROTOTYPE(x) x
+#else
+#define PROTOTYPE(x) ()
+#endif
+#endif
+
+
+
 typedef unsigned char des_cblock[8];   /* crypto-block size */
 /* Key schedule */
 typedef struct des_ks_struct { des_cblock _; } des_key_schedule[16];
@@ -55,4 +95,19 @@ typedef struct des_ks_struct bit_64;
 
 #define des_cblock_print(x) des_cblock_print_file(x, stdout)
 
+
+/*
+ * Function Prototypes
+ */
+
+KRB5_DLLIMP int KRB5_CALLCONV des_key_sched
+       PROTOTYPE((C_Block, Key_schedule));
+KRB5_DLLIMP int KRB5_CALLCONV des_pcbc_encrypt
+       PROTOTYPE((C_Block FAR *in, C_Block FAR *out, long length,
+                  Key_schedule, C_Block FAR *ivec, int encrypt));
+KRB5_DLLIMP unsigned long KRB5_CALLCONV des_quad_cksum
+       PROTOTYPE((C_Block FAR *seed, unsigned char FAR *in,
+                  unsigned KRB4_32 FAR *out, int out_count, long length));
+KRB5_DLLIMP int KRB5_CALLCONV des_string_to_key
+       PROTOTYPE((char FAR *, C_Block));
 #endif /* DES_DEFS */
index da97ed18157b1b870d9878cd72ec6d9c8b665f72..0ee380aa546bada6c1bfb98d1852c685cdda32d1 100644 (file)
 #ifndef        KRB_DEFS
 #define KRB_DEFS
 
-#if defined(_WIN32) && !defined(_WINDOWS)
-#define _WINDOWS
-#endif
-
-#if defined(_WINDOWS)
-#include <win-mac.h>
-#endif
+/* Need some defs from des.h    */
+#include <kerberosIV/des.h>
 
-/* Windows declarations */
-#ifndef KRB5_CALLCONV
-#define KRB5_CALLCONV
-#define KRB5_CALLCONV_C
-#define KRB5_DLLIMP
-#define KRB5_EXPORTVAR
-#endif
-#ifndef FAR
-#define FAR
-#define NEAR
-#endif
+#ifdef _WINDOWS
+#include <winsock.h>
+#include <time.h>
+#endif /* _WINDOWS */
 
-#ifndef INTERFACE
-#define INTERFACE KRB5_CALLCONV
-#endif
+#include <port-sockets.h>
 
 
-/* Need some defs from des.h    */
-#include <kerberosIV/des.h>
-
 /* Text describing error codes */
 #define                MAX_KRB_ERRORS  256
 extern const char *const krb_err_txt[MAX_KRB_ERRORS];
@@ -70,12 +53,6 @@ extern const char *const krb_err_txt[MAX_KRB_ERRORS];
 #define                KSUCCESS        0
 #define                KFAILURE        255
 
-#ifndef __alpha
-#define KRB4_32        long
-#else
-#define KRB4_32        int
-#endif
-
 #ifdef NO_UIDGID_T
 typedef unsigned short uid_t;
 typedef unsigned short gid_t;
@@ -95,14 +72,6 @@ typedef unsigned short gid_t;
  * the realm. 
  */
 
-#ifdef notdef
-this is server - only, does not belong here;
-#define        KRBLOG          "/kerberos/kerberos.log"
-are these used anyplace '?';
-#define                VX_KRB_HSTFILE  "/etc/krbhst"
-#define                PC_KRB_HSTFILE  "\\kerberos\\krbhst"
-#endif
-
 #define                KRB_CONF        "/etc/krb.conf"
 #define                KRB_RLM_TRANS   "/etc/krb.realms"
 #define                KRB_MASTER      "kerberos"
@@ -124,8 +93,7 @@ are these used anyplace '?';
 #define                MAX_HSTNM       100
 
 #ifndef DEFAULT_TKT_LIFE               /* allow compile-time override */
-#define                DEFAULT_TKT_LIFE        96 /* default lifetime for krb_mk_req
-                                             & co., 8 hrs */
+#define DEFAULT_TKT_LIFE       255     /* default lifetime for krb_mk_req */
 #endif
 
 /* Definition of text structure used to pass text around */
@@ -200,19 +168,19 @@ typedef struct credentials CREDENTIALS;
 /* Structure definition for rd_private_msg and rd_safe_msg */
 
 struct msg_dat {
-    unsigned char *app_data;   /* pointer to appl data */
+    unsigned char FAR *app_data;       /* pointer to appl data */
     unsigned KRB4_32 app_length;       /* length of appl data */
-    unsigned KRB4_32 hash;     /* hash to lookup replay */
-    int     swap;              /* swap bytes? */
-    KRB4_32  time_sec;         /* msg timestamp seconds */
-    unsigned char time_5ms;    /* msg timestamp 5ms units */
+    unsigned KRB4_32 hash;             /* hash to lookup replay */
+    int     swap;                      /* swap bytes? */
+    KRB4_32  time_sec;                 /* msg timestamp seconds */
+    unsigned char time_5ms;            /* msg timestamp 5ms units */
 };
 
 typedef struct msg_dat MSG_DAT;
 
 
 /* Location of ticket file for save_cred and get_cred */
-#ifdef PC
+#ifdef _WINDOWS
 #define TKT_FILE        "\\kerberos\\ticket.ses"
 #else
 #define TKT_FILE        tkt_string()
@@ -376,10 +344,6 @@ typedef struct msg_dat MSG_DAT;
 #define K_FLAG_6                /* reserved */
 #define K_FLAG_7                /* reserved, bit 7 --> msb */
 
-#ifndef PC
-char *tkt_string();
-#endif /* PC */
-
 #ifdef OLDNAMES
 #define krb_mk_req     mk_ap_req
 #define krb_rd_req     rd_ap_req
@@ -406,11 +370,7 @@ char *tkt_string();
 
 #define        KOPT_DONT_MK_REQ 0x00000001 /* don't call krb_mk_req */
 #define        KOPT_DO_MUTUAL   0x00000002 /* do mutual auth */
-
-#define        KOPT_DONT_CANON  0x00000004 /*
-                                    * don't canonicalize inst as
-                                    * a hostname
-                                    */
+#define        KOPT_DONT_CANON  0x00000004 /* don't canonicalize inst as a host */
 
 #define        KRB_SENDAUTH_VLEN 8         /* length for version strings */
 
@@ -418,6 +378,7 @@ char *tkt_string();
 #define        KOPT_DO_OLDSTYLE 0x00000008 /* use the old-style protocol */
 #endif /* ATHENA_COMPAT */
 
+#ifdef unix
 /* until we do V4 compat under DOS, just turn this off */
 #define        _fmemcpy        memcpy
 #define        _fstrncpy       strncpy
@@ -426,58 +387,24 @@ char *tkt_string();
 #define        TIME_GMT_UNIXSEC        unix_time_gmt_unixsec((unsigned KRB4_32 *)0)
 #define        TIME_GMT_UNIXSEC_US(us) unix_time_gmt_unixsec((us))
 #define        CONVERT_TIME_EPOCH      ((long)0)       /* Unix epoch is Krb epoch */
+#endif
 
-#if (defined(__STDC__) || defined(_WINDOWS)) && !defined(KRB5_NO_PROTOTYPES)
-#define PROTOTYPE(x) x
-#else
-#define PROTOTYPE(x) ()
-#endif /* STDC or PROTOTYPES */
+#ifdef _WINDOWS
+#define        TIME_GMT_UNIXSEC        win_time_gmt_unixsec((unsigned KRB4_32 *)0)
+#define        TIME_GMT_UNIXSEC_US(us) win_time_gmt_unixsec((us))
+#define        CONVERT_TIME_EPOCH      win_time_get_epoch()
+#endif
 
 /* Define u_char, u_short, u_int, and u_long. */
 #include <sys/types.h>
 
-/* If this source file requires it, define struct sockaddr_in
-   (and possibly other things related to network I/O).  FIXME.  */
-#if defined(DEFINE_SOCKADDR)
-
 #if !defined(_WINDOWS)
-#include <netinet/in.h>                /* For struct sockaddr_in and in_addr */
-#include <arpa/inet.h>         /* For inet_ntoa */
-#include <netdb.h>             /* For struct hostent, gethostbyname, etc */
-#include <sys/param.h>         /* For MAXHOSTNAMELEN */
-#include <sys/socket.h>                /* For SOCK_*, AF_*, etc */
-#include <sys/time.h>          /* For struct timeval */
 #ifdef NEED_TIME_H
 #include <time.h>              /* For localtime, etc */
+#include <sys/time.h>
 #endif
 #endif /* !_WINDOWS */
 
-#ifndef INVALID_SOCKET
-#define INVALID_SOCKET (-1)
-#endif
-
-#endif /* DEFINE_SOCKADDR */
-
-
-/*
- * Compatability with WinSock calls on MS-Windows...
- */
-#define        SOCKET          unsigned int
-#define        closesocket     close
-#define        ioctlsocket     ioctl
-#define        SOCKET_ERROR    (-1)
-
-/* Some of our own infrastructure where the WinSock stuff was too hairy
-   to dump into a clean Unix program...  */
-
-#define        SOCKET_INITIALIZE()     (0)     /* No error (or anything else) */
-#define        SOCKET_CLEANUP()        /* nothing */
-#define        SOCKET_ERRNO            errno
-#define        SOCKET_SET_ERRNO(x)     (errno = (x))
-#define SOCKET_NFDS(f)         ((f)+1) /* select() arg for a single fd */
-#define SOCKET_READ            read
-#define SOCKET_WRITE           write
-#define SOCKET_EINTR           EINTR
 
 /* ask to disable IP address checking in the library */
 extern int krb_ignore_ip_address;
@@ -492,22 +419,219 @@ extern int krb_debug;
 #define        DEB(x)  /* nothing */
 #endif
 
-
 /*
  * Some Unixes don't declare errno in <errno.h>...
  * Move this out to individual c-*.h files if it becomes troublesome.
  */
-#ifndef errno
+#if !defined(errno) && !defined(_WINDOWS)
 extern int errno;
 #endif
 
 /* Define a couple of function types including parameters.  These
    are needed on MS-Windows to convert arguments of the function pointers
    to the proper types during calls.  */
-typedef int (*key_proc_type) PROTOTYPE ((char *, char *, char *,
-                                            char *, C_Block));
+
+typedef int (KRB5_CALLCONV *key_proc_type)
+       PROTOTYPE ((char FAR *, char FAR *, char FAR *,
+                   char FAR *, C_Block));
 #define KEY_PROC_TYPE_DEFINED
-typedef int (*decrypt_tkt_type) PROTOTYPE ((char *, char *, char *, char *,
-                                    key_proc_type, KTEXT *));
+
+typedef int (KRB5_CALLCONV *decrypt_tkt_type)
+       PROTOTYPE ((char FAR *, char FAR *, char FAR *,
+                   char FAR *, key_proc_type, KTEXT FAR *));
 #define DECRYPT_TKT_TYPE_DEFINED
+
+/*
+ * Function Prototypes for Kerberos V4.
+ */
+
+/* dest_tkt.c */
+KRB5_DLLIMP int KRB5_CALLCONV dest_tkt
+       PROTOTYPE((void));
+/* err_txt.c */
+KRB5_DLLIMP const char FAR * KRB5_CALLCONV krb_get_err_text
+       PROTOTYPE((int errno));
+/* g_ad_tkt.c */
+int get_ad_tkt
+       PROTOTYPE((char *service, char *sinst, char *realm, int lifetime));
+/* g_admhst.c */
+KRB5_DLLIMP int KRB5_CALLCONV krb_get_admhst
+       PROTOTYPE((char FAR *host, char FAR *realm, int index));
+/* g_cred.c */
+KRB5_DLLIMP int KRB5_CALLCONV krb_get_cred
+       PROTOTYPE((char FAR *service, char FAR *instance, char FAR *realm,
+                  CREDENTIALS FAR *c));
+/* g_in_tkt.c */
+int krb_get_in_tkt
+       PROTOTYPE((char *user, char *instance, char *realm,
+                  char *service, char *sinst, int life,
+                  key_proc_type, decrypt_tkt_type, char *arg));
+int krb_get_in_tkt_preauth
+       PROTOTYPE((char *user, char *instance, char *realm,
+                  char *service, char *sinst, int life,
+                  key_proc_type, decrypt_tkt_type, char *arg,
+                  char *preauth_p, int preauth_len));
+/* g_krbhst.c */
+KRB5_DLLIMP int KRB5_CALLCONV krb_get_krbhst
+       PROTOTYPE((char FAR *host, char FAR *realm, int index));
+/* g_krbrlm.c */
+KRB5_DLLIMP int KRB5_CALLCONV krb_get_lrealm
+       PROTOTYPE((char FAR *realm, int index));
+/* g_phost.c */
+KRB5_DLLIMP char FAR * KRB5_CALLCONV krb_get_phost
+       PROTOTYPE((char FAR * alias));
+/* g_pw_in_tkt.c */
+KRB5_DLLIMP int KRB5_CALLCONV krb_get_pw_in_tkt
+       PROTOTYPE((char FAR *user, char FAR *instance, char FAR *realm,
+                  char FAR *service, char FAR *sinstance,
+                  int life, char FAR *password));
+KRB5_DLLIMP int KRB5_CALLCONV krb_get_pw_in_tkt_preauth
+       PROTOTYPE((char FAR *user, char FAR *instance, char FAR *realm,
+                  char FAR *service, char FAR *sinstance,
+                  int life, char FAR *password));
+/* g_svc_in_tkt.c */
+KRB5_DLLIMP int KRB5_CALLCONV krb_get_svc_in_tkt
+       PROTOTYPE((char FAR *user, char FAR *instance, char FAR *realm,
+                  char FAR *service, char FAR *sinstance,
+                  int life, char FAR *srvtab));
+/* g_tf_fname.c */
+KRB5_DLLIMP int KRB5_CALLCONV krb_get_tf_fullname
+       PROTOTYPE((char *ticket_file, char *name, char *inst, char *realm));
+/* g_tf_realm.c */
+KRB5_DLLIMP int KRB5_CALLCONV krb_get_tf_realm
+       PROTOTYPE((char *ticket_file, char *realm));
+/* g_tkt_svc.c */
+KRB5_DLLIMP int KRB5_CALLCONV krb_get_ticket_for_service
+       PROTOTYPE((char FAR *serviceName,
+                  char FAR *buf, unsigned KRB4_32 FAR *buflen,
+                  int checksum, des_cblock, Key_schedule,
+                  char FAR *version, int includeVersion));
+/* getst.c */
+int getst
+       PROTOTYPE((int fd, char *s, int n));
+/* in_tkt.c */
+KRB5_DLLIMP int KRB5_CALLCONV in_tkt
+       PROTOTYPE((char *name, char *inst));
+/* kname_parse.c */
+KRB5_DLLIMP int KRB5_CALLCONV kname_parse
+       PROTOTYPE((char FAR *name, char FAR *inst, char FAR *realm,
+                  char FAR *fullname));
+/* kuserok.c */
+KRB5_DLLIMP int KRB5_CALLCONV kuserok
+       PROTOTYPE((AUTH_DAT FAR *kdata, char FAR *luser));
+/* mk_auth.c */
+KRB5_DLLIMP int KRB5_CALLCONV krb_check_auth
+       PROTOTYPE((KTEXT, unsigned KRB4_32 cksum, MSG_DAT FAR *,
+                  C_Block, Key_schedule,
+                  struct sockaddr_in FAR * local_addr,
+                  struct sockaddr_in FAR * foreign_addr));
+KRB5_DLLIMP int KRB5_CALLCONV krb_mk_auth
+       PROTOTYPE((long options, KTEXT ticket,
+                  char FAR *service, char FAR *inst, char FAR *realm,
+                  unsigned KRB4_32 checksum, char FAR *version, KTEXT buf));
+/* mk_err.c */
+KRB5_DLLIMP long KRB5_CALLCONV krb_mk_err
+       PROTOTYPE((u_char FAR *out, KRB4_32 code, char FAR *text));
+/* mk_preauth.c */
+int krb_mk_preauth
+       PROTOTYPE((char **preauth_p, int *preauth_len, key_proc_type,
+                  char *name, char *inst, char *realm, char *password,
+                  C_Block));
+void krb_free_preauth
+       PROTOTYPE((char * preauth_p, int len));
+/* mk_priv.c */
+KRB5_DLLIMP long KRB5_CALLCONV krb_mk_priv
+       PROTOTYPE((u_char FAR *in, u_char FAR *out,
+                  unsigned KRB4_32 length,
+                  Key_schedule, C_Block,
+                  struct sockaddr_in FAR * sender,
+                  struct sockaddr_in FAR * receiver));
+/* mk_req.c */
+KRB5_DLLIMP int KRB5_CALLCONV krb_mk_req
+       PROTOTYPE((KTEXT authent,
+                  char FAR *service, char FAR *instance, char FAR *realm,
+                  KRB4_32 checksum));
+/* mk_safe.c */
+KRB5_DLLIMP long KRB5_CALLCONV krb_mk_safe
+       PROTOTYPE((u_char FAR *in, u_char FAR *out, unsigned KRB4_32 length,
+                  C_Block,
+                  struct sockaddr_in FAR *sender,
+                  struct sockaddr_in FAR *receiver));
+/* netread.c */
+int krb_net_read
+       PROTOTYPE((int fd, char *buf, int len));
+/* netwrite.c */
+int krb_net_write
+       PROTOTYPE((int fd, char *buf, int len));
+/* pkt_clen.c */
+int pkt_clen
+       PROTOTYPE((KTEXT));
+/* put_svc_key.c */
+KRB5_DLLIMP int KRB5_CALLCONV put_svc_key
+       PROTOTYPE((char FAR *sfile,
+                  char FAR *name, char FAR *inst, char FAR *realm,
+                  int newvno, char FAR *key));
+/* rd_err.c */
+KRB5_DLLIMP int KRB5_CALLCONV krb_rd_err
+       PROTOTYPE((u_char FAR *in, u_long in_length,
+                  long FAR *code, MSG_DAT FAR *m_data));
+/* rd_priv.c */
+KRB5_DLLIMP long KRB5_CALLCONV krb_rd_priv
+       PROTOTYPE((u_char FAR *in,unsigned KRB4_32 in_length,
+                  Key_schedule, C_Block,
+                  struct sockaddr_in FAR *sender,
+                  struct sockaddr_in FAR *receiver,
+                  MSG_DAT FAR *m_data));
+/* rd_req.c */
+KRB5_DLLIMP int KRB5_CALLCONV krb_rd_req
+       PROTOTYPE((KTEXT, char FAR *service, char FAR *inst,
+                  unsigned KRB4_32 from_addr, AUTH_DAT FAR *,
+                  char FAR *srvtab));
+/* rd_safe.c */
+KRB5_DLLIMP long KRB5_CALLCONV krb_rd_safe
+       PROTOTYPE((u_char FAR *in, unsigned KRB4_32 in_length, C_Block,
+                  struct sockaddr_in FAR *sender,
+                  struct sockaddr_in FAR *receiver,
+                  MSG_DAT FAR *m_data));
+/* rd_svc_key.c */
+KRB5_DLLIMP int KRB5_CALLCONV read_service_key
+       PROTOTYPE((char FAR *service, char FAR *instance, char FAR *realm,
+                  int kvno, char FAR *file, char FAR *key));
+KRB5_DLLIMP int KRB5_CALLCONV get_service_key
+       PROTOTYPE((char FAR *service, char FAR *instance, char FAR *realm,
+                  int FAR *kvno, char FAR *file, char FAR *key));
+/* realmofhost.c */
+KRB5_DLLIMP char FAR * KRB5_CALLCONV krb_realmofhost
+       PROTOTYPE((char FAR *host));
+/* recvauth.c */
+KRB5_DLLIMP int KRB5_CALLCONV krb_recvauth
+       PROTOTYPE((long options, int fd, KTEXT ticket,
+                  char FAR *service, char FAR *instance,
+                  struct sockaddr_in FAR *foreign_addr,
+                  struct sockaddr_in FAR *local_addr,
+                  AUTH_DAT FAR *kdata, char FAR *srvtab,
+                  Key_schedule schedule, char FAR *version));
+/* save_creds.c */
+KRB5_DLLIMP int KRB5_CALLCONV krb_save_credentials
+       PROTOTYPE((char FAR *service, char FAR *instance, char FAR *realm,
+                  C_Block session, int lifetime, int kvno,
+                  KTEXT ticket, long issue_date));
+/* send_to_kdc.c */
+int send_to_kdc
+       PROTOTYPE((KTEXT pkt, KTEXT rpkt, char *realm));
+/* tkt_string.c */
+char * tkt_string
+       PROTOTYPE((void));
+void krb_set_tkt_string
+       PROTOTYPE((char *));
+
+#ifdef _WINDOWS
+HINSTANCE get_lib_instance(void);
+unsigned int krb_get_notification_message(void);
+KRB5_DLLIMP char FAR * KRB5_CALLCONV krb_get_default_user(void);
+KRB5_DLLIMP int KRB5_CALLCONV krb_set_default_user(char *);
+KRB4_32 win_time_gmt_unixsec(unsigned KRB4_32 *);
+long win_time_get_epoch(void);
+#endif
+
 #endif /* KRB_DEFS */
diff --git a/src/include/kerberosIV/krb_err.h b/src/include/kerberosIV/krb_err.h
deleted file mode 100644 (file)
index be12746..0000000
+++ /dev/null
@@ -1,92 +0,0 @@
-/*
- * krb_err.h:
- * This file is automatically generated; please do not edit it.
- */
-#define KRBET_KSUCCESS                           (39525376L)
-#define KRBET_KDC_NAME_EXP                       (39525377L)
-#define KRBET_KDC_SERVICE_EXP                    (39525378L)
-#define KRBET_KDC_AUTH_EXP                       (39525379L)
-#define KRBET_KDC_PKT_VER                        (39525380L)
-#define KRBET_KDC_P_MKEY_VER                     (39525381L)
-#define KRBET_KDC_S_MKEY_VER                     (39525382L)
-#define KRBET_KDC_BYTE_ORDER                     (39525383L)
-#define KRBET_KDC_PR_UNKNOWN                     (39525384L)
-#define KRBET_KDC_PR_N_UNIQUE                    (39525385L)
-#define KRBET_KDC_NULL_KEY                       (39525386L)
-#define KRBET_KRB_RES11                          (39525387L)
-#define KRBET_KRB_RES12                          (39525388L)
-#define KRBET_KRB_RES13                          (39525389L)
-#define KRBET_KRB_RES14                          (39525390L)
-#define KRBET_KRB_RES15                          (39525391L)
-#define KRBET_KRB_RES16                          (39525392L)
-#define KRBET_KRB_RES17                          (39525393L)
-#define KRBET_KRB_RES18                          (39525394L)
-#define KRBET_KRB_RES19                          (39525395L)
-#define KRBET_KDC_GEN_ERR                        (39525396L)
-#define KRBET_GC_TKFIL                           (39525397L)
-#define KRBET_GC_NOTKT                           (39525398L)
-#define KRBET_KRB_RES23                          (39525399L)
-#define KRBET_KRB_RES24                          (39525400L)
-#define KRBET_KRB_RES25                          (39525401L)
-#define KRBET_MK_AP_TGTEXP                       (39525402L)
-#define KRBET_KRB_RES27                          (39525403L)
-#define KRBET_KRB_RES28                          (39525404L)
-#define KRBET_KRB_RES29                          (39525405L)
-#define KRBET_KRB_RES30                          (39525406L)
-#define KRBET_RD_AP_UNDEC                        (39525407L)
-#define KRBET_RD_AP_EXP                          (39525408L)
-#define KRBET_RD_AP_NYV                          (39525409L)
-#define KRBET_RD_AP_REPEAT                       (39525410L)
-#define KRBET_RD_AP_NOT_US                       (39525411L)
-#define KRBET_RD_AP_INCON                        (39525412L)
-#define KRBET_RD_AP_TIME                         (39525413L)
-#define KRBET_RD_AP_BADD                         (39525414L)
-#define KRBET_RD_AP_VERSION                      (39525415L)
-#define KRBET_RD_AP_MSG_TYPE                     (39525416L)
-#define KRBET_RD_AP_MODIFIED                     (39525417L)
-#define KRBET_RD_AP_ORDER                        (39525418L)
-#define KRBET_RD_AP_UNAUTHOR                     (39525419L)
-#define KRBET_KRB_RES44                          (39525420L)
-#define KRBET_KRB_RES45                          (39525421L)
-#define KRBET_KRB_RES46                          (39525422L)
-#define KRBET_KRB_RES47                          (39525423L)
-#define KRBET_KRB_RES48                          (39525424L)
-#define KRBET_KRB_RES49                          (39525425L)
-#define KRBET_KRB_RES50                          (39525426L)
-#define KRBET_GT_PW_NULL                         (39525427L)
-#define KRBET_GT_PW_BADPW                        (39525428L)
-#define KRBET_GT_PW_PROT                         (39525429L)
-#define KRBET_GT_PW_KDCERR                       (39525430L)
-#define KRBET_GT_PW_NULLTKT                      (39525431L)
-#define KRBET_SKDC_RETRY                         (39525432L)
-#define KRBET_SKDC_CANT                          (39525433L)
-#define KRBET_KRB_RES58                          (39525434L)
-#define KRBET_KRB_RES59                          (39525435L)
-#define KRBET_KRB_RES60                          (39525436L)
-#define KRBET_INTK_W_NOTALL                      (39525437L)
-#define KRBET_INTK_BADPW                         (39525438L)
-#define KRBET_INTK_PROT                          (39525439L)
-#define KRBET_KRB_RES64                          (39525440L)
-#define KRBET_KRB_RES65                          (39525441L)
-#define KRBET_KRB_RES66                          (39525442L)
-#define KRBET_KRB_RES67                          (39525443L)
-#define KRBET_KRB_RES68                          (39525444L)
-#define KRBET_KRB_RES69                          (39525445L)
-#define KRBET_INTK_ERR                           (39525446L)
-#define KRBET_AD_NOTGT                           (39525447L)
-#define KRBET_KRB_RES72                          (39525448L)
-#define KRBET_KRB_RES73                          (39525449L)
-#define KRBET_KRB_RES74                          (39525450L)
-#define KRBET_KRB_RES75                          (39525451L)
-#define KRBET_NO_TKT_FIL                         (39525452L)
-#define KRBET_TKT_FIL_ACC                        (39525453L)
-#define KRBET_TKT_FIL_LCK                        (39525454L)
-#define KRBET_TKT_FIL_FMT                        (39525455L)
-#define KRBET_TKT_FIL_INI                        (39525456L)
-#define KRBET_KNAME_FMT                          (39525457L)
-extern void initialize_krb_error_table ();
-#define ERROR_TABLE_BASE_krb (39525376L)
-
-/* for compatibility with older versions... */
-#define init_krb_err_tbl initialize_krb_error_table
-#define krb_err_base ERROR_TABLE_BASE_krb