summaryrefslogtreecommitdiffstats
path: root/ssl/d1_srvr.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2013-10-09 10:28:42 -0400
committerNick Mathewson <nickm@torproject.org>2013-10-09 10:28:42 -0400
commit3da721dac9382c48812c8eba455528fd59af2eef (patch)
treeaa3dfa04b2157499d84cd979cfaeed2cb8e11beb /ssl/d1_srvr.c
parentf4c93b46edb51da71f09eda99e83eaf193a33c08 (diff)
Refactor {client,server}_random to call an intermediate function
I'll be using this to make an option for randomizing the time.
Diffstat (limited to 'ssl/d1_srvr.c')
-rw-r--r--ssl/d1_srvr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ssl/d1_srvr.c b/ssl/d1_srvr.c
index 5b0c86a3ab..9563066bd1 100644
--- a/ssl/d1_srvr.c
+++ b/ssl/d1_srvr.c
@@ -918,7 +918,7 @@ int dtls1_send_server_hello(SSL *s)
{
buf=(unsigned char *)s->init_buf->data;
p=s->s3->server_random;
- RAND_pseudo_bytes(p,SSL3_RANDOM_SIZE);
+ ssl_fill_hello_random(s, 1, p, SSL3_RANDOM_SIZE);
/* Do the message type and length last */
d=p= &(buf[DTLS1_HM_HEADER_LENGTH]);