Skip to content

Commit b41e899

Browse files
krish2718frkv
authored andcommitted
Do not use generic header names
Zephyr has a global list of include directories that is applicable for all modules unless specifically excluded by using "targets", and using a generic named header can cause issues if there are duplicate headers files and depending on the inclusion order. So, rename the header with module prefix to avoid naming collision. Signed-off-by: Chaitanya Tata <Chaitanya.Tata@nordicsemi.no>
1 parent b8dfab5 commit b41e899

26 files changed

+25
-25
lines changed

library/bignum_mod.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
#ifndef MBEDTLS_BIGNUM_MOD_H
7070
#define MBEDTLS_BIGNUM_MOD_H
7171

72-
#include "common.h"
72+
#include "oberon_psa_common.h"
7373

7474
#if defined(MBEDTLS_BIGNUM_C)
7575
#include "mbedtls/bignum.h"

library/constant_time.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#include <stdint.h>
1414
#include <limits.h>
1515

16-
#include "common.h"
16+
#include "oberon_psa_common.h"
1717
#include "constant_time_internal.h"
1818
#include "mbedtls/constant_time.h"
1919
#include "mbedtls/error.h"

library/constant_time_impl.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
#include <stddef.h>
1212

13-
#include "common.h"
13+
#include "oberon_psa_common.h"
1414

1515
#if defined(MBEDTLS_BIGNUM_C)
1616
#include "mbedtls/bignum.h"

library/constant_time_internal.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#include <stdint.h>
1212
#include <stddef.h>
1313

14-
#include "common.h"
14+
#include "oberon_psa_common.h"
1515

1616
#if defined(MBEDTLS_BIGNUM_C)
1717
#include "mbedtls/bignum.h"

library/md_psa.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#ifndef MBEDTLS_MD_PSA_H
1111
#define MBEDTLS_MD_PSA_H
1212

13-
#include "common.h"
13+
#include "oberon_psa_common.h"
1414

1515
#include "mbedtls/md.h"
1616
#include "psa/crypto.h"
File renamed without changes.

library/platform.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
66
*/
77

8-
#include "common.h"
8+
#include "oberon_psa_common.h"
99

1010
#if defined(MBEDTLS_PLATFORM_C)
1111

library/platform_util.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#define _GNU_SOURCE
2121
#endif
2222

23-
#include "common.h"
23+
#include "oberon_psa_common.h"
2424

2525
#include "mbedtls/platform_util.h"
2626
#include "mbedtls/platform.h"

library/psa_crypto.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* NOTICE: This file has been modified by Oberon microsystems AG.
1111
*/
1212

13-
#include "common.h"
13+
#include "oberon_psa_common.h"
1414
#include "psa_crypto_core_common.h"
1515

1616
#if defined(MBEDTLS_PSA_CRYPTO_C)

library/psa_crypto_client.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
77
*/
88

9-
#include "common.h"
9+
#include "oberon_psa_common.h"
1010
#include "psa/crypto.h"
1111

1212
#if defined(MBEDTLS_PSA_CRYPTO_CLIENT)

library/psa_crypto_driver_wrappers.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
* NOTICE: This file has been modified by Oberon microsystems AG.
2323
*/
2424

25-
#include "common.h"
25+
#include "oberon_psa_common.h"
2626
#include "psa/crypto.h"
2727
#include "psa_crypto_core.h"
2828
#include "psa_crypto_driver_wrappers.h"

library/psa_crypto_invasive.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#include "psa/build_info.h"
2727

2828
#include "psa/crypto.h"
29-
#include "common.h"
29+
#include "oberon_psa_common.h"
3030

3131
#include "mbedtls/entropy.h"
3232

library/psa_crypto_slot_management.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
77
*/
88

9-
#include "common.h"
9+
#include "oberon_psa_common.h"
1010

1111
#if defined(MBEDTLS_PSA_CRYPTO_C)
1212

library/psa_crypto_storage.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
77
*/
88

