summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/kdb/ChangeLog7
-rw-r--r--src/lib/kdb/fetch_mkey.c8
-rw-r--r--src/lib/kdb/store_mkey.c1
3 files changed, 11 insertions, 5 deletions
diff --git a/src/lib/kdb/ChangeLog b/src/lib/kdb/ChangeLog
index bdd7bfd3f..2788a436e 100644
--- a/src/lib/kdb/ChangeLog
+++ b/src/lib/kdb/ChangeLog
@@ -1,3 +1,10 @@
+
+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
diff --git a/src/lib/kdb/fetch_mkey.c b/src/lib/kdb/fetch_mkey.c
index cae97569f..2ef352651 100644
--- a/src/lib/kdb/fetch_mkey.c
+++ b/src/lib/kdb/fetch_mkey.c
@@ -26,7 +26,6 @@
*/
#include "k5-int.h"
-#include "kdbint.h"
/* these are available to other funcs, and the pointers may be reassigned */
@@ -53,12 +52,13 @@ char *krb5_mkey_pwd_prompt2 = KRB5_KDC_MKEY_2;
#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;
{
@@ -108,9 +108,9 @@ krb5_db_fetch_mkey(context, mname, eblock, fromkeyboard, twice, salt, 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) {
diff --git a/src/lib/kdb/store_mkey.c b/src/lib/kdb/store_mkey.c
index ddec7d203..a58d2fe7e 100644
--- a/src/lib/kdb/store_mkey.c
+++ b/src/lib/kdb/store_mkey.c
@@ -28,7 +28,6 @@
#include <errno.h>
#include "k5-int.h"
-#include "kdbint.h"
/* Just in case sysincl.h didn't get it */