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/d1_srvr.c | |
parent | 4af793036f6ef4f0a1078e5d7155426a98d50e37 (diff) |
Do not include a timestamp in the ServerHello Random field.
Instead, send random bytes.
Diffstat (limited to 'ssl/d1_srvr.c')
-rw-r--r-- | ssl/d1_srvr.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/ssl/d1_srvr.c b/ssl/d1_srvr.c index 29421da9aa..5b0c86a3ab 100644 --- a/ssl/d1_srvr.c +++ b/ssl/d1_srvr.c @@ -912,15 +912,13 @@ int dtls1_send_server_hello(SSL *s) unsigned char *p,*d; int i; unsigned int sl; - unsigned long l,Time; + unsigned long l; if (s->state == SSL3_ST_SW_SRVR_HELLO_A) { buf=(unsigned char *)s->init_buf->data; p=s->s3->server_random; - Time=(unsigned long)time(NULL); /* Time */ - l2n(Time,p); - RAND_pseudo_bytes(p,SSL3_RANDOM_SIZE-4); + RAND_pseudo_bytes(p,SSL3_RANDOM_SIZE); /* Do the message type and length last */ d=p= &(buf[DTLS1_HM_HEADER_LENGTH]); |