summaryrefslogtreecommitdiff
path: root/kerberosIV/kpasswdd
diff options
context:
space:
mode:
authorThorsten Lockert <tholo@cvs.openbsd.org>1996-04-17 07:22:52 +0000
committerThorsten Lockert <tholo@cvs.openbsd.org>1996-04-17 07:22:52 +0000
commit061bbcac6a4fa1ceea9e57f4a6eec79f76782007 (patch)
tree3d0b1a9cae140fb5d551978057258a52fbd7d772 /kerberosIV/kpasswdd
parent50e0cdcd2e9e6e2e7046e8335c985eb066b62c66 (diff)
Make setting of kerberos passwords work again
Diffstat (limited to 'kerberosIV/kpasswdd')
-rw-r--r--kerberosIV/kpasswdd/kpasswdd.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/kerberosIV/kpasswdd/kpasswdd.c b/kerberosIV/kpasswdd/kpasswdd.c
index 7a912eb77e4..48c89b19077 100644
--- a/kerberosIV/kpasswdd/kpasswdd.c
+++ b/kerberosIV/kpasswdd/kpasswdd.c
@@ -1,4 +1,4 @@
-/* $Id: kpasswdd.c,v 1.1 1995/12/14 06:52:53 tholo Exp $ */
+/* $Id: kpasswdd.c,v 1.2 1996/04/17 07:22:51 tholo Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -184,7 +184,7 @@ main()
kdb_encrypt_key(&key, &key, &master_key, master_key_schedule,
DECRYPT);
key_sched(&key, key_schedule);
- des_set_key(&key, key_schedule);
+ desrw_set_key(&key, key_schedule);
/* get random key and send it over {random} Kperson */
@@ -203,7 +203,7 @@ main()
/* now read update info: { info }Krandom */
key_sched(&kpwd_data.random_key, random_sched);
- des_set_key(&kpwd_data.random_key, random_sched);
+ desrw_set_key(&kpwd_data.random_key, random_sched);
if (des_read(0, &ud_data, sizeof(ud_data)) != sizeof(ud_data)) {
syslog(LOG_NOTICE, "update aborted");
cleanup();
@@ -213,8 +213,9 @@ main()
/* validate info string by looking at the embedded string */
if (strcmp(ud_data.secure_msg, SECURE_STRING) != 0) {
- syslog(LOG_NOTICE, "invalid update from %s",
- inet_ntoa(foreign.sin_addr));
+ syslog(LOG_NOTICE, "invalid update from %s (%s)",
+ inet_ntoa(foreign.sin_addr),
+ ud_data.secure_msg);
cleanup();
exit(1);
}