Fix warning
authorDr. Stephen Henson <steve@openssl.org>
Wed, 8 Jan 2014 13:07:20 +0000 (13:07 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Wed, 8 Jan 2014 13:36:27 +0000 (13:36 +0000)
PR#3220

ssl/s23_clnt.c

index 84670b6..2b93c63 100644 (file)
@@ -283,7 +283,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;
        if (send_time)
                {
-               unsigned long Time = time(NULL);
+               unsigned long Time = (unsigned long)time(NULL);
                unsigned char *p = result;
                l2n(Time, p);
                return RAND_pseudo_bytes(p, len-4);