diff options
author | Simon L. B. Nielsen <simon@FreeBSD.org> | 2007-03-15 20:03:30 +0000 |
---|---|---|
committer | Simon L. B. Nielsen <simon@FreeBSD.org> | 2007-03-15 20:03:30 +0000 |
commit | 5471f83ea72e251ea1f0d04428878a74347efa0f (patch) | |
tree | e7ef8661c43c3081071230f45d641b5d8a756e55 /crypto/openssl/ssl/s3_clnt.c | |
parent | 4d227dd736e57cf75f2278d8117f44dcb3defa61 (diff) |
Notes
Diffstat (limited to 'crypto/openssl/ssl/s3_clnt.c')
-rw-r--r-- | crypto/openssl/ssl/s3_clnt.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/crypto/openssl/ssl/s3_clnt.c b/crypto/openssl/ssl/s3_clnt.c index 26788858d7576..278be82294cde 100644 --- a/crypto/openssl/ssl/s3_clnt.c +++ b/crypto/openssl/ssl/s3_clnt.c @@ -1796,8 +1796,10 @@ int ssl3_send_client_key_exchange(SSL *s) n+=2; } - if (RAND_bytes(tmp_buf,sizeof tmp_buf) <= 0) - goto err; + tmp_buf[0]=s->client_version>>8; + tmp_buf[1]=s->client_version&0xff; + if (RAND_bytes(&(tmp_buf[2]),sizeof tmp_buf-2) <= 0) + goto err; /* 20010420 VRS. Tried it this way; failed. ** EVP_EncryptInit_ex(&ciph_ctx,enc, NULL,NULL); |