aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/testcurl/https/tls_extension_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/testcurl/https/tls_extension_test.c b/src/testcurl/https/tls_extension_test.c
index bdcf9ec0..84ed374f 100644
--- a/src/testcurl/https/tls_extension_test.c
+++ b/src/testcurl/https/tls_extension_test.c
@@ -118,7 +118,7 @@ test_hello_extension (MHD_gtls_session_t session, extensions_t exten_t,
118 /* generate session client random */ 118 /* generate session client random */
119 memset (session->security_parameters.client_random, 0, TLS_RANDOM_SIZE); 119 memset (session->security_parameters.client_random, 0, TLS_RANDOM_SIZE);
120 MHD_gtls_write_uint32 (time (NULL), rnd); 120 MHD_gtls_write_uint32 (time (NULL), rnd);
121 MHD_gc_nonce ((char *) &rnd[4], TLS_RANDOM_SIZE - 4); 121 if (GC_OK != MHD_gc_nonce ((char *) &rnd[4], TLS_RANDOM_SIZE - 4)) abort ();
122 memcpy (session->security_parameters.client_random, rnd, TLS_RANDOM_SIZE); 122 memcpy (session->security_parameters.client_random, rnd, TLS_RANDOM_SIZE);
123 memcpy (&data[pos], rnd, TLS_RANDOM_SIZE); 123 memcpy (&data[pos], rnd, TLS_RANDOM_SIZE);
124 pos += TLS_RANDOM_SIZE; 124 pos += TLS_RANDOM_SIZE;