krb5_octet *contents;
} krb5_keyblock;
-typedef struct _krb5_encrypted_keyblock {
- krb5_keytype keytype;
- int length;
- krb5_octet *contents;
-} krb5_encrypted_keyblock;
-
typedef struct _krb5_checksum {
krb5_cksumtype checksum_type; /* checksum type */
int length;
#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 */