summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorEzra Peisach <epeisach@mit.edu>2001-07-25 19:00:06 +0000
committerEzra Peisach <epeisach@mit.edu>2001-07-25 19:00:06 +0000
commite4dedcc868bc1ca682101e1ea74ad2d1d438278e (patch)
tree12d60110a299dde829ba7cf012dc08b64ab31d89 /src/include
parent0846e5dce13c463c89f76675e19d06a4df18f2c9 (diff)
downloadkrb5-e4dedcc868bc1ca682101e1ea74ad2d1d438278e.tar.gz
krb5-e4dedcc868bc1ca682101e1ea74ad2d1d438278e.tar.xz
krb5-e4dedcc868bc1ca682101e1ea74ad2d1d438278e.zip
* kdb.h: For structs krb5_tl_data (tl_data_length), krb5_key_data
(key-data_length), krb5_db_entry (len, e_length) change the storage types from krb5_int16 to krb5_ui_2. This does not require a database version change as the field sizes are the same. Remove the code ifdefed under KRB5_OLD_AND_KRUFTY. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13641 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/include')
-rw-r--r--src/include/krb5/ChangeLog8
-rw-r--r--src/include/krb5/kdb.h82
2 files changed, 12 insertions, 78 deletions
diff --git a/src/include/krb5/ChangeLog b/src/include/krb5/ChangeLog
index 89e62f936..2fa911042 100644
--- a/src/include/krb5/ChangeLog
+++ b/src/include/krb5/ChangeLog
@@ -1,3 +1,11 @@
+2001-07-25 Ezra Peisach <epeisach@mit.edu>
+
+ * kdb.h: For structs krb5_tl_data (tl_data_length), krb5_key_data
+ (key-data_length), krb5_db_entry (len, e_length) change the
+ storage types from krb5_int16 to krb5_ui_2. This does not require
+ a database version change as the field sizes are the same. Remove
+ the code ifdefed under KRB5_OLD_AND_KRUFTY.
+
2001-04-27 Ezra Peisach <epeisach@mit.edu>
* .cvsignore: Add stamp-h.in
diff --git a/src/include/krb5/kdb.h b/src/include/krb5/kdb.h
index 58b0275ce..af921a6e6 100644
--- a/src/include/krb5/kdb.h
+++ b/src/include/krb5/kdb.h
@@ -94,7 +94,7 @@
typedef struct _krb5_tl_data {
struct _krb5_tl_data* tl_data_next; /* NOT saved */
krb5_int16 tl_data_type;
- krb5_int16 tl_data_length;
+ krb5_ui_2 tl_data_length;
krb5_octet * tl_data_contents;
} krb5_tl_data;
@@ -108,7 +108,7 @@ typedef struct _krb5_key_data {
krb5_int16 key_data_ver; /* Version */
krb5_int16 key_data_kvno; /* Key Version */
krb5_int16 key_data_type[2]; /* Array of types */
- krb5_int16 key_data_length[2]; /* Array of lengths */
+ krb5_ui_2 key_data_length[2]; /* Array of lengths */
krb5_octet * key_data_contents[2]; /* Array of pointers */
} krb5_key_data;
@@ -121,7 +121,7 @@ typedef struct _krb5_keysalt {
typedef struct _krb5_db_entry_new {
krb5_magic magic; /* NOT saved */
- krb5_int16 len;
+ krb5_ui_2 len;
krb5_flags attributes;
krb5_deltat max_life;
krb5_deltat max_renewable_life;
@@ -132,7 +132,7 @@ typedef struct _krb5_db_entry_new {
krb5_kvno fail_auth_count; /* # of failed passwd attempt */
krb5_int16 n_tl_data;
krb5_int16 n_key_data;
- krb5_int16 e_length; /* Length of extra data */
+ krb5_ui_2 e_length; /* Length of extra data */
krb5_octet * e_data; /* Extra data to be saved */
krb5_principal princ; /* Length, data */
@@ -326,79 +326,5 @@ krb5_error_code krb5_ser_db_context_init (krb5_context);
#define KRB5_KDB_DEF_FLAGS 0
-#ifdef KRB5_OLD_AND_KRUFTY
-/* this is the same structure as krb5_keyblock, but with a different name to
- enable compile-time catching of programmer confusion between encrypted &
- decrypted keys in the database */
-
-typedef struct _krb5_encrypted_keyblock {
- krb5_magic magic;
- short enctype; /* XXX this is SO ugly --- proven */
- int length;
- krb5_octet *contents;
-} krb5_encrypted_keyblock;
-
-typedef struct _krb5_db_entry {
- krb5_magic magic;
- krb5_principal principal;
- krb5_encrypted_keyblock key;
- krb5_kvno kvno;
- krb5_deltat max_life;
- krb5_deltat max_renewable_life;
- krb5_kvno mkvno; /* master encryption key vno */
-
- krb5_timestamp expiration; /* This is when the client expires */
- krb5_timestamp pw_expiration; /* This is when its password does */
- krb5_timestamp last_pwd_change; /* Last time of password change */
- krb5_timestamp last_success; /* Last successful password */
-
- krb5_timestamp last_failed; /* Last failed password attempt */
- krb5_kvno fail_auth_count; /* # of failed password attempts */
-
- krb5_principal mod_name;
- krb5_timestamp mod_date;
- krb5_flags attributes;
- krb5_int32 salt_type:8,
- salt_length:24;
- krb5_octet *salt;
- krb5_encrypted_keyblock alt_key;
- krb5_int32 alt_salt_type:8,
- alt_salt_length:24;
- krb5_octet *alt_salt;
-
- krb5_int32 expansion[8];
-} krb5_db_entry_OLD;
-
-#endif /* KRB5_OLD_AND_KRUFTY */
-
-/* This is now a structure that is private to the database backend. */
-#ifdef notdef
-#ifdef KDB5_DISPATCH
-/*
- * Database operation dispatch table. This table determines the procedures
- * to be used to access the KDC database. Replacement of this structure is
- * not supported.
- */
-typedef struct _kdb5_dispatch_table {
- char * kdb5_db_mech_name;
- char * kdb5_db_index_ext;
- char * kdb5_db_data_ext;
- char * kdb5_db_lock_ext;
- DBM * (*kdb5_dbm_open) (const char *, int, int);
- void (*kdb5_dbm_close) (DBM *);
- datum (*kdb5_dbm_fetch) (DBM *, datum);
- datum (*kdb5_dbm_firstkey) (DBM *);
- datum (*kdb5_dbm_nextkey) (DBM *);
- int (*kdb5_dbm_delete) (DBM *, datum);
- int (*kdb5_dbm_store) (DBM *, datum, datum, int);
- int (*kdb5_dbm_dirfno) (DBM *);
- int (*kdb5_dbm_pagfno) (DBM *);
-} kdb5_dispatch_table;
-
-krb5_error_code kdb5_db_set_dbops (krb5_context, kdb5_dispatch_table *);
-#else
-typedef struct _kdb5_dispatch_table kdb5_dispatch_table;
-#endif /* KDB5_DISPATCH */
-#endif /* notdef */
#endif /* !defined(macintosh) && !defined(_MSDOS) &&!defined(_WIN32) */
#endif /* KRB5_KDB5__ */