Commit 7073fee5 authored by Niels Möller's avatar Niels Möller

* src/lsh-transport.c (main_argp_parser): Use make_kexinit_info.

* src/lshd.c (lshd_config_handler): Likewise.

Rev: src/lsh-transport.c:1.19
Rev: src/lshd.c:1.183
parent 84b193a6
......@@ -1246,12 +1246,12 @@ main_argp_parser(int key, char *arg, struct argp_state *state)
argp_failure(state, EXIT_FAILURE, errno, "Failed to open log file");
self->super.kexinit
= make_simple_kexinit(self->kex_algorithms,
self->algorithms->hostkey_algorithms,
self->algorithms->crypto_algorithms,
self->algorithms->mac_algorithms,
self->algorithms->compression_algorithms,
make_int_list(0, -1));
= make_kexinit_info(self->kex_algorithms,
self->algorithms->hostkey_algorithms,
self->algorithms->crypto_algorithms,
self->algorithms->mac_algorithms,
self->algorithms->compression_algorithms,
make_int_list(0, -1));
self->requested_service
= self->userauth ? "ssh-userauth" : self->service;
......
......@@ -879,12 +879,12 @@ lshd_config_handler(int key, uint32_t value, const uint8_t *data,
}
ctx->super.kexinit
= make_simple_kexinit(make_int_list(1, ATOM_DIFFIE_HELLMAN_GROUP14_SHA1, -1),
hostkey_algorithms,
self->algorithms->crypto_algorithms,
self->algorithms->mac_algorithms,
self->algorithms->compression_algorithms,
make_int_list(0, -1));
= make_kexinit_info(make_int_list(1, ATOM_DIFFIE_HELLMAN_GROUP14_SHA1, -1),
hostkey_algorithms,
self->algorithms->crypto_algorithms,
self->algorithms->mac_algorithms,
self->algorithms->compression_algorithms,
make_int_list(0, -1));
break;
}
......
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