+
+Mon Jul 17 15:17:53 EDT 1995 Paul Park (pjpark@mit.edu)
+ * fetch_mkey.c - Remove inclusion of kdbint.h and add handling of
+ stash file argument.
+ * store_mkey.c - Remove inclusion of kdbint.h. The default name of
+ the stash file is in osconf.h now.
+
Sat Jul 8 22:37:14 1995 Theodore Y. Ts'o (tytso@dcl)
* kdb_dbm.c (kdb5_kdbm_db_create): Make sure the dbm context is
*/
#include "k5-int.h"
-#include "kdbint.h"
/* these are available to other funcs, and the pointers may be reassigned */
#endif
krb5_error_code
-krb5_db_fetch_mkey(context, mname, eblock, fromkeyboard, twice, salt, key)
+krb5_db_fetch_mkey(context, mname, eblock, fromkeyboard, twice, keyfile, salt, key)
krb5_context context;
krb5_principal mname;
krb5_encrypt_block * eblock;
krb5_boolean fromkeyboard;
krb5_boolean twice;
+ char *keyfile;
krb5_data * salt;
krb5_keyblock * key;
{
(void) strcat(defkeyfile, "");
#ifdef ANSI_STDIO
- if (!(kf = fopen(defkeyfile, "rb")))
+ if (!(kf = fopen((keyfile) ? keyfile : defkeyfile, "rb")))
#else
- if (!(kf = fopen(defkeyfile, "r")))
+ if (!(kf = fopen((keyfile) ? keyfile : defkeyfile, "r")))
#endif
return KRB5_KDB_CANTREAD_STORED;
if (fread((krb5_pointer) &keytype, 2, 1, kf) != 1) {