Commit 5c6af2b0 authored by J.H.M. Dassen's avatar J.H.M. Dassen Committed by Niels Möller

Usage message and blowfish support by jdassen@wi.leidenuniv.nl.

Rev: src/lsh.c:1.28
Rev: src/lshd.c:1.23
parent 0c3329ce
......@@ -59,6 +59,7 @@ void usage(void) NORETURN;
void usage(void)
{
fprintf(stderr, "lsh [-p port] [-l username] [-q] [-d] [-v] host\n");
exit(1);
}
......@@ -169,8 +170,9 @@ int main(int argc, char **argv)
/* No randomness is needed for verifying signatures */
lookup = make_fake_host_db(make_dss_algorithm(NULL));
kex = make_dh_client(dh, lookup);
algorithms = make_alist(4,
algorithms = make_alist(5,
ATOM_ARCFOUR, &crypto_rc4_algorithm,
ATOM_BLOWFISH_CBC, &crypto_blowfish_algorithm,
ATOM_HMAC_SHA1, make_hmac_algorithm(&sha_algorithm),
ATOM_DIFFIE_HELLMAN_GROUP1_SHA1, kex,
ATOM_SSH_DSS, make_dss_algorithm(r), -1);
......
......@@ -54,6 +54,7 @@ void usage(void) NORETURN;
void usage(void)
{
fprintf(stderr, "lshd [-p port] [-q] [-d] [-i] [-v]\n");
exit(1);
}
......@@ -183,8 +184,9 @@ int main(int argc, char **argv)
dh = make_dh1(r);
init_host_key(r); /* Initializes public_key and secret_key */
kex = make_dh_server(dh, public_key, secret_key);
algorithms = make_alist(4,
algorithms = make_alist(5,
ATOM_ARCFOUR, &crypto_rc4_algorithm,
ATOM_BLOWFISH_CBC, &crypto_blowfish_algorithm,
ATOM_HMAC_SHA1, make_hmac_algorithm(&sha_algorithm),
ATOM_DIFFIE_HELLMAN_GROUP1_SHA1, kex,
ATOM_SSH_DSS, make_dss_algorithm(r), -1);
......
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