* Removed all narrow types and references to wide.h and narrow.h
authorChris Provenzano <proven@mit.edu>
Wed, 25 Jan 1995 22:24:06 +0000 (22:24 +0000)
committerChris Provenzano <proven@mit.edu>
Wed, 25 Jan 1995 22:24:06 +0000 (22:24 +0000)
* base-defs.h Typedef krb5_boolean, krb5_msgtype, krb5_kvno,
         krb5_addrtype, krb5_keytyp, krb5_enctype, krb5_cksumtype,
                and krb5_authdatatype as int.

        * kdb.h Made keytype in krb5_encrypted_keyblock explicitly short
             for backwards compatibility.

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

src/include/krb5/ChangeLog
src/include/krb5/Makefile.in
src/include/krb5/base-defs.h
src/include/krb5/encryption.h
src/include/krb5/func-proto.h
src/include/krb5/kdb.h
src/include/krb5/keytab.h
src/include/krb5/los-proto.h

index fd52961bc3b2cd76e2954c7cd3dd8dce45f23fe6..873b460757913d0a7a12be18ecb6905b5fc1dfb6 100644 (file)
@@ -1,3 +1,12 @@
+Wed Jan 25 17:07:17 1995  Chris Provenzano  (proven@mit.edu)
+
+       * Removed all narrow types and references to wide.h and narrow.h
+       * base-defs.h Typedef krb5_boolean, krb5_msgtype, krb5_kvno,
+               krb5_addrtype, krb5_keytyp, krb5_enctype, krb5_cksumtype,
+               and krb5_authdatatype as int.
+       * kdb.h Made keytype in krb5_encrypted_keyblock explicitly short
+               for backwards compatibility. 
+
 Sun Jan 22 18:17:06 1995  John Gilmore  (gnu@cygnus.com)
 
        * preauth.h, rsa-md5.h:  Protect against multiple inclusion.
index 3ef18723445dd2e977ea5e4d816912975b13768c..548e1b9df70eb5d5baa17e36460836ad275083ff 100644 (file)
@@ -5,8 +5,7 @@ KRB5_HEADERS = asn1.h base-defs.h ccache.h crc-32.h encryption.h \
                error_def.h errors.h ext-proto.h fieldbits.h \
                free.h func-proto.h hostaddr.h kdb.h kdb_dbm.h \
                keytab.h krb5.h libos.h los-proto.h macros.h mit-des.h \
-               narrow.h proto.h rcache.h rsa-md4.h safepriv.h \
-               sysincl.h widen.h wordsize.h
+               proto.h rcache.h rsa-md4.h safepriv.h sysincl.h wordsize.h
 # these are installed here for the build from lib/krb5/error_tables but 
 # also need to be in the installed tree
 ET_HEADERS = adm_err.h asn1_err.h isode_err.h kdb5_err.h krb5_err.h
index 12bd7630942a91658ba4cb18532c57e13075a129..2f7851df651a98e267169b18844554ff3131aee0 100644 (file)
@@ -24,7 +24,6 @@
  * Basic definitions for Kerberos V5 library
  */
 
-
 #ifndef KRB5_BASE_DEFS__
 #define KRB5_BASE_DEFS__
 
 #define        TRUE    1
 #endif
 
-typedef krb5_octet     krb5_boolean;
-typedef        krb5_octet      krb5_msgtype;
-typedef        krb5_octet      krb5_kvno;
+typedef        int             krb5_boolean;
+typedef        int             krb5_msgtype;   
+typedef        int             krb5_kvno;      
 
-typedef        krb5_ui_2       krb5_addrtype;
-typedef krb5_ui_2      krb5_keytype;
-typedef krb5_ui_2      krb5_enctype;
-typedef krb5_ui_2      krb5_cksumtype;
-typedef krb5_ui_2      krb5_authdatatype;
+typedef        int             krb5_addrtype;
+typedef int            krb5_keytype;
+typedef int            krb5_enctype;
+typedef int            krb5_cksumtype;
+typedef int            krb5_authdatatype;
 
 typedef krb5_int32     krb5_preauthtype; /* This may change, later on */
 typedef        krb5_int32      krb5_flags;
index 0e538cc1400fb282fd0305662b78b70c905478f2..fc8b1906ac6010c729f9ea9eec8043ac137c96ff 100644 (file)
@@ -58,8 +58,6 @@ typedef struct _krb5_enc_data {
     krb5_data ciphertext;
 } krb5_enc_data;
 
-#include <krb5/widen.h>
-
 /* could be used in a table to find an etype and initialize a block */
 typedef struct _krb5_cryptosystem_entry {
     krb5_magic magic;
@@ -98,8 +96,6 @@ typedef struct _krb5_cryptosystem_entry {
                                            table index) */
 } krb5_cryptosystem_entry;
 
