diff options
author | Darren Tucker <dtucker@dtucker.net> | 2019-03-14 00:17:28 +0100 |
---|---|---|
committer | Darren Tucker <dtucker@dtucker.net> | 2019-03-14 00:17:28 +0100 |
commit | 9edbd7821e6837e98e7e95546cede804dac96754 (patch) | |
tree | caf1573447f669bd381d992ff22feb22aec3ea1b /kexgen.c | |
parent | On Cygwin run sshd as SYSTEM where possible. (diff) | |
download | openssh-9edbd7821e6837e98e7e95546cede804dac96754.tar.xz openssh-9edbd7821e6837e98e7e95546cede804dac96754.zip |
Fix build when configured --without-openssl.
ok djm@
Diffstat (limited to 'kexgen.c')
-rw-r--r-- | kexgen.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -101,6 +101,7 @@ kex_gen_client(struct ssh *ssh) int r; switch (kex->kex_type) { +#ifdef WITH_OPENSSL case KEX_DH_GRP1_SHA1: case KEX_DH_GRP14_SHA1: case KEX_DH_GRP14_SHA256: @@ -111,6 +112,7 @@ kex_gen_client(struct ssh *ssh) case KEX_ECDH_SHA2: r = kex_ecdh_keypair(kex); break; +#endif case KEX_C25519_SHA256: r = kex_c25519_keypair(kex); break; @@ -167,6 +169,7 @@ input_kex_gen_reply(int type, u_int32_t seq, struct ssh *ssh) /* compute shared secret */ switch (kex->kex_type) { +#ifdef WITH_OPENSSL case KEX_DH_GRP1_SHA1: case KEX_DH_GRP14_SHA1: case KEX_DH_GRP14_SHA256: @@ -177,6 +180,7 @@ input_kex_gen_reply(int type, u_int32_t seq, struct ssh *ssh) case KEX_ECDH_SHA2: r = kex_ecdh_dec(kex, server_blob, &shared_secret); break; +#endif case KEX_C25519_SHA256: r = kex_c25519_dec(kex, server_blob, &shared_secret); break; @@ -259,6 +263,7 @@ input_kex_gen_init(int type, u_int32_t seq, struct ssh *ssh) /* compute shared secret */ switch (kex->kex_type) { +#ifdef WITH_OPENSSL case KEX_DH_GRP1_SHA1: case KEX_DH_GRP14_SHA1: case KEX_DH_GRP14_SHA256: @@ -271,6 +276,7 @@ input_kex_gen_init(int type, u_int32_t seq, struct ssh *ssh) r = kex_ecdh_enc(kex, client_pubkey, &server_pubkey, &shared_secret); break; +#endif case KEX_C25519_SHA256: r = kex_c25519_enc(kex, client_pubkey, &server_pubkey, &shared_secret); |