mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-11 02:38:09 +09:00
ecdh: Avoid unused variable with OpenSSL 1.1.1
Signed-off-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Norbert Pocs <npocs@redhat.com>
This commit is contained in:
@@ -74,7 +74,6 @@ static ssh_string ssh_ecdh_generate(ssh_session session)
|
|||||||
ssh_string pubkey_string = NULL;
|
ssh_string pubkey_string = NULL;
|
||||||
const EC_GROUP *group = NULL;
|
const EC_GROUP *group = NULL;
|
||||||
const EC_POINT *point = NULL;
|
const EC_POINT *point = NULL;
|
||||||
int rc;
|
|
||||||
#if OPENSSL_VERSION_NUMBER < 0x30000000L
|
#if OPENSSL_VERSION_NUMBER < 0x30000000L
|
||||||
EC_KEY *key = NULL;
|
EC_KEY *key = NULL;
|
||||||
int curve;
|
int curve;
|
||||||
@@ -86,6 +85,7 @@ static ssh_string ssh_ecdh_generate(ssh_session session)
|
|||||||
const void *pubkey = NULL;
|
const void *pubkey = NULL;
|
||||||
size_t pubkey_len;
|
size_t pubkey_len;
|
||||||
int nid;
|
int nid;
|
||||||
|
int rc;
|
||||||
#endif /* OPENSSL_VERSION_NUMBER */
|
#endif /* OPENSSL_VERSION_NUMBER */
|
||||||
|
|
||||||
curve = ecdh_kex_type_to_curve(session->next_crypto->kex_type);
|
curve = ecdh_kex_type_to_curve(session->next_crypto->kex_type);
|
||||||
|
|||||||
Reference in New Issue
Block a user