Skip to content

Commit

Permalink
Remove unneeded namesapcing in header files
Browse files Browse the repository at this point in the history
Remove the `mbedtls` namesapcing in the `#include` in header files
Resolves issue Mbed-TLS#857
  • Loading branch information
Ron Eldor authored and Ron Eldor committed May 14, 2017
1 parent af610a0 commit 983b82a
Show file tree
Hide file tree
Showing 13 changed files with 20 additions and 14 deletions.
6 changes: 6 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
mbed TLS ChangeLog (Sorted per branch, date)

= mbed TLS x.x.x branch released xxxx-xx-xx

Bugfix
* Fix namespacing in header files. REmove the `mbedtls` namespacing in
the `#include` in the header files. Resolves #857

= mbed TLS 2.4.2 branch released 2017-03-08

Security
Expand Down
2 changes: 1 addition & 1 deletion configs/config-ccm-psk-tls1_2.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,6 @@
*/
#define MBEDTLS_SSL_MAX_CONTENT_LEN 512

#include "mbedtls/check_config.h"
#include "check_config.h"

#endif /* MBEDTLS_CONFIG_H */
2 changes: 1 addition & 1 deletion configs/config-mini-tls1_1.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,6 @@
/* For testing with compat.sh */
#define MBEDTLS_FS_IO

#include "mbedtls/check_config.h"
#include "check_config.h"

#endif /* MBEDTLS_CONFIG_H */
2 changes: 1 addition & 1 deletion configs/config-picocoin.h
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,6 @@
#define MBEDTLS_SHA1_C
#define MBEDTLS_SHA256_C

#include "mbedtls/check_config.h"
#include "check_config.h"

#endif /* MBEDTLS_CONFIG_H */
2 changes: 1 addition & 1 deletion configs/config-suite-b.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,6 @@
*/
#define MBEDTLS_SSL_MAX_CONTENT_LEN 1024

#include "mbedtls/check_config.h"
#include "check_config.h"

#endif /* MBEDTLS_CONFIG_H */
2 changes: 1 addition & 1 deletion configs/config-thread.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,6 @@
/* Save ROM and a few bytes of RAM by specifying our own ciphersuite list */
#define MBEDTLS_SSL_CIPHERSUITES MBEDTLS_TLS_ECJPAKE_WITH_AES_128_CCM_8

#include "mbedtls/check_config.h"
#include "check_config.h"

#endif /* MBEDTLS_CONFIG_H */
2 changes: 1 addition & 1 deletion include/mbedtls/cmac.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#ifndef MBEDTLS_CMAC_H
#define MBEDTLS_CMAC_H

#include "mbedtls/cipher.h"
#include "cipher.h"

#ifdef __cplusplus
extern "C" {
Expand Down
2 changes: 1 addition & 1 deletion include/mbedtls/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -2639,7 +2639,7 @@
/* \} name SECTION: Customisation configuration options */

/* Target and application specific configurations */
//#define YOTTA_CFG_MBEDTLS_TARGET_CONFIG_FILE "mbedtls/target_config.h"
//#define YOTTA_CFG_MBEDTLS_TARGET_CONFIG_FILE "target_config.h"

#if defined(TARGET_LIKE_MBED) && defined(YOTTA_CFG_MBEDTLS_TARGET_CONFIG_FILE)
#include YOTTA_CFG_MBEDTLS_TARGET_CONFIG_FILE
Expand Down
2 changes: 1 addition & 1 deletion include/mbedtls/ctr_drbg.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#include "aes.h"

#if defined(MBEDTLS_THREADING_C)
#include "mbedtls/threading.h"
#include "threading.h"
#endif

#define MBEDTLS_ERR_CTR_DRBG_ENTROPY_SOURCE_FAILED -0x0034 /**< The entropy source failed. */
Expand Down
2 changes: 1 addition & 1 deletion include/mbedtls/hmac_drbg.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#include "md.h"

#if defined(MBEDTLS_THREADING_C)
#include "mbedtls/threading.h"
#include "threading.h"
#endif

/*
Expand Down
6 changes: 3 additions & 3 deletions include/mbedtls/net.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* \file net.h
*
* \brief Deprecated header file that includes mbedtls/net_sockets.h
* \brief Deprecated header file that includes net_sockets.h
*
* Copyright (C) 2006-2016, ARM Limited, All Rights Reserved
* SPDX-License-Identifier: Apache-2.0
Expand All @@ -20,11 +20,11 @@
*
* This file is part of mbed TLS (https://tls.mbed.org)
*
* \deprecated Superseded by mbedtls/net_sockets.h
* \deprecated Superseded by net_sockets.h
*/

#if !defined(MBEDTLS_DEPRECATED_REMOVED)
#include "mbedtls/net_sockets.h"
#include "net_sockets.h"
#if defined(MBEDTLS_DEPRECATED_WARNING)
#warning "Deprecated header file: Superseded by mbedtls/net_sockets.h"
#endif /* MBEDTLS_DEPRECATED_WARNING */
Expand Down
2 changes: 1 addition & 1 deletion include/mbedtls/platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#endif

#if defined(MBEDTLS_HAVE_TIME)
#include "mbedtls/platform_time.h"
#include "platform_time.h"
#endif

#ifdef __cplusplus
Expand Down
2 changes: 1 addition & 1 deletion include/mbedtls/ssl.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
#endif

#if defined(MBEDTLS_HAVE_TIME)
#include "mbedtls/platform_time.h"
#include "platform_time.h"
#endif

/*
Expand Down

0 comments on commit 983b82a

Please sign in to comment.