Commit 9aa41f20 authored by Niels Möller's avatar Niels Möller
Browse files

(send_debug_message): Use C_WRITE_NOW.

(send_debug, send_verbose): #if:ed out fucntions.

Rev: src/debug.c:1.36
Rev: src/debug.h:1.16
parent 0b8accf1
......@@ -91,11 +91,14 @@ make_debug_packet(const char *msg, int always_display)
/* Send a debug message to the other end. */
void
send_debug_message(struct abstract_write *write, const char *msg, int always_display)
send_debug_message(struct ssh_connection *connection,
const char *msg, int always_display)
{
A_WRITE(write, make_debug_packet(msg, always_display));
/* Can be sent even during key exchange. */
C_WRITE_NOW(connection, make_debug_packet(msg, always_display));
}
#if 0
void
send_debug(struct abstract_write *write, const char *msg, int always_display)
{
......@@ -109,6 +112,7 @@ send_verbose(struct abstract_write *write, const char *msg, int always_display)
if (verbose_flag)
send_debug_message(write, msg, always_display);
}
#endif
DEFINE_PACKET_HANDLER(, connection_debug_handler, connection UNUSED, packet)
{
......
......@@ -34,9 +34,12 @@ struct abstract_write *
make_packet_debug(struct abstract_write *continuation,
struct lsh_string *prefix);
void send_debug_message(struct abstract_write *write, const char *msg, int always_display);
void send_debug_message(struct ssh_connection *connection,
const char *msg, int always_display);
#if 0
void send_debug(struct abstract_write *write, const char *msg, int always_display);
void send_verbose(struct abstract_write *write, const char *msg, int always_display);
#endif
extern struct packet_handler connection_debug_handler;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment