1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-10-30 12:05:34 +03:00

Remove unused kex state variable exchange_hash (#1713)

kex: completely remove unused exchange_hash it's unused.
This commit is contained in:
Joshua Rogers
2025-10-08 01:18:00 +08:00
committed by GitHub
parent c097c6811c
commit c3d8976c03
2 changed files with 0 additions and 3 deletions

View File

@@ -642,7 +642,6 @@ static int diffie_hellman_sha_algo(LIBSSH2_SESSION *session,
}
}
exchange_state->exchange_hash = (void *)&exchange_hash_ctx;
if(!_libssh2_sha_algo_ctx_init(sha_algo_value, exchange_hash_ctx)) {
ret = _libssh2_error(session, LIBSSH2_ERROR_HASH_INIT,
"Unable to initialize hash context");
@@ -1723,7 +1722,6 @@ do { \
rc = -1; \
break; \
} \
exchange_state->exchange_hash = (void *)&ctx; \
hok = 1; \
if(session->local.banner) { \
_libssh2_htonu32(exchange_state->h_sig_comp, \

View File

@@ -350,7 +350,6 @@ typedef struct kmdhgGPshakex_state_t
size_t f_value_len;
size_t k_value_len;
size_t h_sig_len;
void *exchange_hash;
packet_require_state_t req_state;
libssh2_nonblocking_states burn_state;
} kmdhgGPshakex_state_t;