Commit 7869fef9 authored by Niels Möller's avatar Niels Möller
Browse files

(compat_info): SSH-3.0 still needs the

PEER_SEND_NO_DEBUG flag. Also updated code to use the the
peer_flag enum.

Rev: src/handshake.c:1.9
Rev: src/handshake.h:1.4
parent bbf2e0e7
......@@ -52,7 +52,7 @@
struct compat_info
{
const char *prefix;
UINT32 flags;
enum peer_flag flags;
};
static const struct compat_info
......@@ -64,10 +64,11 @@ compat[] =
| PEER_X11_OPEN_KLUDGE) },
{ "2.1.0", (PEER_SSH_DSS_KLUDGE
| PEER_USERAUTH_REQUEST_KLUDGE | PEER_SEND_NO_DEBUG) },
{ "3.0", PEER_SEND_NO_DEBUG },
{ NULL, 0 }
};
static UINT32
static enum peer_flag
compat_peer_flags(UINT32 length, UINT8 *software)
{
unsigned i;
......@@ -284,7 +285,7 @@ make_connection_read_line(struct ssh_connection *connection,
struct handshake_info *
make_handshake_info(UINT32 flags,
make_handshake_info(enum connection_flag flags,
const char *id_comment,
const char *debug_comment,
UINT32 block_size,
......
......@@ -27,6 +27,7 @@
#include "alist.h"
#include "command.h"
#include "connection.h"
#include "ssh1_fallback.h"
#define GABA_DECLARE
......@@ -39,7 +40,7 @@
(vars
; Initial value for the connection flags. Usually
; CONNECTION_SERVER or CONNECTION_CLIENT
(flags . UINT32)
(flags . "enum connection_flag")
(block_size . UINT32)
(id_comment . "const char *")
......@@ -53,7 +54,7 @@
*/
struct handshake_info *
make_handshake_info(UINT32 flags,
make_handshake_info(enum connection_flag flags,
const char *id_comment,
const char *debug_comment,
UINT32 block_size,
......
Markdown is supported
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