Fix warning.
This commit is contained in:
parent
fdb0d5dd8f
commit
c97ec5631b
@ -282,7 +282,7 @@ int ssl_fill_hello_random(SSL *s, int server, unsigned char *result, int len)
|
|||||||
send_time = (s->mode & SSL_MODE_SEND_CLIENTHELLO_TIME) != 0;
|
send_time = (s->mode & SSL_MODE_SEND_CLIENTHELLO_TIME) != 0;
|
||||||
if (send_time)
|
if (send_time)
|
||||||
{
|
{
|
||||||
unsigned long Time = time(NULL);
|
unsigned long Time = (unsigned long)time(NULL);
|
||||||
unsigned char *p = result;
|
unsigned char *p = result;
|
||||||
l2n(Time, p);
|
l2n(Time, p);
|
||||||
return RAND_pseudo_bytes(p, len-4);
|
return RAND_pseudo_bytes(p, len-4);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user