diff options
author | Nick Mathewson <nickm@torproject.org> | 2013-09-16 13:32:54 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-09-16 13:44:10 -0400 |
commit | f4c93b46edb51da71f09eda99e83eaf193a33c08 (patch) | |
tree | 1ea80d05898ff118bec8aece24a40f69cca0f396 /ssl/s3_srvr.c | |
parent | 4af793036f6ef4f0a1078e5d7155426a98d50e37 (diff) |
Do not include a timestamp in the ServerHello Random field.
Instead, send random bytes.
Diffstat (limited to 'ssl/s3_srvr.c')
-rw-r--r-- | ssl/s3_srvr.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/ssl/s3_srvr.c b/ssl/s3_srvr.c index bfb8480540..511f5bef4c 100644 --- a/ssl/s3_srvr.c +++ b/ssl/s3_srvr.c @@ -1193,12 +1193,9 @@ int ssl3_get_client_hello(SSL *s) * server_random before calling tls_session_secret_cb in order to allow * SessionTicket processing to use it in key derivation. */ { - unsigned long Time; unsigned char *pos; - Time=(unsigned long)time(NULL); /* Time */ - pos=s->s3->server_random; - l2n(Time,pos); - if (RAND_pseudo_bytes(pos,SSL3_RANDOM_SIZE-4) <= 0) + pos=s->s3->server_random; + if (RAND_pseudo_bytes(pos,SSL3_RANDOM_SIZE) <= 0) { al=SSL_AD_INTERNAL_ERROR; goto f_err; |