diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2002-06-23 00:38:24 +0000 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2002-06-23 00:38:24 +0000 |
commit | e1c0912cb6af1d7ca8d260f9a3e21efdbe867050 (patch) | |
tree | 2e9ec96bc6bec92cda097f12c48950488c0a6469 /monitor.c | |
parent | 57f08005d3626a4f96a1af18ad47d55f2241f6c3 (diff) |
- stevesk@cvs.openbsd.org 2002/06/22 23:09:51
[monitor.c]
save auth method before monitor_reset_key_state(); bugzilla bug #284;
ok provos@
Diffstat (limited to 'monitor.c')
-rw-r--r-- | monitor.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -25,7 +25,7 @@ | |||
25 | */ | 25 | */ |
26 | 26 | ||
27 | #include "includes.h" | 27 | #include "includes.h" |
28 | RCSID("$OpenBSD: monitor.c,v 1.16 2002/06/21 05:50:51 djm Exp $"); | 28 | RCSID("$OpenBSD: monitor.c,v 1.17 2002/06/22 23:09:51 stevesk Exp $"); |
29 | 29 | ||
30 | #include <openssl/dh.h> | 30 | #include <openssl/dh.h> |
31 | 31 | ||
@@ -982,14 +982,14 @@ mm_answer_keyverify(int socket, Buffer *m) | |||
982 | xfree(signature); | 982 | xfree(signature); |
983 | xfree(data); | 983 | xfree(data); |
984 | 984 | ||
985 | auth_method = key_blobtype == MM_USERKEY ? "publickey" : "hostbased"; | ||
986 | |||
985 | monitor_reset_key_state(); | 987 | monitor_reset_key_state(); |
986 | 988 | ||
987 | buffer_clear(m); | 989 | buffer_clear(m); |
988 | buffer_put_int(m, verified); | 990 | buffer_put_int(m, verified); |
989 | mm_request_send(socket, MONITOR_ANS_KEYVERIFY, m); | 991 | mm_request_send(socket, MONITOR_ANS_KEYVERIFY, m); |
990 | 992 | ||
991 | auth_method = key_blobtype == MM_USERKEY ? "publickey" : "hostbased"; | ||
992 | |||
993 | return (verified); | 993 | return (verified); |
994 | } | 994 | } |
995 | 995 | ||