diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2005-03-22 14:11:06 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2005-03-22 14:11:06 +0000 |
commit | 59b6836ab2cff27c9d7062699abcbf805350b8ad (patch) | |
tree | a2182e08b3a233a2e8819fafdd3828f48a43da6e /ssl/s3_clnt.c | |
parent | 9fc9b55237d3f8abb0f0efb2bf26bc58bcd234bb (diff) |
Ensure (SSL_RANDOM_BYTES - 4) of pseudo random data is used for server and
client random values.
Diffstat (limited to 'ssl/s3_clnt.c')
-rw-r--r-- | ssl/s3_clnt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ssl/s3_clnt.c b/ssl/s3_clnt.c index 56dbf75fe3..54598f0f8b 100644 --- a/ssl/s3_clnt.c +++ b/ssl/s3_clnt.c @@ -562,7 +562,7 @@ static int ssl3_client_hello(SSL *s) p=s->s3->client_random; Time=time(NULL); /* Time */ l2n(Time,p); - RAND_pseudo_bytes(p,SSL3_RANDOM_SIZE-sizeof(Time)); + RAND_pseudo_bytes(p,SSL3_RANDOM_SIZE-4); /* Do the message type and length last */ d=p= &(buf[4]); |