9-
#include "common.h"
9+
#include "oberon_psa_common.h"
1010

1111
#if defined(MBEDTLS_PSA_CRYPTO_STORAGE_C)
1212

library/psa_its_file.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
77
*/
88

9-
#include "common.h"
9+
#include "oberon_psa_common.h"
1010

1111
#if defined(MBEDTLS_PSA_ITS_FILE_C)
1212

library/threading.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#define _POSIX_C_SOURCE 200112L
1414
#endif
1515

16-
#include "common.h"
16+
#include "oberon_psa_common.h"
1717

1818
#if defined(MBEDTLS_THREADING_C)
1919

oberon/platforms/demo/library/psa_crypto_driver_wrappers.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
* NOTICE: This file has been modified by Oberon microsystems AG.
2323
*/
2424

25-
#include "common.h"
25+
#include "oberon_psa_common.h"
2626
#include "psa/crypto.h"
2727
#include "psa_crypto_core.h"
2828
#include "psa_crypto_driver_wrappers.h"

oberon/platforms/nordic_nrf/library/psa_crypto_driver_wrappers.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
* NOTICE: This file has been modified by Oberon microsystems AG.
2323
*/
2424

25-
#include "common.h"
25+
#include "oberon_psa_common.h"
2626
#include "psa/crypto.h"
2727
#include "psa_crypto_core.h"
2828
#include "psa_crypto_driver_wrappers.h"

programs/ssl/library/md.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
1010
*/
1111

12-
#include "common.h"
12+
#include "oberon_psa_common.h"
1313

1414
/*
1515
* Availability of functions in this module is controlled by two

programs/ssl/library/psa_util.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
77
*/
88

9-
#include "common.h"
9+
#include "oberon_psa_common.h"
1010

1111
/* This is needed for MBEDTLS_ERR_XXX macros */
1212
#include <mbedtls/error.h>

tests/generated/test_suite_psa_crypto.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ static int restore_output(FILE *out_stream, int dup_fd)
167167
#include "mbedtls/asn1.h"
168168
#include "mbedtls/asn1write.h"
169169
#include "mbedtls/oid.h"
170-
#include "common.h"
170+
#include "oberon_psa_common.h"
171171

172172
#include "mbedtls/psa_util.h"
173173

tests/generated/test_suite_psa_crypto.pbkdf2.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ static int restore_output(FILE *out_stream, int dup_fd)
167167
#include "mbedtls/asn1.h"
168168
#include "mbedtls/asn1write.h"
169169
#include "mbedtls/oid.h"
170-
#include "common.h"
170+
#include "oberon_psa_common.h"
171171

172172
#include "mbedtls/psa_util.h"
173173

tests/generated/test_suite_psa_crypto_memory.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ static int restore_output(FILE *out_stream, int dup_fd)
165165
#line 2 "tests/suites/test_suite_psa_crypto_memory.function"
166166
#include <stdint.h>
167167

168-
#include "common.h"
168+
#include "oberon_psa_common.h"
169169

170170
#include "psa/crypto.h"
171171

tests/include/test/macros.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#if defined(MBEDTLS_MEMORY_BUFFER_ALLOC_C)
2222
#include "mbedtls/memory_buffer_alloc.h"
2323
#endif
24-
#include "common.h"
24+
#include "oberon_psa_common.h"
2525

2626
/**
2727
* \brief This macro tests the expression passed to it as a test step or

tests/src/asn1parse_min.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
* NOTICE: This file has been modified by Oberon microsystems AG.
2222
*/
2323

24-
#include "common.h"
24+
#include "oberon_psa_common.h"
2525

2626
#if defined(MBEDTLS_ASN1_PARSE_C)
2727

tests/src/asn1write_min.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
* NOTICE: This file has been modified by Oberon microsystems AG.
2222
*/
2323

24-
#include "common.h"
24+
#include "oberon_psa_common.h"
2525

2626
#if defined(MBEDTLS_ASN1_WRITE_C)
2727

0 commit comments

Comments
 (0)