diff options
author | Damien Miller <djm@mindrot.org> | 2000-05-01 08:24:07 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2000-05-01 08:24:07 +1000 |
commit | 7c8af4fca8ab675245aa5532f80a2f06d6c080c1 (patch) | |
tree | fe3d14ae6fcbe074c22d6097c3434c4188c69350 | |
parent | 1b26ab286f2014f4e974e6ab8f07d1ed7c7599be (diff) |
packet.c
send debug messages in SSH2 format
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | packet.c | 13 |
2 files changed, 15 insertions, 3 deletions
@@ -1,3 +1,8 @@ | |||
1 | 20000501 | ||
2 | - OpenBSD CVS update | ||
3 | [packet.c] | ||
4 | - send debug messages in SSH2 format | ||
5 | |||
1 | 20000430 | 6 | 20000430 |
2 | - Merge HP-UX fixes and TCB support from Ged Lodder <lodder@yacc.com.au> | 7 | - Merge HP-UX fixes and TCB support from Ged Lodder <lodder@yacc.com.au> |
3 | - Integrate Andre Lucas' <andre.lucas@dial.pipex.com> entropy collection | 8 | - Integrate Andre Lucas' <andre.lucas@dial.pipex.com> entropy collection |
@@ -17,7 +17,7 @@ | |||
17 | */ | 17 | */ |
18 | 18 | ||
19 | #include "includes.h" | 19 | #include "includes.h" |
20 | RCSID("$Id: packet.c,v 1.19 2000/04/16 02:31:51 damien Exp $"); | 20 | RCSID("$Id: packet.c,v 1.20 2000/04/30 22:24:07 damien Exp $"); |
21 | 21 | ||
22 | #include "xmalloc.h" | 22 | #include "xmalloc.h" |
23 | #include "buffer.h" | 23 | #include "buffer.h" |
@@ -1093,8 +1093,15 @@ packet_send_debug(const char *fmt,...) | |||
1093 | vsnprintf(buf, sizeof(buf), fmt, args); | 1093 | vsnprintf(buf, sizeof(buf), fmt, args); |
1094 | va_end(args); | 1094 | va_end(args); |
1095 | 1095 | ||
1096 | packet_start(SSH_MSG_DEBUG); | 1096 | if (compat20) { |
1097 | packet_put_string(buf, strlen(buf)); | 1097 | packet_start(SSH2_MSG_DEBUG); |
1098 | packet_put_char(0); /* bool: always display */ | ||
1099 | packet_put_cstring(buf); | ||
1100 | packet_put_cstring(""); | ||
1101 | } else { | ||
1102 | packet_start(SSH_MSG_DEBUG); | ||
1103 | packet_put_cstring(buf); | ||
1104 | } | ||
1098 | packet_send(); | 1105 | packet_send(); |
1099 | packet_write_wait(); | 1106 | packet_write_wait(); |
1100 | } | 1107 | } |