diff --git a/library/CMakeLists.txt b/library/CMakeLists.txt index 2c1bccb296..220fbf92b7 100644 --- a/library/CMakeLists.txt +++ b/library/CMakeLists.txt @@ -47,8 +47,8 @@ set(src_crypto md4.c md5.c memory_buffer_alloc.c - mps/reader.c - mps/trace.o + mps_reader.c + mps_trace.c nist_kw.c oid.c padlock.c diff --git a/library/Makefile b/library/Makefile index 0fb6eeb569..419291acf7 100644 --- a/library/Makefile +++ b/library/Makefile @@ -104,8 +104,8 @@ OBJS_CRYPTO= \ md4.o \ md5.o \ memory_buffer_alloc.o \ - mps/reader.o \ - mps/trace.o \ + mps_reader.o \ + mps_trace.o \ nist_kw.o \ oid.o \ padlock.o \ diff --git a/library/mps/common.h b/library/mps_common.h similarity index 100% rename from library/mps/common.h rename to library/mps_common.h diff --git a/library/mps/error.h b/library/mps_error.h similarity index 100% rename from library/mps/error.h rename to library/mps_error.h diff --git a/library/mps/reader.c b/library/mps_reader.c similarity index 99% rename from library/mps/reader.c rename to library/mps_reader.c index 791b8bd72d..e6fbb07085 100644 --- a/library/mps/reader.c +++ b/library/mps_reader.c @@ -19,9 +19,9 @@ * This file is part of Mbed TLS (https://tls.mbed.org) */ -#include "reader.h" -#include "common.h" -#include "trace.h" +#include "mps_reader.h" +#include "mps_common.h" +#include "mps_trace.h" #include diff --git a/library/mps/reader.h b/library/mps_reader.h similarity index 99% rename from library/mps/reader.h rename to library/mps_reader.h index 5801e1c877..403917067b 100644 --- a/library/mps/reader.h +++ b/library/mps_reader.h @@ -116,8 +116,8 @@ #include -#include "common.h" -#include "error.h" +#include "mps_common.h" +#include "mps_error.h" struct mbedtls_reader; typedef struct mbedtls_reader mbedtls_reader; diff --git a/library/mps/trace.c b/library/mps_trace.c similarity index 98% rename from library/mps/trace.c rename to library/mps_trace.c index 61965dca10..06c6e2668a 100644 --- a/library/mps/trace.c +++ b/library/mps_trace.c @@ -19,11 +19,11 @@ * This file is part of Mbed TLS (https://tls.mbed.org) */ -#include "common.h" +#include "mps_common.h" #if defined(MBEDTLS_MPS_TRACE) -#include "trace.h" +#include "mps_trace.h" #include static int trace_depth_ = 0; diff --git a/library/mps/trace.h b/library/mps_trace.h similarity index 99% rename from library/mps/trace.h rename to library/mps_trace.h index b1da7ede2d..f03ba9a422 100644 --- a/library/mps/trace.h +++ b/library/mps_trace.h @@ -27,10 +27,9 @@ #define MBEDTLS_MPS_TRACE_H #include "common.h" +#include "mps_common.h" +#include "mps_trace.h" -#include "../common.h" - -#include "trace.h" #if defined(MBEDTLS_PLATFORM_C) #include "mbedtls/platform.h" #else diff --git a/tests/suites/test_suite_mps.function b/tests/suites/test_suite_mps.function index f2040f8f60..3c841631f3 100644 --- a/tests/suites/test_suite_mps.function +++ b/tests/suites/test_suite_mps.function @@ -3,7 +3,7 @@ #include /* TODO: How are test suites supposed to include internal headers? */ -#include "../library/mps/reader.h" +#include "../library/mps_reader.h" /* * Compile-time configuration for test suite.