diff options
| author | Aris Adamantiadis <aris@0xbadc0de.be> | 2011-06-14 22:53:53 +0200 |
|---|---|---|
| committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2011-06-14 22:57:43 +0200 |
| commit | db2d0ebc44530ee101a40c3babbaa37ca3a13f00 (patch) | |
| tree | 2631ef9fd637797e5c64c934ae700e0cdb65b282 /src/dh.c | |
| parent | 583a7f933ab6491742035e217d4bff0b38a33b08 (diff) | |
| download | libssh-db2d0ebc44530ee101a40c3babbaa37ca3a13f00.tar.gz libssh-db2d0ebc44530ee101a40c3babbaa37ca3a13f00.tar.xz libssh-db2d0ebc44530ee101a40c3babbaa37ca3a13f00.zip | |
Fix build with missing openssl/ecdh.h
Diffstat (limited to 'src/dh.c')
| -rw-r--r-- | src/dh.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -681,10 +681,12 @@ int make_sessionid(ssh_session session) { } ssh_string_free(num); - } else if (session->next_crypto->kex_type == SSH_KEX_ECDH_SHA2_NISTP256){ +#ifdef HAVE_ECDH + } else if (session->next_crypto->kex_type == SSH_KEX_ECDH_SHA2_NISTP256){ buffer_add_ssh_string(buf,session->next_crypto->ecdh_client_pubkey); buffer_add_ssh_string(buf,session->next_crypto->ecdh_server_pubkey); - } +#endif + } num = make_bignum_string(session->next_crypto->k); if (num == NULL) { goto error; |
