diff --git a/library/mps_reader.c b/library/mps_reader.c index ac2955fecf..c23446cff2 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 @@ int mbedtls_mps_reader_reclaim( mbedtls_mps_reader *rd, (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 28b05bb797..dc0577daab 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 @@ void mbedtls_mps_trace_indent( int level, mbedtls_mps_trace_type ty ) } #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 d67e7d2275..57a84cb12c 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 ) {