diff options
author | Nick Mathewson <nickm@torproject.org> | 2013-10-09 10:28:42 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-10-09 10:28:42 -0400 |
commit | 3da721dac9382c48812c8eba455528fd59af2eef (patch) | |
tree | aa3dfa04b2157499d84cd979cfaeed2cb8e11beb /ssl/s3_srvr.c | |
parent | f4c93b46edb51da71f09eda99e83eaf193a33c08 (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/s3_srvr.c')
-rw-r--r-- | ssl/s3_srvr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ssl/s3_srvr.c b/ssl/s3_srvr.c index 511f5bef4c..508239fce5 100644 --- a/ssl/s3_srvr.c +++ b/ssl/s3_srvr.c @@ -1194,8 +1194,8 @@ int ssl3_get_client_hello(SSL *s) * SessionTicket processing to use it in key derivation. */ { unsigned char *pos; - pos=s->s3->server_random; - if (RAND_pseudo_bytes(pos,SSL3_RANDOM_SIZE) <= 0) + pos=s->s3->server_random; + if (ssl_fill_hello_random(s,1,pos,SSL3_RANDOM_SIZE) <= 0) { al=SSL_AD_INTERNAL_ERROR; goto f_err; |