From: Michael Brown Date: Mon, 19 Mar 2012 23:05:26 +0000 (+0000) Subject: [tls] Include current time within the client random bytes X-Git-Tag: v1.20.1~1920 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5da712385e07f0965a3f7548933c2bd3c4f254f6;p=thirdparty%2Fipxe.git [tls] Include current time within the client random bytes Signed-off-by: Michael Brown --- diff --git a/src/net/tls.c b/src/net/tls.c index 1688dfc38..276b23577 100644 --- a/src/net/tls.c +++ b/src/net/tls.c @@ -28,6 +28,7 @@ FILE_LICENCE ( GPL2_OR_LATER ); #include #include #include +#include #include #include #include @@ -2030,7 +2031,7 @@ int add_tls ( struct interface *xfer, const char *name, tls_clear_cipher ( tls, &tls->tx_cipherspec_pending ); tls_clear_cipher ( tls, &tls->rx_cipherspec ); tls_clear_cipher ( tls, &tls->rx_cipherspec_pending ); - tls->client_random.gmt_unix_time = 0; + tls->client_random.gmt_unix_time = time ( NULL ); if ( ( rc = tls_generate_random ( tls, &tls->client_random.random, ( sizeof ( tls->client_random.random ) ) ) ) != 0 ) { goto err_random;