diff options
Diffstat (limited to 'monitor.c')
-rw-r--r-- | monitor.c | 17 |
1 files changed, 1 insertions, 16 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: monitor.c,v 1.105 2010/02/26 20:29:54 djm Exp $ */ | 1 | /* $OpenBSD: monitor.c,v 1.106 2010/03/07 11:57:13 dtucker Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright 2002 Niels Provos <provos@citi.umich.edu> | 3 | * Copyright 2002 Niels Provos <provos@citi.umich.edu> |
4 | * Copyright 2002 Markus Friedl <markus@openbsd.org> | 4 | * Copyright 2002 Markus Friedl <markus@openbsd.org> |
@@ -997,17 +997,6 @@ mm_answer_pam_free_ctx(int sock, Buffer *m) | |||
997 | } | 997 | } |
998 | #endif | 998 | #endif |
999 | 999 | ||
1000 | static void | ||
1001 | mm_append_debug(Buffer *m) | ||
1002 | { | ||
1003 | if (auth_debug_init && buffer_len(&auth_debug)) { | ||
1004 | debug3("%s: Appending debug messages for child", __func__); | ||
1005 | buffer_append(m, buffer_ptr(&auth_debug), | ||
1006 | buffer_len(&auth_debug)); | ||
1007 | buffer_clear(&auth_debug); | ||
1008 | } | ||
1009 | } | ||
1010 | |||
1011 | int | 1000 | int |
1012 | mm_answer_keyallowed(int sock, Buffer *m) | 1001 | mm_answer_keyallowed(int sock, Buffer *m) |
1013 | { | 1002 | { |
@@ -1090,8 +1079,6 @@ mm_answer_keyallowed(int sock, Buffer *m) | |||
1090 | buffer_put_int(m, allowed); | 1079 | buffer_put_int(m, allowed); |
1091 | buffer_put_int(m, forced_command != NULL); | 1080 | buffer_put_int(m, forced_command != NULL); |
1092 | 1081 | ||
1093 | mm_append_debug(m); | ||
1094 | |||
1095 | mm_request_send(sock, MONITOR_ANS_KEYALLOWED, m); | 1082 | mm_request_send(sock, MONITOR_ANS_KEYALLOWED, m); |
1096 | 1083 | ||
1097 | if (type == MM_RSAHOSTKEY) | 1084 | if (type == MM_RSAHOSTKEY) |
@@ -1475,8 +1462,6 @@ mm_answer_rsa_keyallowed(int sock, Buffer *m) | |||
1475 | if (key != NULL) | 1462 | if (key != NULL) |
1476 | key_free(key); | 1463 | key_free(key); |
1477 | 1464 | ||
1478 | mm_append_debug(m); | ||
1479 | |||
1480 | mm_request_send(sock, MONITOR_ANS_RSAKEYALLOWED, m); | 1465 | mm_request_send(sock, MONITOR_ANS_RSAKEYALLOWED, m); |
1481 | 1466 | ||
1482 | monitor_permit(mon_dispatch, MONITOR_REQ_RSACHALLENGE, allowed); | 1467 | monitor_permit(mon_dispatch, MONITOR_REQ_RSACHALLENGE, allowed); |