mirror of
https://github.com/openssh/libopenssh
synced 2026-05-01 17:19:39 +00:00
kex: use ssh->datafellows instead of the global
This commit is contained in:
@@ -166,7 +166,7 @@ input_kex_dh(int type, u_int32_t seq, struct ssh *ssh)
|
||||
goto out;
|
||||
|
||||
if ((r = sshkey_verify(server_host_key, signature, slen, hash, hashlen,
|
||||
datafellows)) != 0)
|
||||
ssh->datafellows)) != 0)
|
||||
goto out;
|
||||
|
||||
/* save session id */
|
||||
|
||||
@@ -176,7 +176,7 @@ input_kex_dh_init(int type, u_int32_t seq, struct ssh *ssh)
|
||||
|
||||
/* sign H */
|
||||
if ((r = PRIVSEP(sshkey_sign(server_host_private, &signature, &slen, hash,
|
||||
hashlen, datafellows))) < 0)
|
||||
hashlen, ssh->datafellows))) < 0)
|
||||
goto out;
|
||||
|
||||
/* destroy_sensitive_data(); */
|
||||
|
||||
@@ -184,7 +184,7 @@ input_kex_ecdh_reply(int type, u_int32_t seq, struct ssh *ssh)
|
||||
goto out;
|
||||
|
||||
if ((r = sshkey_verify(server_host_key, signature, slen, hash,
|
||||
hashlen, datafellows)) != 0)
|
||||
hashlen, ssh->datafellows)) != 0)
|
||||
goto out;
|
||||
|
||||
/* save session id */
|
||||
|
||||
@@ -170,7 +170,7 @@ input_kex_ecdh_init(int type, u_int32_t seq, struct ssh *ssh)
|
||||
|
||||
/* sign H */
|
||||
if ((r = PRIVSEP(sshkey_sign(server_host_private, &signature, &slen,
|
||||
hash, hashlen, datafellows))) < 0)
|
||||
hash, hashlen, ssh->datafellows))) < 0)
|
||||
goto out;
|
||||
|
||||
/* destroy_sensitive_data(); */
|
||||
|
||||
@@ -226,7 +226,7 @@ input_kex_dh_gex_reply(int type, u_int32_t seq, struct ssh *ssh)
|
||||
goto out;
|
||||
|
||||
if ((r = sshkey_verify(server_host_key, signature, slen, hash,
|
||||
hashlen, datafellows)) != 0)
|
||||
hashlen, ssh->datafellows)) != 0)
|
||||
goto out;
|
||||
|
||||
/* save session id */
|
||||
|
||||
@@ -234,7 +234,7 @@ input_kex_dh_gex_init(int type, u_int32_t seq, struct ssh *ssh)
|
||||
|
||||
/* sign H */
|
||||
if ((r = PRIVSEP(sshkey_sign(server_host_private, &signature, &slen, hash,
|
||||
hashlen, datafellows))) < 0)
|
||||
hashlen, ssh->datafellows))) < 0)
|
||||
goto out;
|
||||
|
||||
/* destroy_sensitive_data(); */
|
||||
|
||||
Reference in New Issue
Block a user