kex: use ssh->datafellows instead of the global

This commit is contained in:
Markus Friedl
2012-01-20 00:10:03 +01:00
parent f0b07791e7
commit 27e9f28bcd
6 changed files with 6 additions and 6 deletions

View File

@@ -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 */

View File

@@ -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(); */

View File

@@ -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 */

View File

@@ -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(); */

View File

@@ -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 */

View File

@@ -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(); */