Do not include a timestamp in the Client/ServerHello Random field.
[openssl.git] / ssl / s3_srvr.c
index 02653a4983b4b6222cf5d0f02c0be5e23ee039cc..92181bb4af001143e8cf61437426178671363c7c 100644 (file)
@@ -1246,12 +1246,9 @@ int ssl3_get_client_hello(SSL *s)
         * server_random before calling tls_session_secret_cb in order to allow
         * SessionTicket processing to use it in key derivation. */
        {
-               unsigned long Time;
                unsigned char *pos;
-               Time=(unsigned long)time(NULL);                 /* Time */
                pos=s->s3->server_random;
-               l2n(Time,pos);
-               if (RAND_pseudo_bytes(pos,SSL3_RANDOM_SIZE-4) <= 0)
+               if (ssl_fill_hello_random(s, 1, pos, SSL3_RANDOM_SIZE) <= 0)
                        {
                        goto f_err;
                        }