test_suite_ssl: Add minimal handshake requirements

Signed-off-by: Andrzej Kurek <andrzej.kurek@arm.com>
diff --git a/tests/suites/test_suite_ssl.function b/tests/suites/test_suite_ssl.function
index 459e94b..26855a6 100644
--- a/tests/suites/test_suite_ssl.function
+++ b/tests/suites/test_suite_ssl.function
@@ -31,6 +31,7 @@
     size_t counter;
 } log_pattern;
 
+#if defined(MBEDTLS_X509_CRT_PARSE_C)
 static int rng_seed = 0xBEEF;
 static int rng_get( void *p_rng, unsigned char *output, size_t output_len )
 {
@@ -40,6 +41,7 @@
 
     return 0;
 }
+#endif
 
 /*
  * This function can be passed to mbedtls to receive output logs from it. In
@@ -101,8 +103,10 @@
 
 void init_handshake_options( handshake_test_options *opts )
 {
+#if defined(MBEDTLS_X509_CRT_PARSE_C)
     srand( rng_seed );
     rng_seed += 0xD0;
+#endif
     opts->cipher = "";
     opts->client_min_version = MBEDTLS_SSL_VERSION_UNKNOWN;
     opts->client_max_version = MBEDTLS_SSL_VERSION_UNKNOWN;