Put MPS under the umbrella of the TLS 1.3 experimental configuration
Signed-off-by: Hanno Becker <hanno.becker@arm.com>
diff --git a/library/mps_reader.c b/library/mps_reader.c
index ac2955f..c23446c 100644
--- a/library/mps_reader.c
+++ b/library/mps_reader.c
@@ -19,6 +19,10 @@
* This file is part of Mbed TLS (https://tls.mbed.org)
*/
+#include "common.h"
+
+#if defined(MBEDTLS_SSL_PROTO_TLS1_3_EXPERIMENTAL)
+
#include "mps_reader.h"
#include "mps_common.h"
#include "mps_trace.h"
@@ -557,3 +561,5 @@
(unsigned) rd->acc_share.acc_remaining );
MBEDTLS_MPS_TRACE_RETURN( 0 );
}
+
+#endif /* MBEDTLS_SSL_PROTO_TLS1_3_EXPERIMENTAL */
diff --git a/library/mps_trace.c b/library/mps_trace.c
index 28b05bb..dc0577d 100644
--- a/library/mps_trace.c
+++ b/library/mps_trace.c
@@ -19,6 +19,10 @@
* This file is part of Mbed TLS (https://tls.mbed.org)
*/
+#include "common.h"
+
+#if defined(MBEDTLS_SSL_PROTO_TLS1_3_EXPERIMENTAL)
+
#include "mps_common.h"
#if defined(MBEDTLS_MPS_ENABLE_TRACE)
@@ -120,3 +124,4 @@
}
#endif /* MBEDTLS_MPS_ENABLE_TRACE */
+#endif /* MBEDTLS_SSL_PROTO_TLS1_3_EXPERIMENTAL */
diff --git a/tests/suites/test_suite_mps.function b/tests/suites/test_suite_mps.function
index d67e7d2..57a84cb 100644
--- a/tests/suites/test_suite_mps.function
+++ b/tests/suites/test_suite_mps.function
@@ -19,6 +19,11 @@
/* END_HEADER */
+/* BEGIN_DEPENDENCIES
+ * depends_on:MBEDTLS_SSL_PROTO_TLS1_3_EXPERIMENTAL
+ * END_DEPENDENCIES
+ */
+
/* BEGIN_CASE depends_on:TEST_SUITE_MPS_READER */
void mbedtls_mps_reader_no_pausing_single_step_single_round( int with_acc )
{