1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-12-02 01:17:52 +03:00

Fix build with missing openssl/ecdh.h

This commit is contained in:
Aris Adamantiadis
2011-06-14 22:53:53 +02:00
parent 583a7f933a
commit db2d0ebc44
3 changed files with 9 additions and 2 deletions

View File

@@ -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;