+Thu Jul 27 15:14:15 EDT 1995 Paul Park (pjpark@mit.edu)
+ * krb524d.c - Use the etype which is supplied in the krb5_keytype_array
+ specified by the master key type.
+
+
Mon Jul 17 15:15:01 EDT 1995 Paul Park (pjpark@mit.edu)
* krb524d.c - Add NULL stash file argument to krb5_db_fetch_mkey().
cleanup_and_exit(1, context);
}
-#ifdef PROVIDE_DES_CBC_CRC
- krb5_use_cstype(context, &master_encblock, ETYPE_DES_CBC_CRC);
-#else
- error(You gotta figure out what cryptosystem to use in the KDC);
-#endif
-
master_keyblock.keytype = KEYTYPE_DES;
+ krb5_use_cstype(context, &master_encblock,
+ krb5_keytype_array[master_keyblock.keytype]->
+ system->proto_enctype);
if ((ret = krb5_db_fetch_mkey(context, master_princ, &master_encblock,
FALSE, /* non-manual type-in */
FALSE, /* irrelevant, given prev. arg */