summaryrefslogtreecommitdiffstats
path: root/ssl/d1_srvr.c
diff options
context:
space:
mode:
authorBen Laurie <ben@links.org>2013-10-19 11:46:32 +0100
committerBen Laurie <ben@links.org>2013-10-19 11:46:32 +0100
commit62036c6fc370eb57422d3d7925070b82d2b980ac (patch)
tree484b54e31a603198f3cfc75b777121e43bf6e0a5 /ssl/d1_srvr.c
parent68dd8512b7cb7e71bb951efe7863dbecb34e6611 (diff)
parent2583270191a8b27eed303c03ece1da97b9b69fd3 (diff)
Merge branch 'no_gmt_unix_time' of git://github.com/nmathewson/openssl into OpenSSL_1_0_1-stable
Diffstat (limited to 'ssl/d1_srvr.c')
-rw-r--r--ssl/d1_srvr.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/ssl/d1_srvr.c b/ssl/d1_srvr.c
index 1e7c45a021..c0beb4510f 100644
--- a/ssl/d1_srvr.c
+++ b/ssl/d1_srvr.c
@@ -913,15 +913,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);
+ ssl_fill_hello_random(s, 1, p, SSL3_RANDOM_SIZE);
/* Do the message type and length last */
d=p= &(buf[DTLS1_HM_HEADER_LENGTH]);