-#include <krb5/narrow.h>
-
 typedef struct _krb5_cs_table_entry {
     krb5_magic magic;
     krb5_cryptosystem_entry *system;
index b4b6245e7964a7c810eac8f926fa7661db684186..bf798c40da33527f982e3b6f0e9f24d7c75b140c 100644 (file)
@@ -391,7 +391,6 @@ void krb5_free_ap_rep_enc_part
 void krb5_free_tkt_authent
        PROTOTYPE((krb5_context,
                   krb5_tkt_authent *));
-#include <krb5/widen.h>
 
 /* Only put things which don't have pointers to the narrow types in this
    section */
@@ -562,25 +561,13 @@ krb5_error_code krb5_recvauth PROTOTYPE((krb5_context,
                   krb5_ticket **,
                   krb5_authenticator **));
 
-
-#ifdef NARROW_PROTOTYPES
-krb5_error_code krb5_walk_realm_tree
-       PROTOTYPE((krb5_context,
-                  const krb5_data *,
-              const krb5_data *,
-              krb5_principal **,
-              char));
-#else
 krb5_error_code krb5_walk_realm_tree
        PROTOTYPE((krb5_context,
                   const krb5_data *,
               const krb5_data *,
               krb5_principal **,
               int));
-#endif
 
 #define KRB5_REALM_BRANCH_CHAR '.'
 
-#include <krb5/narrow.h>
-
 #endif /* KRB5_FUNC_PROTO__ */
index 2f954fd2988713fbba4df32a417b958a344ca042..a4c9a09c495361609ac372cdd8b6ba437e79cf0f 100644 (file)
@@ -34,7 +34,7 @@
 
 typedef struct _krb5_encrypted_keyblock {
     krb5_magic magic;
-    krb5_keytype keytype;
+    short keytype;                             /* XXX this is SO ugly --- proven */
     int length;
     krb5_octet *contents;
 } krb5_encrypted_keyblock;
@@ -188,15 +188,6 @@ krb5_error_code krb5_db_unlock
 
 /* need to play games here, since we take a pointer and the real thing,
    and it might be narrow. */
-#ifdef NARROW_PROTOTYPES
-krb5_error_code krb5_db_set_nonblocking
-       PROTOTYPE((krb5_context,
-                  krb5_boolean,
-                  krb5_boolean * ));
-krb5_boolean krb5_db_set_lockmode
-       PROTOTYPE((krb5_context,
-                  krb5_boolean ));
-#else
 krb5_error_code krb5_db_set_nonblocking
        PROTOTYPE((krb5_context,
                   int, /* krb5_boolean */
@@ -204,11 +195,6 @@ krb5_error_code krb5_db_set_nonblocking
 krb5_boolean krb5_db_set_lockmode
        PROTOTYPE((krb5_context,
                   int /* krb5_boolean */ ));
-#endif /* NARROW_PROTOTYPES */
-#include <krb5/widen.h>
-
-/* Only put things which don't have pointers to the narrow types in this
-   section */
 
 krb5_error_code        krb5_db_fetch_mkey
        PROTOTYPE((krb5_context,
@@ -218,8 +204,6 @@ krb5_error_code     krb5_db_fetch_mkey
                   krb5_boolean, 
                   krb5_data *, 
                   krb5_keyblock * ));
-#include <krb5/narrow.h>
-
 
 #define KRB5_KDB_DEF_FLAGS     0
 
index f9e6ce98f5f92704555a3c0514c531b9956e6c98..e8fb58b418467f4d1c48636f89c9fffdd3f6b151 100644 (file)
@@ -50,9 +50,6 @@ typedef struct _krb5_kt {
 } *krb5_keytab;
 
 
-/* widen prototypes, if needed */
-#include <krb5/widen.h>
-
 typedef struct _krb5_kt_ops {
     krb5_magic magic;
     char *prefix;
@@ -99,9 +96,6 @@ typedef struct _krb5_kt_ops {
                  krb5_keytab_entry *));
 } krb5_kt_ops;
 
-/* and back to narrow */
-#include <krb5/narrow.h>
-
 #define krb5_kt_get_name(context, keytab, name, namelen) (*(keytab)->ops->get_name)(context, keytab,name,namelen)
 #define krb5_kt_close(context, keytab) (*(keytab)->ops->close)(context, keytab)
 #define krb5_kt_get_entry(context, keytab, principal, vno, entry) (*(keytab)->ops->get)(context, keytab, principal, vno, entry)
index ed2d4e4310ee36d4bc4c6077c2893b1c8ffa4633..3dc63e260d39ea1c8c0cacd9095d7adac79a4f31 100644 (file)
@@ -134,13 +134,11 @@ krb5_error_code krb5_write_message
                   krb5_pointer, 
                   krb5_data *));
 
-#include <krb5/widen.h>
 krb5_error_code krb5_sname_to_principal
     PROTOTYPE((krb5_context,
                   const char *,
               const char *,
               krb5_int32,
               krb5_principal *));
-#include <krb5/narrow.h>
 
 #endif /* KRB5_LIBOS_PROTO__ */