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

Terminate the algorithm lists with -1.

Rev: src/keyexchange.c:1.20
parent 06524719
......@@ -464,12 +464,12 @@ static struct kexinit *do_make_kexinit(struct make_kexinit *c)
struct test_kexinit *closure = (struct test_kexinit *) c;
struct kexinit *res = xalloc(sizeof(struct kexinit));
static int kex_algorithms[] = { ATOM_DIFFIE_HELLMAN_GROUP1_SHA1, 0 };
static int server_hostkey_algorithms[] = { ATOM_SSH_DSS, 0 };
static int crypto_algorithms[] = { ATOM_ARCFOUR, ATOM_NONE, 0 };
static int mac_algorithms[] = { ATOM_HMAC_SHA1, 0 };
static int compression_algorithms[] = { ATOM_NONE, 0 };
static int languages[] = { 0 };
static int kex_algorithms[] = { ATOM_DIFFIE_HELLMAN_GROUP1_SHA1, -1 };
static int server_hostkey_algorithms[] = { ATOM_SSH_DSS, -1 };
static int crypto_algorithms[] = { ATOM_ARCFOUR, ATOM_NONE, -1 };
static int mac_algorithms[] = { ATOM_HMAC_SHA1, -1 };
static int compression_algorithms[] = { ATOM_NONE, -1 };
static int languages[] = { -1 };
MDEBUG(closure);
......
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