Fix warning.
authorDr. Stephen Henson <steve@openssl.org>
Sun, 1 Dec 2013 23:30:21 +0000 (23:30 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Sun, 1 Dec 2013 23:30:21 +0000 (23:30 +0000)
ssl/s23_clnt.c

index 3aae2200ec40d037b776c47ac08927c68fd72331..710d4f228e4764e58a5ccc944a8902c5acb47f85 100644 (file)
@@ -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;
                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);