diff options
author | Damien Miller <djm@mindrot.org> | 2013-10-26 10:05:46 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2013-10-26 10:05:46 +1100 |
commit | 26506ad29350c5681815745cc90b3952a84cf118 (patch) | |
tree | 797fb5763b2569bb1e15f86a5d3afe707ed88680 /sshconnect1.c | |
parent | bd43e8872325e9bbb3319c89da593614709f317c (diff) |
- (djm) [ssh-keygen.c ssh-keysign.c sshconnect1.c sshd.c] Remove
unnecessary arc4random_stir() calls. The only ones left are to ensure
that the PRNG gets a different state after fork() for platforms that
have broken the API.
Diffstat (limited to 'sshconnect1.c')
-rw-r--r-- | sshconnect1.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/sshconnect1.c b/sshconnect1.c index f4b890773..7bd6cb018 100644 --- a/sshconnect1.c +++ b/sshconnect1.c | |||
@@ -542,9 +542,6 @@ ssh_kex(char *host, struct sockaddr *hostaddr) | |||
542 | 542 | ||
543 | derive_ssh1_session_id(host_key->rsa->n, server_key->rsa->n, cookie, session_id); | 543 | derive_ssh1_session_id(host_key->rsa->n, server_key->rsa->n, cookie, session_id); |
544 | 544 | ||
545 | /* Generate a session key. */ | ||
546 | arc4random_stir(); | ||
547 | |||
548 | /* | 545 | /* |
549 | * Generate an encryption key for the session. The key is a 256 bit | 546 | * Generate an encryption key for the session. The key is a 256 bit |
550 | * random number, interpreted as a 32-byte key, with the least | 547 | * random number, interpreted as a 32-byte key, with the least |