From 74083410c73f6563119bb8556abe20dfcb8ed683 Mon Sep 17 00:00:00 2001 From: John Kohl Date: Sat, 15 Dec 1990 10:10:06 +0000 Subject: [PATCH] need to declare krb5_encrypted_keyblock *before* db_entry git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1556 dc483132-0cff-0310-8789-dd5450dbe970 --- src/include/krb5/kdb.h | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/include/krb5/kdb.h b/src/include/krb5/kdb.h index 2f04677d0..64c2fcb3b 100644 --- a/src/include/krb5/kdb.h +++ b/src/include/krb5/kdb.h @@ -16,6 +16,16 @@ #ifndef KRB5_KDB5__ #define KRB5_KDB5__ +/* 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_keytype keytype; + int length; + krb5_octet *contents; +} krb5_encrypted_keyblock; + typedef struct _krb5_db_entry { krb5_principal principal; krb5_encrypted_keyblock key; @@ -37,16 +47,6 @@ typedef struct _krb5_db_entry { #define KRB5_KDB_DISALLOW_DUP_SKEY 0x00000020 #define KRB5_KDB_DISALLOW_ALL_TIX 0x00000040 -/* 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_keytype keytype; - int length; - krb5_octet *contents; -} krb5_encrypted_keyblock; - /* XXX depends on knowledge of krb5_parse_name() formats */ #define KRB5_KDB_M_NAME "K/M" /* Kerberos/Master */ -- 2.26.2