#include <stdio.h>
#include <string.h>
-#include "tls/config.h"
+#include "mbedtls/config.h"
#if !defined(MBEDTLS_SSL_CLI_C) || !defined(MBEDTLS_SSL_PROTO_DTLS) || \
!defined(MBEDTLS_NET_C) || !defined(MBEDTLS_TIMING_C) || \
#define mbedtls_printf printf
#define mbedtls_fprintf fprintf
-#include "tls/net.h"
-#include "tls/debug.h"
-#include "tls/ssl.h"
-#include "tls/entropy.h"
-#include "tls/ctr_drbg.h"
-#include "tls/error.h"
-#include "tls/certs.h"
-#include "tls/timing.h"
+#include "mbedtls/net.h"
+#include "mbedtls/debug.h"
+#include "mbedtls/ssl.h"
+#include "mbedtls/entropy.h"
+#include "mbedtls/ctr_drbg.h"
+#include "mbedtls/error.h"
+#include "mbedtls/certs.h"
+#include "mbedtls/timing.h"
#define SERVER_PORT "4433"
#define SERVER_NAME "localhost"
#include <string.h>
#include <stdlib.h>
-#include "tls/config.h"
+#include "mbedtls/config.h"
#if !defined(MBEDTLS_SSL_SRV_C) || !defined(MBEDTLS_SSL_PROTO_DTLS) || \
!defined(MBEDTLS_SSL_COOKIE_C) || !defined(MBEDTLS_NET_C) || \
#define mbedtls_printf printf
#define mbedtls_fprintf fprintf
-#include "tls/entropy.h"
-#include "tls/ctr_drbg.h"
-#include "tls/certs.h"
-#include "tls/x509.h"
-#include "tls/ssl.h"
-#include "tls/ssl_cookie.h"
-#include "tls/net.h"
-#include "tls/error.h"
-#include "tls/debug.h"
-#include "tls/timing.h"
+#include "mbedtls/entropy.h"
+#include "mbedtls/ctr_drbg.h"
+#include "mbedtls/certs.h"
+#include "mbedtls/x509.h"
+#include "mbedtls/ssl.h"
+#include "mbedtls/ssl_cookie.h"
+#include "mbedtls/net.h"
+#include "mbedtls/error.h"
+#include "mbedtls/debug.h"
+#include "mbedtls/timing.h"
#if defined(MBEDTLS_SSL_CACHE_C)
-#include "tls/ssl_cache.h"
+#include "mbedtls/ssl_cache.h"
#endif
#define READ_TIMEOUT_MS 10000 /* 5 seconds */
static struct timeval rt;
#ifdef CONFIG_HW_RSA
-#include "tls/sss_key.h"
-#include "tls/see_api.h"
+#include "mbedtls/sss_key.h"
+#include "mbedtls/see_api.h"
#define EASY_CA_KEY_INDEX 1
#define EASY_DEV_KEY_INDEX 2
#include "../../../external/wakaama/core/liblwm2m.h"
#ifdef WITH_MBEDTLS
-#include <tls/easy_tls.h>
+#include "mbedtls/easy_tls.h"
#endif
#define LWM2M_STANDARD_PORT_STR "5683"
#include "connection.h"
#ifdef WITH_MBEDTLS
-#include "tls/certs.h"
-#include "tls/easy_tls.h"
+#include "mbedtls/certs.h"
+#include "mbedtls/easy_tls.h"
#define LWM2M_CIPHERSUIT "TLS-PSK-WITH-AES-128-CBC-SHA"
#endif
#include <tinyara/ascii.h>
#ifdef WITH_MBEDTLS
-#include "tls/certs.h"
-#include "tls/easy_tls.h"
+#include "mbedtls/certs.h"
+#include "mbedtls/easy_tls.h"
#endif
#define MAX_PACKET_SIZE 1024
#include <mqtt/mqtt_api.h>
#if defined(CONFIG_NETUTILS_MQTT_SECURITY)
-#include "tls/x509_crt.h"
-#include "tls/pem.h"
+#include "mbedtls/x509_crt.h"
+#include "mbedtls/pem.h"
#endif
/****************************************************************************
#include <mqtt/mqtt_api.h>
#if defined(CONFIG_NETUTILS_MQTT_SECURITY)
-#include "tls/x509_crt.h"
-#include "tls/pem.h"
+#include "mbedtls/x509_crt.h"
+#include "mbedtls/pem.h"
#endif
/****************************************************************************
#include <stdlib.h>
#include <string.h>
-#include "tls/timing.h"
-
-#include "tls/md4.h"
-#include "tls/md5.h"
-#include "tls/ripemd160.h"
-#include "tls/sha1.h"
-#include "tls/sha256.h"
-#include "tls/sha512.h"
-#include "tls/arc4.h"
-#include "tls/des.h"
-#include "tls/aes.h"
-#include "tls/blowfish.h"
-#include "tls/camellia.h"
-#include "tls/gcm.h"
-#include "tls/ccm.h"
-#include "tls/cmac.h"
-#include "tls/havege.h"
-#include "tls/ctr_drbg.h"
-#include "tls/hmac_drbg.h"
-#include "tls/rsa.h"
-#include "tls/dhm.h"
-#include "tls/ecdsa.h"
-#include "tls/ecdh.h"
-#include "tls/error.h"
+#include "mbedtls/timing.h"
+
+#include "mbedtls/md4.h"
+#include "mbedtls/md5.h"
+#include "mbedtls/ripemd160.h"
+#include "mbedtls/sha1.h"
+#include "mbedtls/sha256.h"
+#include "mbedtls/sha512.h"
+#include "mbedtls/arc4.h"
+#include "mbedtls/des.h"
+#include "mbedtls/aes.h"
+#include "mbedtls/blowfish.h"
+#include "mbedtls/camellia.h"
+#include "mbedtls/gcm.h"
+#include "mbedtls/ccm.h"
+#include "mbedtls/cmac.h"
+#include "mbedtls/havege.h"
+#include "mbedtls/ctr_drbg.h"
+#include "mbedtls/hmac_drbg.h"
+#include "mbedtls/rsa.h"
+#include "mbedtls/dhm.h"
+#include "mbedtls/ecdsa.h"
+#include "mbedtls/ecdh.h"
+#include "mbedtls/error.h"
#define mbedtls_exit exit
#define mbedtls_snprintf snprintf
#include <stdlib.h>
#include <string.h>
-#include "tls/config.h"
+#include "mbedtls/config.h"
#if !defined(MBEDTLS_ENTROPY_C) || \
!defined(MBEDTLS_SSL_TLS_C) || !defined(MBEDTLS_SSL_CLI_C) || \
#define mbedtls_fprintf fprintf
#define mbedtls_snprintf snprintf
-#include "tls/net.h"
-#include "tls/ssl.h"
-#include "tls/entropy.h"
-#include "tls/ctr_drbg.h"
-#include "tls/certs.h"
-#include "tls/x509.h"
-#include "tls/error.h"
-#include "tls/debug.h"
-#include "tls/timing.h"
+#include "mbedtls/net.h"
+#include "mbedtls/ssl.h"
+#include "mbedtls/entropy.h"
+#include "mbedtls/ctr_drbg.h"
+#include "mbedtls/certs.h"
+#include "mbedtls/x509.h"
+#include "mbedtls/error.h"
+#include "mbedtls/debug.h"
+#include "mbedtls/timing.h"
#ifdef CONFIG_EXAMPLES_TLS_ARTIK_KEY
-#include "tls/see_api.h"
+#include "mbedtls/see_api.h"
#endif
/*
#include <stdio.h>
#include <string.h>
-#include "tls/config.h"
-#include "tls/entropy.h"
-#include "tls/hmac_drbg.h"
-#include "tls/ctr_drbg.h"
-#include "tls/dhm.h"
-#include "tls/gcm.h"
-#include "tls/ccm.h"
-#include "tls/md2.h"
-#include "tls/md4.h"
-#include "tls/md5.h"
-#include "tls/ripemd160.h"
-#include "tls/sha1.h"
-#include "tls/sha256.h"
-#include "tls/sha512.h"
-#include "tls/arc4.h"
-#include "tls/des.h"
-#include "tls/aes.h"
-#include "tls/camellia.h"
-#include "tls/base64.h"
-#include "tls/bignum.h"
-#include "tls/rsa.h"
-#include "tls/x509.h"
-#include "tls/xtea.h"
-#include "tls/pkcs5.h"
-#include "tls/ecp.h"
-#include "tls/timing.h"
+#include "mbedtls/config.h"
+#include "mbedtls/entropy.h"
+#include "mbedtls/hmac_drbg.h"
+#include "mbedtls/ctr_drbg.h"
+#include "mbedtls/dhm.h"
+#include "mbedtls/gcm.h"
+#include "mbedtls/ccm.h"
+#include "mbedtls/md2.h"
+#include "mbedtls/md4.h"
+#include "mbedtls/md5.h"
+#include "mbedtls/ripemd160.h"
+#include "mbedtls/sha1.h"
+#include "mbedtls/sha256.h"
+#include "mbedtls/sha512.h"
+#include "mbedtls/arc4.h"
+#include "mbedtls/des.h"
+#include "mbedtls/aes.h"
+#include "mbedtls/camellia.h"
+#include "mbedtls/base64.h"
+#include "mbedtls/bignum.h"
+#include "mbedtls/rsa.h"
+#include "mbedtls/x509.h"
+#include "mbedtls/xtea.h"
+#include "mbedtls/pkcs5.h"
+#include "mbedtls/ecp.h"
+#include "mbedtls/timing.h"
#define mbedtls_printf printf
/*
#include <stdlib.h>
#include <string.h>
-#include "tls/config.h"
+#include "mbedtls/config.h"
#if !defined(MBEDTLS_ENTROPY_C) || \
!defined(MBEDTLS_SSL_TLS_C) || !defined(MBEDTLS_SSL_SRV_C) || \
#define mbedtls_fprintf fprintf
#define mbedtls_printf printf
-#include "tls/net.h"
-#include "tls/ssl.h"
-#include "tls/entropy.h"
-#include "tls/ctr_drbg.h"
-#include "tls/certs.h"
-#include "tls/x509.h"
-#include "tls/error.h"
-#include "tls/debug.h"
-#include "tls/timing.h"
+#include "mbedtls/net.h"
+#include "mbedtls/ssl.h"
+#include "mbedtls/entropy.h"
+#include "mbedtls/ctr_drbg.h"
+#include "mbedtls/certs.h"
+#include "mbedtls/x509.h"
+#include "mbedtls/error.h"
+#include "mbedtls/debug.h"
+#include "mbedtls/timing.h"
#if defined(MBEDTLS_SSL_CACHE_C)
-#include "tls/ssl_cache.h"
+#include "mbedtls/ssl_cache.h"
#endif
#if defined(MBEDTLS_SSL_TICKET_C)
-#include "tls/ssl_ticket.h"
+#include "mbedtls/ssl_ticket.h"
#endif
#if defined(MBEDTLS_SSL_COOKIE_C)
-#include "tls/ssl_cookie.h"
+#include "mbedtls/ssl_cookie.h"
#endif
#if defined(MBEDTLS_MEMORY_BUFFER_ALLOC_C)
-#include "tls/memory_buffer_alloc.h"
+#include "mbedtls/memory_buffer_alloc.h"
#endif
#if defined(MBEDTLS_SSL_SERVER_NAME_INDICATION) && defined(MBEDTLS_FS_IO)
#include <protocols/websocket.h>
-#include <tls/config.h>
-#include <tls/entropy.h>
-#include <tls/ctr_drbg.h>
-#include <tls/certs.h>
-#include <tls/x509.h>
-#include <tls/ssl.h>
-#include <tls/net.h>
-#include <tls/error.h>
-#include <tls/debug.h>
-#include <tls/ssl_cache.h>
+#include "mbedtls/config.h"
+#include "mbedtls/entropy.h"
+#include "mbedtls/ctr_drbg.h"
+#include "mbedtls/certs.h"
+#include "mbedtls/x509.h"
+#include "mbedtls/ssl.h"
+#include "mbedtls/net.h"
+#include "mbedtls/error.h"
+#include "mbedtls/debug.h"
+#include "mbedtls/ssl_cache.h"
#include <sys/socket.h>
#include "includes.h"
#include "common.h"
-#include "tls/bignum.h"
+#include "mbedtls/bignum.h"
#include "crypto.h"
int crypto_mod_exp(const u8 *base, size_t base_len, const u8 *power, size_t power_len, const u8 *modulus, size_t modulus_len, u8 *result, size_t *result_len)
#include "common.h"
#include "crypto.h"
-#include "tls/rsa.h"
-#include "tls/pkcs1.h"
-#include "tls/pkcs8.h"
+#include "mbedtls/rsa.h"
+#include "mbedtls/pkcs1.h"
+#include "mbedtls/pkcs8.h"
/* Dummy structures; these are just typecast to struct crypto_rsa_key */
struct crypto_public_key;
#include "common.h"
#include "tls.h"
-#include "tls/tlsv1_client.h"
-#include "tls/tlsv1_server.h"
+#include "mbedtls/tlsv1_client.h"
+#include "mbedtls/tlsv1_server.h"
static int tls_ref_count = 0;
include smtp/Make.defs
include netlib/Make.defs
include json/Make.defs
-
+include mbedtls/Make.defs
AOBJS = $(ASRCS:.S=$(OBJEXT))
COBJS = $(CSRCS:.c=$(OBJEXT))
#ifndef IOTSDKC_NETWORK_MBEDTLS_PLATFORM_H_H
-#include "tls/config.h"
-
-#include "tls/platform.h"
-#include "tls/net.h"
-#include "tls/ssl.h"
-#include "tls/entropy.h"
-#include "tls/ctr_drbg.h"
-#include "tls/certs.h"
-#include "tls/x509.h"
-#include "tls/error.h"
-#include "tls/debug.h"
-#include "tls/timing.h"
+#include "mbedtls/config.h"
+
+#include "mbedtls/platform.h"
+#include "mbedtls/net.h"
+#include "mbedtls/ssl.h"
+#include "mbedtls/entropy.h"
+#include "mbedtls/ctr_drbg.h"
+#include "mbedtls/certs.h"
+#include "mbedtls/x509.h"
+#include "mbedtls/error.h"
+#include "mbedtls/debug.h"
+#include "mbedtls/timing.h"
#ifdef __cplusplus
extern "C" {
#ifndef MBEDTLS_CMAC_H
#define MBEDTLS_CMAC_H
-#include "tls/cipher.h"
+#include "mbedtls/cipher.h"
#ifdef __cplusplus
extern "C" {
/*
* Save RAM at the expense of interoperability: do this only if you control
- * both ends of the connection! (See comments in "tls/ssl.h".)
+ * both ends of the connection! (See comments in "mbedtls/ssl.h".)
* The optimal size here depends on the typical size of records.
*/
#define MBEDTLS_SSL_MAX_CONTENT_LEN 512
/* For testing with compat.sh */
#define MBEDTLS_FS_IO
-#include "tls/check_config.h"
+#include "mbedtls/check_config.h"
#endif /* MBEDTLS_CONFIG_H */
/*
* Save RAM at the expense of interoperability: do this only if you control
- * both ends of the connection! (See coments in "tls/ssl.h".)
+ * both ends of the connection! (See coments in "mbedtls/ssl.h".)
* The minimum size here depends on the certificate chain used as well as the
* typical size of records.
*/
#define MBEDTLS_SSL_MAX_CONTENT_LEN 1024
-#include "tls/check_config.h"
+#include "mbedtls/check_config.h"
#endif /* MBEDTLS_CONFIG_H */
#include "aes.h"
#if defined(MBEDTLS_THREADING_C)
-#include "tls/threading.h"
+#include "mbedtls/threading.h"
#endif
#define MBEDTLS_ERR_CTR_DRBG_ENTROPY_SOURCE_FAILED -0x0034 /**< The entropy source failed. */
#include <debug.h>
-#include <tls/config.h>
-#include <tls/ssl.h>
-#include <tls/net.h>
-#include <tls/entropy.h>
-#include <tls/ctr_drbg.h>
-#include <tls/x509_crt.h>
-#include <tls/timing.h>
-#include <tls/ssl_cookie.h>
+#include "mbedtls/config.h"
+#include "mbedtls/ssl.h"
+#include "mbedtls/net.h"
+#include "mbedtls/entropy.h"
+#include "mbedtls/ctr_drbg.h"
+#include "mbedtls/x509_crt.h"
+#include "mbedtls/timing.h"
+#include "mbedtls/ssl_cookie.h"
#ifdef MBEDTLS_SSL_CACHE_C
-#include <tls/ssl_cache.h>
+#include "mbedtls/ssl_cache.h"
#endif
#define EASY_TLS_DEBUG ndbg
#include "md.h"
#if defined(MBEDTLS_THREADING_C)
-#include "tls/threading.h"
+#include "mbedtls/threading.h"
#endif
/*
*/
#if !defined(MBEDTLS_DEPRECATED_REMOVED)
-#include "tls/net_sockets.h"
+#include "mbedtls/net_sockets.h"
#if defined(MBEDTLS_DEPRECATED_WARNING)
#warning "Deprecated header file: Superseded by tls/net_sockets.h"
#endif /* MBEDTLS_DEPRECATED_WARNING */
#endif
#if defined(MBEDTLS_HAVE_TIME)
-#include "tls/platform_time.h"
+#include "mbedtls/platform_time.h"
#endif
#ifdef __cplusplus
* Included Files
****************************************************************************/
-#include "tls/see_api.h"
+#include "mbedtls/see_api.h"
/****************************************************************************
* Pre-processor Definitions
#endif
#if defined(MBEDTLS_HAVE_TIME)
-#include "tls/platform_time.h"
+#include "mbedtls/platform_time.h"
#endif
/*
#include <protocols/libcoap/coap_time.h>
#ifdef WITH_MBEDTLS
-#include "tls/certs.h"
-#include "tls/easy_tls.h"
+#include "mbedtls/certs.h"
+#include "mbedtls/easy_tls.h"
#define COAP_CIPHERSUIT "TLS-PSK-WITH-AES-128-CBC-SHA"
#endif
#include <sys/types.h>
#ifdef CONFIG_NET_SECURITY_TLS
-#include "tls/config.h"
-#include "tls/entropy.h"
-#include "tls/ctr_drbg.h"
-#include "tls/certs.h"
-#include "tls/x509.h"
-#include "tls/ssl.h"
-#include "tls/net.h"
-#include "tls/error.h"
-#include "tls/debug.h"
-#include "tls/ssl_cache.h"
+#include "mbedtls/config.h"
+#include "mbedtls/entropy.h"
+#include "mbedtls/ctr_drbg.h"
+#include "mbedtls/certs.h"
+#include "mbedtls/x509.h"
+#include "mbedtls/ssl.h"
+#include "mbedtls/net.h"
+#include "mbedtls/error.h"
+#include "mbedtls/debug.h"
+#include "mbedtls/ssl_cache.h"
#endif
#include <protocols/webserver/http_keyvalue_list.h>
#endif
#ifdef CONFIG_NET_SECURITY_TLS
-#include "tls/config.h"
-#include "tls/entropy.h"
-#include "tls/ctr_drbg.h"
-#include "tls/certs.h"
-#include "tls/x509.h"
-#include "tls/ssl.h"
-#include "tls/net.h"
-#include "tls/error.h"
-#include "tls/debug.h"
-#include "tls/ssl_cache.h"
+#include "mbedtls/config.h"
+#include "mbedtls/entropy.h"
+#include "mbedtls/ctr_drbg.h"
+#include "mbedtls/certs.h"
+#include "mbedtls/x509.h"
+#include "mbedtls/ssl.h"
+#include "mbedtls/net.h"
+#include "mbedtls/error.h"
+#include "mbedtls/debug.h"
+#include "mbedtls/ssl_cache.h"
#endif
/****************************************************************************
#include <protocols/wslay/wslay.h>
#include <tinyara/wqueue.h>
-#include "tls/config.h"
-#include "tls/entropy.h"
-#include "tls/ctr_drbg.h"
-#include "tls/certs.h"
-#include "tls/x509.h"
-#include "tls/ssl.h"
-#include "tls/net.h"
-#include "tls/error.h"
-#include "tls/debug.h"
-#include "tls/ssl_cache.h"
+#include "mbedtls/config.h"
+#include "mbedtls/entropy.h"
+#include "mbedtls/ctr_drbg.h"
+#include "mbedtls/certs.h"
+#include "mbedtls/x509.h"
+#include "mbedtls/ssl.h"
+#include "mbedtls/net.h"
+#include "mbedtls/error.h"
+#include "mbedtls/debug.h"
+#include "mbedtls/ssl_cache.h"
#define WEBSOCKET_DEBUG_PRINT
/**< websocket debug print option if defined, enables debug print */
dep_src_dir1 = os.path.join(tizenrt_os_dir, 'include')
dep_src_dir2 = os.path.join(tizenrt_os_dir, 'include/tinyara')
+dep_src_dir3 = os.path.join(tizenrt_os_dir, '../external/include')
dep_lib_dir = '/usr/lib/arm-none-eabi/include'
# Add directories to search for header files and external libraries
-env.AppendUnique(CPPPATH = [ dep_src_dir1, dep_src_dir2 ])
+env.AppendUnique(CPPPATH = [ dep_src_dir1, dep_src_dir2, dep_src_dir3 ])
env.AppendUnique(LIBPATH = [ dep_lib_dir ])
print env.get('CPPPATH')
#if defined(__WITH_DTLS__) || defined(__WITH_TLS__)
#ifdef __TIZENRT__
-#include "tls/ssl.h"
+#include "mbedtls/ssl.h"
#else
#include "mbedtls/ssl.h"
#endif
############################################################################
ifeq ($(CONFIG_NET_SECURITY_TLS),y)
-SRC_CRYPTO_CSRCS = aes.c aesni.c arc4.c \
- asn1parse.c asn1write.c base64.c \
- bignum.c blowfish.c camellia.c \
- ccm.c cipher.c cipher_wrap.c \
- cmac.c ctr_drbg.c des.c dhm.c \
- ecdh.c ecdsa.c ecjpake.c ecp.c \
- ecp_curves.c entropy.c entropy_poll.c \
- error.c gcm.c havege.c \
- hmac_drbg.c md.c md2.c \
- md4.c md5.c md_wrap.c \
- memory_buffer_alloc.c oid.c \
- padlock.c pem.c pk.c \
- pk_wrap.c pkcs12.c pkcs5.c \
- pkparse.c pkwrite.c platform.c \
- ripemd160.c rsa.c sha1.c \
- sha256.c sha512.c threading.c \
- timing.c version.c \
- version_features.c xtea.c
+SRC_CRYPTO_CSRCS = mbedtls/aes.c mbedtls/aesni.c mbedtls/arc4.c \
+ mbedtls/asn1parse.c mbedtls/asn1write.c mbedtls/base64.c \
+ mbedtls/bignum.c mbedtls/blowfish.c mbedtls/camellia.c \
+ mbedtls/ccm.c mbedtls/cipher.c mbedtls/cipher_wrap.c \
+ mbedtls/cmac.c mbedtls/ctr_drbg.c mbedtls/des.c mbedtls/dhm.c \
+ mbedtls/ecdh.c mbedtls/ecdsa.c mbedtls/ecjpake.c mbedtls/ecp.c \
+ mbedtls/ecp_curves.c mbedtls/entropy.c mbedtls/entropy_poll.c \
+ mbedtls/error.c mbedtls/gcm.c mbedtls/havege.c \
+ mbedtls/hmac_drbg.c mbedtls/md.c mbedtls/md2.c \
+ mbedtls/md4.c mbedtls/md5.c mbedtls/md_wrap.c \
+ mbedtls/memory_buffer_alloc.c mbedtls/oid.c \
+ mbedtls/padlock.c mbedtls/pem.c mbedtls/pk.c \
+ mbedtls/pk_wrap.c mbedtls/pkcs12.c mbedtls/pkcs5.c \
+ mbedtls/pkparse.c mbedtls/pkwrite.c mbedtls/platform.c \
+ mbedtls/ripemd160.c mbedtls/rsa.c mbedtls/sha1.c \
+ mbedtls/sha256.c mbedtls/sha512.c mbedtls/threading.c \
+ mbedtls/timing.c mbedtls/version.c \
+ mbedtls/version_features.c mbedtls/xtea.c
-SRC_X509_CSRCS = certs.c pkcs11.c x509.c \
- x509_create.c x509_crl.c x509_crt.c \
- x509_csr.c x509write_crt.c x509write_csr.c
+SRC_X509_CSRCS = mbedtls/certs.c mbedtls/pkcs11.c mbedtls/x509.c \
+ mbedtls/x509_create.c mbedtls/x509_crl.c mbedtls/x509_crt.c \
+ mbedtls/x509_csr.c mbedtls/x509write_crt.c mbedtls/x509write_csr.c
-SRC_TLS_CSRCS = debug.c net.c ssl_cache.c \
- ssl_ciphersuites.c ssl_tls.c \
- ssl_cli.c ssl_cookie.c ssl_srv.c \
- ssl_ticket.c easy_tls.c
+SRC_TLS_CSRCS = mbedtls/debug.c mbedtls/net.c mbedtls/ssl_cache.c \
+ mbedtls/ssl_ciphersuites.c mbedtls/ssl_tls.c \
+ mbedtls/ssl_cli.c mbedtls/ssl_cookie.c mbedtls/ssl_srv.c \
+ mbedtls/ssl_ticket.c mbedtls/easy_tls.c
ifeq ($(CONFIG_TLS_WITH_SSS),y)
SRC_SEE_CSRCS += see_api.c see_internal.c
TLS_CSRCS += $(SRC_CRYPTO_CSRCS) $(SRC_X509_CSRCS) $(SRC_TLS_CSRCS) $(SRC_SEE_CSRCS)
-DEPPATH += --dep-path tls
-VPATH += :tls
+CSRCS += $(TLS_CSRCS)
+
+DEPPATH += --dep-path mbedtls
+VPATH += :mbedtls
endif
* http://csrc.nist.gov/publications/fips/fips197/fips-197.pdf
*/
-#include "tls/config.h"
+#include "mbedtls/config.h"
#if defined(MBEDTLS_AES_C)
#include <string.h>
-#include "tls/aes.h"
+#include "mbedtls/aes.h"
#if defined(MBEDTLS_PADLOCK_C)
-#include "tls/padlock.h"
+#include "mbedtls/padlock.h"
#endif
#if defined(MBEDTLS_AESNI_C)
-#include "tls/aesni.h"
+#include "mbedtls/aesni.h"
#endif
#if defined(MBEDTLS_SELF_TEST)
#if defined(MBEDTLS_PLATFORM_C)
-#include "tls/platform.h"
+#include "mbedtls/platform.h"
#else
#include <stdio.h>
#define mbedtls_printf printf
* [CLMUL-WP] http://software.intel.com/en-us/articles/intel-carry-less-multiplication-instruction-and-its-usage-for-computing-the-gcm-mode/
*/
-#include "tls/config.h"
+#include "mbedtls/config.h"
#if defined(MBEDTLS_AESNI_C)
-#include "tls/aesni.h"
+#include "mbedtls/aesni.h"
#include <string.h>
* http://groups.google.com/group/sci.crypt/msg/10a300c9d21afca0
*/
-#include "tls/config.h"
+#include "mbedtls/config.h"
#if defined(MBEDTLS_ARC4_C)
-#include "tls/arc4.h"
+#include "mbedtls/arc4.h"
#include <string.h>
#if defined(MBEDTLS_SELF_TEST)
#if defined(MBEDTLS_PLATFORM_C)
-#include "tls/platform.h"
+#include "mbedtls/platform.h"
#else
#include <stdio.h>
#define mbedtls_printf printf
* This file is part of mbed TLS (https://tls.mbed.org)
*/
-#include "tls/config.h"
+#include "mbedtls/config.h"
#if defined(MBEDTLS_ASN1_PARSE_C)
-#include "tls/asn1.h"
+#include "mbedtls/asn1.h"
#include <string.h>
#if defined(MBEDTLS_BIGNUM_C)
-#include "tls/bignum.h"
+#include "mbedtls/bignum.h"
#endif
#if defined(MBEDTLS_PLATFORM_C)
-#include "tls/platform.h"
+#include "mbedtls/platform.h"
#else
#include <stdlib.h>
#define mbedtls_calloc calloc
* This file is part of mbed TLS (https://tls.mbed.org)
*/
-#include "tls/config.h"
+#include "mbedtls/config.h"
#if defined(MBEDTLS_ASN1_WRITE_C)
-#include "tls/asn1write.h"
+#include "mbedtls/asn1write.h"
#include <string.h>
#if defined(MBEDTLS_PLATFORM_C)
-#include "tls/platform.h"
+#include "mbedtls/platform.h"
#else
#include <stdlib.h>
#define mbedtls_calloc calloc
* This file is part of mbed TLS (https://tls.mbed.org)
*/
-#include "tls/config.h"
+#include "mbedtls/config.h"
#if defined(MBEDTLS_BASE64_C)
-#include "tls/base64.h"
+#include "mbedtls/base64.h"
#include <stdint.h>
#if defined(MBEDTLS_SELF_TEST)
#include <string.h>
#if defined(MBEDTLS_PLATFORM_C)
-#include "tls/platform.h"
+#include "mbedtls/platform.h"
#else
#include <stdio.h>
#define mbedtls_printf printf
*/
#if !defined(MBEDTLS_CONFIG_FILE)
-#include "tls/config.h"
+#include "mbedtls/config.h"
#else
#include MBEDTLS_CONFIG_FILE
#endif
#if defined(MBEDTLS_BIGNUM_C)
-#include "tls/bignum.h"
-#include "tls/bn_mul.h"
+#include "mbedtls/bignum.h"
+#include "mbedtls/bn_mul.h"
#include <string.h>
#if defined(MBEDTLS_PLATFORM_C)
-#include "tls/platform.h"
+#include "mbedtls/platform.h"
#else
#include <stdio.h>
#include <stdlib.h>
*
*/
-#include "tls/config.h"
+#include "mbedtls/config.h"
#if defined(MBEDTLS_BLOWFISH_C)
-#include "tls/blowfish.h"
+#include "mbedtls/blowfish.h"
#include <string.h>
* http://info.isl.ntt.co.jp/crypt/eng/camellia/dl/01espec.pdf
*/
-#include "tls/config.h"
+#include "mbedtls/config.h"
#if defined(MBEDTLS_CAMELLIA_C)
-#include "tls/camellia.h"
+#include "mbedtls/camellia.h"
#include <string.h>
#if defined(MBEDTLS_SELF_TEST)
#if defined(MBEDTLS_PLATFORM_C)
-#include "tls/platform.h"
+#include "mbedtls/platform.h"
#else
#include <stdio.h>
#define mbedtls_printf printf
* RFC 5116 "An Interface and Algorithms for Authenticated Encryption"
*/
-#include "tls/config.h"
+#include "mbedtls/config.h"
#if defined(MBEDTLS_CCM_C)
-#include "tls/ccm.h"
+#include "mbedtls/ccm.h"
#include <string.h>
#if defined(MBEDTLS_SELF_TEST) && defined(MBEDTLS_AES_C)
#if defined(MBEDTLS_PLATFORM_C)
-#include "tls/platform.h"
+#include "mbedtls/platform.h"
#else
#include <stdio.h>
#define mbedtls_printf printf
* This file is part of mbed TLS (https://tls.mbed.org)
*/
-#include "tls/config.h"
-#include "tls/certs.h"
+#include "mbedtls/config.h"
+#include "mbedtls/certs.h"
#if defined(MBEDTLS_CERTS_C)
* This file is part of mbed TLS (https://tls.mbed.org)
*/
-#include "tls/config.h"
+#include "mbedtls/config.h"
#if defined(MBEDTLS_CIPHER_C)
-#include "tls/cipher.h"
-#include "tls/cipher_internal.h"
+#include "mbedtls/cipher.h"
+#include "mbedtls/cipher_internal.h"
#include <stdlib.h>
#include <string.h>
#if defined(MBEDTLS_GCM_C)
-#include "tls/gcm.h"
+#include "mbedtls/gcm.h"
#endif
#if defined(MBEDTLS_CCM_C)
-#include "tls/ccm.h"
+#include "mbedtls/ccm.h"
#endif
#if defined(MBEDTLS_CMAC_C)
-#include "tls/cmac.h"
+#include "mbedtls/cmac.h"
#endif
#if defined(MBEDTLS_PLATFORM_C)
-#include "tls/platform.h"
+#include "mbedtls/platform.h"
#else
#define mbedtls_calloc calloc
#define mbedtls_free free
* This file is part of mbed TLS (https://tls.mbed.org)
*/
-#include "tls/config.h"
+#include "mbedtls/config.h"
#if defined(MBEDTLS_CIPHER_C)
-#include "tls/cipher_internal.h"
+#include "mbedtls/cipher_internal.h"
#if defined(MBEDTLS_AES_C)
-#include "tls/aes.h"
+#include "mbedtls/aes.h"
#endif
#if defined(MBEDTLS_ARC4_C)
-#include "tls/arc4.h"
+#include "mbedtls/arc4.h"
#endif
#if defined(MBEDTLS_CAMELLIA_C)
-#include "tls/camellia.h"
+#include "mbedtls/camellia.h"
#endif
#if defined(MBEDTLS_DES_C)
-#include "tls/des.h"
+#include "mbedtls/des.h"
#endif
#if defined(MBEDTLS_BLOWFISH_C)
-#include "tls/blowfish.h"
+#include "mbedtls/blowfish.h"
#endif
#if defined(MBEDTLS_GCM_C)
-#include "tls/gcm.h"
+#include "mbedtls/gcm.h"
#endif
#if defined(MBEDTLS_CCM_C)
-#include "tls/ccm.h"
+#include "mbedtls/ccm.h"
#endif
#if defined(MBEDTLS_CIPHER_NULL_CIPHER)
#endif
#if defined(MBEDTLS_PLATFORM_C)
-#include "tls/platform.h"
+#include "mbedtls/platform.h"
#else
#include <stdlib.h>
#define mbedtls_calloc calloc
*/
#if !defined(MBEDTLS_CONFIG_FILE)
-#include "tls/config.h"
+#include "mbedtls/config.h"
#else
#include MBEDTLS_CONFIG_FILE
#endif
#if defined(MBEDTLS_CMAC_C)
-#include "tls/cmac.h"
+#include "mbedtls/cmac.h"
#include <string.h>
#if defined(MBEDTLS_PLATFORM_C)
-#include "tls/platform.h"
+#include "mbedtls/platform.h"
#else
#include <stdlib.h>
#define mbedtls_calloc calloc
* http://csrc.nist.gov/publications/nistpubs/800-90/SP800-90revised_March2007.pdf
*/
-#include "tls/config.h"
+#include "mbedtls/config.h"
#if defined(MBEDTLS_CTR_DRBG_C)
-#include "tls/ctr_drbg.h"
+#include "mbedtls/ctr_drbg.h"
#include <string.h>
#if defined(MBEDTLS_SELF_TEST)
#if defined(MBEDTLS_PLATFORM_C)
-#include "tls/platform.h"
+#include "mbedtls/platform.h"
#else
#include <stdio.h>
#define mbedtls_printf printf
* This file is part of mbed TLS (https://tls.mbed.org)
*/
-#include "tls/config.h"
+#include "mbedtls/config.h"
#if defined(MBEDTLS_DEBUG_C)
#if defined(MBEDTLS_PLATFORM_C)
-#include "tls/platform.h"
+#include "mbedtls/platform.h"
#else
#include <stdlib.h>
#define mbedtls_calloc calloc
#define mbedtls_snprintf snprintf
#endif
-#include "tls/debug.h"
+#include "mbedtls/debug.h"
#include <stdarg.h>
#include <stdio.h>
* http://csrc.nist.gov/publications/fips/fips46-3/fips46-3.pdf
*/
-#include "tls/config.h"
+#include "mbedtls/config.h"
#if defined(MBEDTLS_DES_C)
-#include "tls/des.h"
+#include "mbedtls/des.h"
#include <string.h>
#if defined(MBEDTLS_SELF_TEST)
#if defined(MBEDTLS_PLATFORM_C)
-#include "tls/platform.h"
+#include "mbedtls/platform.h"
#else
#include <stdio.h>
#define mbedtls_printf printf
*
*/
-#include "tls/config.h"
+#include "mbedtls/config.h"
#if defined(MBEDTLS_DHM_C)
-#include "tls/dhm.h"
+#include "mbedtls/dhm.h"
#include <string.h>
#if defined(MBEDTLS_PEM_PARSE_C)
-#include "tls/pem.h"
+#include "mbedtls/pem.h"
#endif
#if defined(MBEDTLS_ASN1_PARSE_C)
-#include "tls/asn1.h"
+#include "mbedtls/asn1.h"
#endif
#if defined(MBEDTLS_PLATFORM_C)
-#include "tls/platform.h"
+#include "mbedtls/platform.h"
#else
#include <stdlib.h>
#include <stdio.h>
#endif
#if defined(CONFIG_HW_DH_PARAM)
-#include "tls/see_api.h"
-#include "tls/see_internal.h"
+#include "mbedtls/see_api.h"
+#include "mbedtls/see_internal.h"
#define DHM_MPI_EXPORT(X, n) \
MBEDTLS_MPI_CHK(mbedtls_mpi_write_binary(X, p + 2, n)); \
*p++ = (unsigned char)(n >> 8); \
#include <tinyara/config.h>
#include <stdio.h>
-#include <tls/easy_tls.h>
+#include "mbedtls/easy_tls.h"
/****************************************************************************
* Pre-processor Definitions
* RFC 4492
*/
-#include "tls/config.h"
+#include "mbedtls/config.h"
#if defined(MBEDTLS_ECDH_C)
-#include "tls/ecdh.h"
+#include "mbedtls/ecdh.h"
#include <string.h>
#if defined(CONFIG_HW_ECDH_PARAM)
-#include "tls/see_api.h"
-#include "tls/see_internal.h"
+#include "mbedtls/see_api.h"
+#include "mbedtls/see_internal.h"
#endif
/*
* SEC1 http://www.secg.org/index.php?action=secg,docs_secg
*/
-#include "tls/config.h"
+#include "mbedtls/config.h"
#if defined(MBEDTLS_ECDSA_C)
-#include "tls/ecdsa.h"
-#include "tls/asn1write.h"
+#include "mbedtls/ecdsa.h"
+#include "mbedtls/asn1write.h"
#include <string.h>
#if defined(MBEDTLS_ECDSA_DETERMINISTIC)
-#include "tls/hmac_drbg.h"
+#include "mbedtls/hmac_drbg.h"
#endif
/*
*/
#if !defined(MBEDTLS_CONFIG_FILE)
-#include "tls/config.h"
+#include "mbedtls/config.h"
#else
#include MBEDTLS_CONFIG_FILE
#endif
#if defined(MBEDTLS_ECJPAKE_C)
-#include "tls/ecjpake.h"
+#include "mbedtls/ecjpake.h"
#include <string.h>
#if defined(MBEDTLS_SELF_TEST)
#if defined(MBEDTLS_PLATFORM_C)
-#include "tls/platform.h"
+#include "mbedtls/platform.h"
#else
#include <stdio.h>
#define mbedtls_printf printf
* <http://eprint.iacr.org/2004/342.pdf>
*/
-#include "tls/config.h"
+#include "mbedtls/config.h"
#if defined(MBEDTLS_ECP_C)
-#include "tls/ecp.h"
+#include "mbedtls/ecp.h"
#include <string.h>
#if defined(MBEDTLS_PLATFORM_C)
-#include "tls/platform.h"
+#include "mbedtls/platform.h"
#else
#include <stdlib.h>
#include <stdio.h>
* This file is part of mbed TLS (https://tls.mbed.org)
*/
-#include "tls/config.h"
+#include "mbedtls/config.h"
#if defined(MBEDTLS_ECP_C)
-#include "tls/ecp.h"
+#include "mbedtls/ecp.h"
#include <string.h>
* This file is part of mbed TLS (https://tls.mbed.org)
*/
-#include "tls/config.h"
+#include "mbedtls/config.h"
#if defined(MBEDTLS_ENTROPY_C)
#warning "**** THIS BUILD IS *NOT* SUITABLE FOR PRODUCTION USE "
#endif
-#include "tls/entropy.h"
-#include "tls/entropy_poll.h"
+#include "mbedtls/entropy.h"
+#include "mbedtls/entropy_poll.h"
#include <string.h>
#endif
#if defined(MBEDTLS_ENTROPY_NV_SEED)
-#include "tls/platform.h"
+#include "mbedtls/platform.h"
#endif
#if defined(MBEDTLS_SELF_TEST)
#if defined(MBEDTLS_PLATFORM_C)
-#include "tls/platform.h"
+#include "mbedtls/platform.h"
#else
#include <stdio.h>
#define mbedtls_printf printf
#endif /* MBEDTLS_SELF_TEST */
#if defined(MBEDTLS_HAVEGE_C)
-#include "tls/havege.h"
+#include "mbedtls/havege.h"
#endif
/* Implementation that should never be optimized out by the compiler */
* This file is part of mbed TLS (https://tls.mbed.org)
*/
-#include "tls/config.h"
+#include "mbedtls/config.h"
#if defined(MBEDTLS_ENTROPY_C)
-#include "tls/entropy.h"
-#include "tls/entropy_poll.h"
+#include "mbedtls/entropy.h"
+#include "mbedtls/entropy_poll.h"
#if defined(MBEDTLS_TIMING_C)
#include <string.h>
-#include "tls/timing.h"
+#include "mbedtls/timing.h"
#endif
#if defined(MBEDTLS_HAVEGE_C)
-#include "tls/havege.h"
+#include "mbedtls/havege.h"
#endif
#if defined(MBEDTLS_ENTROPY_NV_SEED)
-#include "tls/platform.h"
+#include "mbedtls/platform.h"
#endif
#if !defined(MBEDTLS_NO_PLATFORM_ENTROPY)
#if defined(MBEDTLS_ENTROPY_HARDWARE_ALT)
#if defined(CONFIG_HW_RNG)
-#include "tls/see_api.h"
+#include "mbedtls/see_api.h"
int mbedtls_hardware_poll(void *data, unsigned char *output, size_t len, size_t *olen)
{
* This file is part of mbed TLS (https://tls.mbed.org)
*/
-#include "tls/config.h"
+#include "mbedtls/config.h"
#if defined(MBEDTLS_ERROR_C) || defined(MBEDTLS_ERROR_STRERROR_DUMMY)
-#include "tls/error.h"
+#include "mbedtls/error.h"
#include <string.h>
#endif
#if defined(MBEDTLS_PLATFORM_C)
-#include "tls/platform.h"
+#include "mbedtls/platform.h"
#else
#define mbedtls_snprintf snprintf
#endif
#include <stdio.h>
#if defined(MBEDTLS_AES_C)
-#include "tls/aes.h"
+#include "mbedtls/aes.h"
#endif
#if defined(MBEDTLS_BASE64_C)
-#include "tls/base64.h"
+#include "mbedtls/base64.h"
#endif
#if defined(MBEDTLS_BIGNUM_C)
-#include "tls/bignum.h"
+#include "mbedtls/bignum.h"
#endif
#if defined(MBEDTLS_BLOWFISH_C)
-#include "tls/blowfish.h"
+#include "mbedtls/blowfish.h"
#endif
#if defined(MBEDTLS_CAMELLIA_C)
-#include "tls/camellia.h"
+#include "mbedtls/camellia.h"
#endif
#if defined(MBEDTLS_CCM_C)
-#include "tls/ccm.h"
+#include "mbedtls/ccm.h"
#endif
#if defined(MBEDTLS_CIPHER_C)
-#include "tls/cipher.h"
+#include "mbedtls/cipher.h"
#endif
#if defined(MBEDTLS_CTR_DRBG_C)
-#include "tls/ctr_drbg.h"
+#include "mbedtls/ctr_drbg.h"
#endif
#if defined(MBEDTLS_DES_C)
-#include "tls/des.h"
+#include "mbedtls/des.h"
#endif
#if defined(MBEDTLS_DHM_C)
-#include "tls/dhm.h"
+#include "mbedtls/dhm.h"
#endif
#if defined(MBEDTLS_ECP_C)
-#include "tls/ecp.h"
+#include "mbedtls/ecp.h"
#endif
#if defined(MBEDTLS_ENTROPY_C)
-#include "tls/entropy.h"
+#include "mbedtls/entropy.h"
#endif
#if defined(MBEDTLS_GCM_C)
-#include "tls/gcm.h"
+#include "mbedtls/gcm.h"
#endif
#if defined(MBEDTLS_HMAC_DRBG_C)
-#include "tls/hmac_drbg.h"
+#include "mbedtls/hmac_drbg.h"
#endif
#if defined(MBEDTLS_MD_C)
-#include "tls/md.h"
+#include "mbedtls/md.h"
#endif
#if defined(MBEDTLS_NET_C)
-#include "tls/net.h"
+#include "mbedtls/net.h"
#endif
#if defined(MBEDTLS_OID_C)
-#include "tls/oid.h"
+#include "mbedtls/oid.h"
#endif
#if defined(MBEDTLS_PADLOCK_C)
-#include "tls/padlock.h"
+#include "mbedtls/padlock.h"
#endif
#if defined(MBEDTLS_PEM_PARSE_C) || defined(MBEDTLS_PEM_WRITE_C)
-#include "tls/pem.h"
+#include "mbedtls/pem.h"
#endif
#if defined(MBEDTLS_PK_C)
-#include "tls/pk.h"
+#include "mbedtls/pk.h"
#endif
#if defined(MBEDTLS_PKCS12_C)
-#include "tls/pkcs12.h"
+#include "mbedtls/pkcs12.h"
#endif
#if defined(MBEDTLS_PKCS5_C)
-#include "tls/pkcs5.h"
+#include "mbedtls/pkcs5.h"
#endif
#if defined(MBEDTLS_RSA_C)
-#include "tls/rsa.h"
+#include "mbedtls/rsa.h"
#endif
#if defined(MBEDTLS_SSL_TLS_C)
-#include "tls/ssl.h"
+#include "mbedtls/ssl.h"
#endif
#if defined(MBEDTLS_THREADING_C)
-#include "tls/threading.h"
+#include "mbedtls/threading.h"
#endif
#if defined(MBEDTLS_X509_USE_C) || defined(MBEDTLS_X509_CREATE_C)
-#include "tls/x509.h"
+#include "mbedtls/x509.h"
#endif
#if defined(MBEDTLS_XTEA_C)
-#include "tls/xtea.h"
+#include "mbedtls/xtea.h"
#endif
void mbedtls_strerror(int ret, char *buf, size_t buflen)
* [MGV] 4.1, pp. 12-13, to enhance speed without using too much memory.
*/
-#include "tls/config.h"
+#include "mbedtls/config.h"
#if defined(MBEDTLS_GCM_C)
-#include "tls/gcm.h"
+#include "mbedtls/gcm.h"
#include <string.h>
#if defined(MBEDTLS_AESNI_C)
-#include "tls/aesni.h"
+#include "mbedtls/aesni.h"
#endif
#if defined(MBEDTLS_SELF_TEST) && defined(MBEDTLS_AES_C)
#if defined(MBEDTLS_PLATFORM_C)
-#include "tls/platform.h"
+#include "mbedtls/platform.h"
#else
#include <stdio.h>
#define mbedtls_printf printf
* Contact: seznec(at)irisa_dot_fr - orocheco(at)irisa_dot_fr
*/
-#include "tls/config.h"
+#include "mbedtls/config.h"
#if defined(MBEDTLS_HAVEGE_C)
-#include "tls/havege.h"
-#include "tls/timing.h"
+#include "mbedtls/havege.h"
+#include "mbedtls/timing.h"
#include <string.h>
* References below are based on rev. 1 (January 2012).
*/
-#include "tls/config.h"
+#include "mbedtls/config.h"
#if defined(MBEDTLS_HMAC_DRBG_C)
-#include "tls/hmac_drbg.h"
+#include "mbedtls/hmac_drbg.h"
#include <string.h>
#if defined(MBEDTLS_SELF_TEST)
#if defined(MBEDTLS_PLATFORM_C)
-#include "tls/platform.h"
+#include "mbedtls/platform.h"
#else
#include <stdio.h>
#define mbedtls_printf printf
* This file is part of mbed TLS (https://tls.mbed.org)
*/
-#include "tls/config.h"
+#include "mbedtls/config.h"
#if defined(MBEDTLS_MD_C)
-#include "tls/md.h"
-#include "tls/md_internal.h"
+#include "mbedtls/md.h"
+#include "mbedtls/md_internal.h"
#if defined(MBEDTLS_PLATFORM_C)
-#include "tls/platform.h"
+#include "mbedtls/platform.h"
#else
#include <stdlib.h>
#define mbedtls_calloc calloc
* http://www.ietf.org/rfc/rfc1319.txt
*/
-#include "tls/config.h"
+#include "mbedtls/config.h"
#if defined(MBEDTLS_MD2_C)
-#include "tls/md2.h"
+#include "mbedtls/md2.h"
#include <string.h>
#if defined(MBEDTLS_SELF_TEST)
#if defined(MBEDTLS_PLATFORM_C)
-#include "tls/platform.h"
+#include "mbedtls/platform.h"
#else
#include <stdio.h>
#define mbedtls_printf printf
* http://www.ietf.org/rfc/rfc1320.txt
*/
-#include "tls/config.h"
+#include "mbedtls/config.h"
#if defined(MBEDTLS_MD4_C)
-#include "tls/md4.h"
+#include "mbedtls/md4.h"
#include <string.h>
#if defined(MBEDTLS_SELF_TEST)
#if defined(MBEDTLS_PLATFORM_C)
-#include "tls/platform.h"
+#include "mbedtls/platform.h"
#else
#include <stdio.h>
#define mbedtls_printf printf
* http://www.ietf.org/rfc/rfc1321.txt
*/
-#include "tls/config.h"
+#include "mbedtls/config.h"
#if defined(MBEDTLS_MD5_C)
-#include "tls/md5.h"
+#include "mbedtls/md5.h"
#include <string.h>
#if defined(MBEDTLS_SELF_TEST)
#if defined(MBEDTLS_PLATFORM_C)
-#include "tls/platform.h"
+#include "mbedtls/platform.h"
#else
#include <stdio.h>
#define mbedtls_printf printf
* This file is part of mbed TLS (https://tls.mbed.org)
*/
-#include "tls/config.h"
+#include "mbedtls/config.h"
#if defined(MBEDTLS_MD_C)
-#include "tls/md_internal.h"
+#include "mbedtls/md_internal.h"
#if defined(MBEDTLS_MD2_C)
-#include "tls/md2.h"
+#include "mbedtls/md2.h"
#endif
#if defined(MBEDTLS_MD4_C)
-#include "tls/md4.h"
+#include "mbedtls/md4.h"
#endif
#if defined(MBEDTLS_MD5_C)
-#include "tls/md5.h"
+#include "mbedtls/md5.h"
#endif
#if defined(MBEDTLS_RIPEMD160_C)
-#include "tls/ripemd160.h"
+#include "mbedtls/ripemd160.h"
#endif
#if defined(MBEDTLS_SHA1_C)
-#include "tls/sha1.h"
+#include "mbedtls/sha1.h"
#endif
#if defined(MBEDTLS_SHA256_C)
-#include "tls/sha256.h"
+#include "mbedtls/sha256.h"
#endif
#if defined(MBEDTLS_SHA512_C)
-#include "tls/sha512.h"
+#include "mbedtls/sha512.h"
#endif
#if defined(MBEDTLS_PLATFORM_C)
-#include "tls/platform.h"
+#include "mbedtls/platform.h"
#else
#include <stdlib.h>
#define mbedtls_calloc calloc
* This file is part of mbed TLS (https://tls.mbed.org)
*/
-#include "tls/config.h"
+#include "mbedtls/config.h"
#if defined(MBEDTLS_MEMORY_BUFFER_ALLOC_C)
-#include "tls/memory_buffer_alloc.h"
+#include "mbedtls/memory_buffer_alloc.h"
/* No need for the header guard as MBEDTLS_MEMORY_BUFFER_ALLOC_C
is dependent upon MBEDTLS_PLATFORM_C */
-#include "tls/platform.h"
+#include "mbedtls/platform.h"
#include <string.h>
#endif
#if defined(MBEDTLS_THREADING_C)
-#include "tls/threading.h"
+#include "mbedtls/threading.h"
#endif
/* Implementation that should never be optimized out by the compiler */
* This file is part of mbed TLS (https://tls.mbed.org)
*/
-#include "tls/config.h"
+#include "mbedtls/config.h"
#if defined(MBEDTLS_NET_C)
#endif
#if defined(MBEDTLS_PLATFORM_C)
-#include "tls/platform.h"
+#include "mbedtls/platform.h"
#else
#include <stdlib.h>
#endif
-#include "tls/net_sockets.h"
+#include "mbedtls/net_sockets.h"
#include <string.h>
#include <sys/types.h>
* This file is part of mbed TLS (https://tls.mbed.org)
*/
-#include "tls/config.h"
+#include "mbedtls/config.h"
#if defined(MBEDTLS_OID_C)
-#include "tls/oid.h"
-#include "tls/rsa.h"
+#include "mbedtls/oid.h"
+#include "mbedtls/rsa.h"
#include <stdio.h>
#include <string.h>
#if defined(MBEDTLS_PLATFORM_C)
-#include "tls/platform.h"
+#include "mbedtls/platform.h"
#else
#define mbedtls_snprintf snprintf
#endif
#if defined(MBEDTLS_X509_USE_C) || defined(MBEDTLS_X509_CREATE_C)
-#include "tls/x509.h"
+#include "mbedtls/x509.h"
#endif
/*
* programming_guide.pdf
*/
-#include "tls/config.h"
+#include "mbedtls/config.h"
#if defined(MBEDTLS_PADLOCK_C)
-#include "tls/padlock.h"
+#include "mbedtls/padlock.h"
#include <string.h>
* This file is part of mbed TLS (https://tls.mbed.org)
*/
-#include "tls/config.h"
+#include "mbedtls/config.h"
#if defined(MBEDTLS_PEM_PARSE_C) || defined(MBEDTLS_PEM_WRITE_C)
-#include "tls/pem.h"
-#include "tls/base64.h"
-#include "tls/des.h"
-#include "tls/aes.h"
-#include "tls/md5.h"
-#include "tls/cipher.h"
+#include "mbedtls/pem.h"
+#include "mbedtls/base64.h"
+#include "mbedtls/des.h"
+#include "mbedtls/aes.h"
+#include "mbedtls/md5.h"
+#include "mbedtls/cipher.h"
#include <string.h>
#if defined(MBEDTLS_PLATFORM_C)
-#include "tls/platform.h"
+#include "mbedtls/platform.h"
#else
#include <stdlib.h>
#define mbedtls_calloc calloc
* This file is part of mbed TLS (https://tls.mbed.org)
*/
-#include "tls/config.h"
+#include "mbedtls/config.h"
#if defined(MBEDTLS_PK_C)
-#include "tls/pk.h"
-#include "tls/pk_internal.h"
+#include "mbedtls/pk.h"
+#include "mbedtls/pk_internal.h"
#if defined(MBEDTLS_RSA_C)
-#include "tls/rsa.h"
+#include "mbedtls/rsa.h"
#endif
#if defined(MBEDTLS_ECP_C)
-#include "tls/ecp.h"
+#include "mbedtls/ecp.h"
#endif
#if defined(MBEDTLS_ECDSA_C)
-#include "tls/ecdsa.h"
+#include "mbedtls/ecdsa.h"
#endif
/* Implementation that should never be optimized out by the compiler */
* This file is part of mbed TLS (https://tls.mbed.org)
*/
-#include "tls/config.h"
+#include "mbedtls/config.h"
#if defined(MBEDTLS_PK_C)
-#include "tls/pk_internal.h"
+#include "mbedtls/pk_internal.h"
/* Even if RSA not activated, for the sake of RSA-alt */
-#include "tls/rsa.h"
+#include "mbedtls/rsa.h"
#include <string.h>
#if defined(MBEDTLS_ECP_C)
-#include "tls/ecp.h"
+#include "mbedtls/ecp.h"
#endif
#if defined(MBEDTLS_ECDSA_C)
-#include "tls/ecdsa.h"
+#include "mbedtls/ecdsa.h"
#endif
#if defined(MBEDTLS_PLATFORM_C)
-#include "tls/platform.h"
+#include "mbedtls/platform.h"
#else
#include <stdlib.h>
#define mbedtls_calloc calloc
#endif
#if defined(CONFIG_TLS_WITH_SSS)
-#include "tls/see_api.h"
-#include "tls/see_internal.h"
+#include "mbedtls/see_api.h"
+#include "mbedtls/see_internal.h"
-#include "tls/asn1.h"
+#include "mbedtls/asn1.h"
#endif
#if defined(MBEDTLS_PK_RSA_ALT_SUPPORT)
* This file is part of mbed TLS (https://tls.mbed.org)
*/
-#include "tls/pkcs11.h"
+#include "mbedtls/pkcs11.h"
#if defined(MBEDTLS_PKCS11_C)
-#include "tls/md.h"
-#include "tls/oid.h"
-#include "tls/x509_crt.h"
+#include "mbedtls/md.h"
+#include "mbedtls/oid.h"
+#include "mbedtls/x509_crt.h"
#if defined(MBEDTLS_PLATFORM_C)
-#include "tls/platform.h"
+#include "mbedtls/platform.h"
#else
#include <stdlib.h>
#define mbedtls_calloc calloc
* ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-12/pkcs-12v1-1.asn
*/
-#include "tls/config.h"
+#include "mbedtls/config.h"
#if defined(MBEDTLS_PKCS12_C)
-#include "tls/pkcs12.h"
-#include "tls/asn1.h"
-#include "tls/cipher.h"
+#include "mbedtls/pkcs12.h"
+#include "mbedtls/asn1.h"
+#include "mbedtls/cipher.h"
#include <string.h>
#if defined(MBEDTLS_ARC4_C)
-#include "tls/arc4.h"
+#include "mbedtls/arc4.h"
#endif
#if defined(MBEDTLS_DES_C)
-#include "tls/des.h"
+#include "mbedtls/des.h"
#endif
/* Implementation that should never be optimized out by the compiler */
* http://tools.ietf.org/html/rfc6070 (Test vectors)
*/
-#include "tls/config.h"
+#include "mbedtls/config.h"
#if defined(MBEDTLS_PKCS5_C)
-#include "tls/pkcs5.h"
-#include "tls/asn1.h"
-#include "tls/cipher.h"
-#include "tls/oid.h"
+#include "mbedtls/pkcs5.h"
+#include "mbedtls/asn1.h"
+#include "mbedtls/cipher.h"
+#include "mbedtls/oid.h"
#include <string.h>
#if defined(MBEDTLS_PLATFORM_C)
-#include "tls/platform.h"
+#include "mbedtls/platform.h"
#else
#include <stdio.h>
#define mbedtls_printf printf
* This file is part of mbed TLS (https://tls.mbed.org)
*/
-#include "tls/config.h"
+#include "mbedtls/config.h"
#if defined(MBEDTLS_PK_PARSE_C)
-#include "tls/pk.h"
-#include "tls/asn1.h"
-#include "tls/oid.h"
+#include "mbedtls/pk.h"
+#include "mbedtls/asn1.h"
+#include "mbedtls/oid.h"
#include <string.h>
#if defined(MBEDTLS_RSA_C)
-#include "tls/rsa.h"
+#include "mbedtls/rsa.h"
#endif
#if defined(MBEDTLS_ECP_C)
-#include "tls/ecp.h"
+#include "mbedtls/ecp.h"
#endif
#if defined(MBEDTLS_ECDSA_C)
-#include "tls/ecdsa.h"
+#include "mbedtls/ecdsa.h"
#endif
#if defined(MBEDTLS_PEM_PARSE_C)
-#include "tls/pem.h"
+#include "mbedtls/pem.h"
#endif
#if defined(MBEDTLS_PKCS5_C)
-#include "tls/pkcs5.h"
+#include "mbedtls/pkcs5.h"
#endif
#if defined(MBEDTLS_PKCS12_C)
-#include "tls/pkcs12.h"
+#include "mbedtls/pkcs12.h"
#endif
#if defined(MBEDTLS_PLATFORM_C)
-#include "tls/platform.h"
+#include "mbedtls/platform.h"
#else
#include <stdlib.h>
#define mbedtls_calloc calloc
* This file is part of mbed TLS (https://tls.mbed.org)
*/
-#include "tls/config.h"
+#include "mbedtls/config.h"
#if defined(MBEDTLS_PK_WRITE_C)
-#include "tls/pk.h"
-#include "tls/asn1write.h"
-#include "tls/oid.h"
+#include "mbedtls/pk.h"
+#include "mbedtls/asn1write.h"
+#include "mbedtls/oid.h"
#include <string.h>
#if defined(MBEDTLS_RSA_C)
-#include "tls/rsa.h"
+#include "mbedtls/rsa.h"
#endif
#if defined(MBEDTLS_ECP_C)
-#include "tls/ecp.h"
+#include "mbedtls/ecp.h"
#endif
#if defined(MBEDTLS_ECDSA_C)
-#include "tls/ecdsa.h"
+#include "mbedtls/ecdsa.h"
#endif
#if defined(MBEDTLS_PEM_WRITE_C)
-#include "tls/pem.h"
+#include "mbedtls/pem.h"
#endif
#if defined(MBEDTLS_PLATFORM_C)
-#include "tls/platform.h"
+#include "mbedtls/platform.h"
#else
#include <stdlib.h>
#define mbedtls_calloc calloc
* This file is part of mbed TLS (https://tls.mbed.org)
*/
-#include "tls/config.h"
+#include "mbedtls/config.h"
#if defined(MBEDTLS_PLATFORM_C)
-#include "tls/platform.h"
+#include "mbedtls/platform.h"
#if defined(MBEDTLS_PLATFORM_MEMORY)
#if !defined(MBEDTLS_PLATFORM_STD_CALLOC)
* http://ehash.iaik.tugraz.at/wiki/RIPEMD-160
*/
-#include "tls/config.h"
+#include "mbedtls/config.h"
#if defined(MBEDTLS_RIPEMD160_C)
-#include "tls/ripemd160.h"
+#include "mbedtls/ripemd160.h"
#include <string.h>
#if defined(MBEDTLS_SELF_TEST)
#if defined(MBEDTLS_PLATFORM_C)
-#include "tls/platform.h"
+#include "mbedtls/platform.h"
#else
#include <stdio.h>
#define mbedtls_printf printf
*
*/
-#include "tls/config.h"
+#include "mbedtls/config.h"
#if defined(MBEDTLS_RSA_C)
-#include "tls/rsa.h"
-#include "tls/oid.h"
+#include "mbedtls/rsa.h"
+#include "mbedtls/oid.h"
#include <string.h>
#if defined(MBEDTLS_PKCS1_V21)
-#include "tls/md.h"
+#include "mbedtls/md.h"
#endif
#if defined(MBEDTLS_PKCS1_V15) && !defined(__OpenBSD__)
#endif
#if defined(MBEDTLS_PLATFORM_C)
-#include "tls/platform.h"
+#include "mbedtls/platform.h"
#else
#include <stdio.h>
#define mbedtls_printf printf
#if defined(MBEDTLS_SELF_TEST)
-#include "tls/sha1.h"
+#include "mbedtls/sha1.h"
/*
* Example RSA-1024 keypair, for test purposes
#include <stdio.h>
#include <pthread.h>
-#include "tls/see_api.h"
+#include "mbedtls/see_api.h"
see_mutex_t m_handler = { PTHREAD_MUTEX_INITIALIZER, 0 };
#include <string.h>
#include <pthread.h>
-#include "tls/see_internal.h"
+#include "mbedtls/see_internal.h"
#if defined(CONFIG_HW_ECDH_PARAM)
int see_generate_key_internal(unsigned int key_type, unsigned char *key_buf,
* http://www.itl.nist.gov/fipspubs/fip180-1.htm
*/
-#include "tls/config.h"
+#include "mbedtls/config.h"
#if defined(MBEDTLS_SHA1_C)
-#include "tls/sha1.h"
+#include "mbedtls/sha1.h"
#include <string.h>
#if defined(MBEDTLS_SELF_TEST)
#if defined(MBEDTLS_PLATFORM_C)
-#include "tls/platform.h"
+#include "mbedtls/platform.h"
#else
#include <stdio.h>
#define mbedtls_printf printf
* http://csrc.nist.gov/publications/fips/fips180-2/fips180-2.pdf
*/
-#include "tls/config.h"
+#include "mbedtls/config.h"
#if defined(MBEDTLS_SHA256_C)
-#include "tls/sha256.h"
+#include "mbedtls/sha256.h"
#include <string.h>
#if defined(MBEDTLS_SELF_TEST)
#if defined(MBEDTLS_PLATFORM_C)
-#include "tls/platform.h"
+#include "mbedtls/platform.h"
#else
#include <stdio.h>
#include <stdlib.h>
* http://csrc.nist.gov/publications/fips/fips180-2/fips180-2.pdf
*/
-#include "tls/config.h"
+#include "mbedtls/config.h"
#if defined(MBEDTLS_SHA512_C)
-#include "tls/sha512.h"
+#include "mbedtls/sha512.h"
#if defined(_MSC_VER) || defined(__WATCOMC__)
#define UL64(x) x##ui64
#if defined(MBEDTLS_SELF_TEST)
#if defined(MBEDTLS_PLATFORM_C)
-#include "tls/platform.h"
+#include "mbedtls/platform.h"
#else
#include <stdio.h>
#include <stdlib.h>
* to store and retrieve the session information.
*/
-#include "tls/config.h"
+#include "mbedtls/config.h"
#if defined(MBEDTLS_SSL_CACHE_C)
#if defined(MBEDTLS_PLATFORM_C)
-#include "tls/platform.h"
+#include "mbedtls/platform.h"
#else
#include <stdlib.h>
#define mbedtls_calloc calloc
#define mbedtls_free free
#endif
-#include "tls/ssl_cache.h"
+#include "mbedtls/ssl_cache.h"
#include <string.h>
* This file is part of mbed TLS (https://tls.mbed.org)
*/
-#include "tls/config.h"
+#include "mbedtls/config.h"
#if defined(MBEDTLS_SSL_TLS_C)
#if defined(MBEDTLS_PLATFORM_C)
-#include "tls/platform.h"
+#include "mbedtls/platform.h"
#else
#include <stdlib.h>
#endif
-#include "tls/ssl_ciphersuites.h"
-#include "tls/ssl.h"
+#include "mbedtls/ssl_ciphersuites.h"
+#include "mbedtls/ssl.h"
#include <string.h>
* This file is part of mbed TLS (https://tls.mbed.org)
*/
-#include "tls/config.h"
+#include "mbedtls/config.h"
#if defined(MBEDTLS_SSL_CLI_C)
#if defined(MBEDTLS_PLATFORM_C)
-#include "tls/platform.h"
+#include "mbedtls/platform.h"
#else
#include <stdlib.h>
#define mbedtls_calloc calloc
#include <string.h>
#include <stdint.h>
-#include "tls/debug.h"
-#include "tls/ssl.h"
-#include "tls/ssl_internal.h"
+#include "mbedtls/debug.h"
+#include "mbedtls/ssl.h"
+#include "mbedtls/ssl_internal.h"
#if defined(MBEDTLS_HAVE_TIME)
-#include "tls/platform_time.h"
+#include "mbedtls/platform_time.h"
#endif
#if defined(MBEDTLS_SSL_SESSION_TICKETS)
* to store and retrieve the session information.
*/
-#include "tls/config.h"
+#include "mbedtls/config.h"
#if defined(MBEDTLS_SSL_COOKIE_C)
-#include "tls/ssl_cookie.h"
-#include "tls/ssl_internal.h"
+#include "mbedtls/ssl_cookie.h"
+#include "mbedtls/ssl_internal.h"
#if defined(MBEDTLS_PLATFORM_C)
-#include "tls/platform.h"
+#include "mbedtls/platform.h"
#else
#define mbedtls_calloc calloc
#define mbedtls_free free
#endif
-#include "tls/ssl_cookie.h"
-#include "tls/ssl_internal.h"
+#include "mbedtls/ssl_cookie.h"
+#include "mbedtls/ssl_internal.h"
#include <string.h>
* This file is part of mbed TLS (https://tls.mbed.org)
*/
-#include "tls/config.h"
+#include "mbedtls/config.h"
#if defined(MBEDTLS_SSL_SRV_C)
#if defined(MBEDTLS_PLATFORM_C)
-#include "tls/platform.h"
+#include "mbedtls/platform.h"
#else
#include <stdlib.h>
#define mbedtls_calloc calloc
#define mbedtls_free free
#endif
-#include "tls/debug.h"
-#include "tls/ssl.h"
-#include "tls/ssl_internal.h"
+#include "mbedtls/debug.h"
+#include "mbedtls/ssl.h"
+#include "mbedtls/ssl_internal.h"
#include <string.h>
#if defined(MBEDTLS_ECP_C)
-#include "tls/ecp.h"
+#include "mbedtls/ecp.h"
#endif
#if defined(MBEDTLS_HAVE_TIME)
-#include "tls/platform_time.h"
+#include "mbedtls/platform_time.h"
#endif
#if defined(MBEDTLS_SSL_SESSION_TICKETS)
* This file is part of mbed TLS (https://tls.mbed.org)
*/
-#include "tls/config.h"
+#include "mbedtls/config.h"
#if defined(MBEDTLS_SSL_TICKET_C)
-#include "tls/ssl_ticket.h"
+#include "mbedtls/ssl_ticket.h"
#if defined(MBEDTLS_PLATFORM_C)
-#include "tls/platform.h"
+#include "mbedtls/platform.h"
#else
#include <stdlib.h>
#define mbedtls_calloc calloc
#define mbedtls_free free
#endif
-#include "tls/ssl_ticket.h"
+#include "mbedtls/ssl_ticket.h"
#include <string.h>
*/
#if !defined(MBEDTLS_CONFIG_FILE)
-#include "tls/config.h"
+#include "mbedtls/config.h"
#else
#include MBEDTLS_CONFIG_FILE
#endif
#if defined(MBEDTLS_SSL_TLS_C)
#if defined(MBEDTLS_PLATFORM_C)
-#include "tls/platform.h"
+#include "mbedtls/platform.h"
#else
#include <stdlib.h>
#define mbedtls_calloc calloc
#define mbedtls_free free
#endif
-#include "tls/debug.h"
-#include "tls/ssl.h"
-#include "tls/ssl_internal.h"
+#include "mbedtls/debug.h"
+#include "mbedtls/ssl.h"
+#include "mbedtls/ssl_internal.h"
#include <string.h>
#if defined(MBEDTLS_X509_CRT_PARSE_C)
-#include "tls/oid.h"
+#include "mbedtls/oid.h"
#endif
/* Implementation that should never be optimized out by the compiler */
* This file is part of mbed TLS (https://tls.mbed.org)
*/
-#include "tls/config.h"
+#include "mbedtls/config.h"
#if defined(MBEDTLS_THREADING_C)
-#include "tls/threading.h"
+#include "mbedtls/threading.h"
#if defined(MBEDTLS_THREADING_PTHREAD)
static void threading_mutex_init_pthread(mbedtls_threading_mutex_t *mutex)
* This file is part of mbed TLS (https://tls.mbed.org)
*/
-#include "tls/config.h"
+#include "mbedtls/config.h"
#if defined(MBEDTLS_SELF_TEST) && defined(MBEDTLS_PLATFORM_C)
-#include "tls/platform.h"
+#include "mbedtls/platform.h"
#else
#include <stdio.h>
#define mbedtls_printf printf
#if defined(MBEDTLS_TIMING_C)
-#include "tls/timing.h"
+#include "mbedtls/timing.h"
#ifndef asm
#define asm __asm
* This file is part of mbed TLS (https://tls.mbed.org)
*/
-#include "tls/config.h"
+#include "mbedtls/config.h"
#if defined(MBEDTLS_VERSION_C)
-#include "tls/version.h"
+#include "mbedtls/version.h"
#include <string.h>
unsigned int mbedtls_version_get_number()
* This file is part of mbed TLS (https://tls.mbed.org)
*/
-#include "tls/config.h"
+#include "mbedtls/config.h"
#if defined(MBEDTLS_VERSION_C)
-#include "tls/version.h"
+#include "mbedtls/version.h"
#include <string.h>
* http://www.itu.int/ITU-T/studygroups/com17/languages/X.690-0207.pdf
*/
-#include "tls/config.h"
+#include "mbedtls/config.h"
#if defined(MBEDTLS_X509_USE_C)
-#include "tls/x509.h"
-#include "tls/asn1.h"
-#include "tls/oid.h"
+#include "mbedtls/x509.h"
+#include "mbedtls/asn1.h"
+#include "mbedtls/oid.h"
#include <stdio.h>
#include <string.h>
#if defined(MBEDTLS_PEM_PARSE_C)
-#include "tls/pem.h"
+#include "mbedtls/pem.h"
#endif
#if defined(MBEDTLS_PLATFORM_C)
-#include "tls/platform.h"
+#include "mbedtls/platform.h"
#else
#include <stdio.h>
#include <stdlib.h>
#endif
#if defined(MBEDTLS_HAVE_TIME)
-#include "tls/platform_time.h"
+#include "mbedtls/platform_time.h"
#endif
#if defined(_WIN32) && !defined(EFIX64) && !defined(EFI32)
#if defined(MBEDTLS_SELF_TEST)
-#include "tls/x509_crt.h"
-#include "tls/certs.h"
+#include "mbedtls/x509_crt.h"
+#include "mbedtls/certs.h"
/*
* Checkup routine
* This file is part of mbed TLS (https://tls.mbed.org)
*/
-#include "tls/config.h"
+#include "mbedtls/config.h"
#if defined(MBEDTLS_X509_CREATE_C)
-#include "tls/x509.h"
-#include "tls/asn1write.h"
-#include "tls/oid.h"
+#include "mbedtls/x509.h"
+#include "mbedtls/asn1write.h"
+#include "mbedtls/oid.h"
#include <string.h>
* http://www.itu.int/ITU-T/studygroups/com17/languages/X.690-0207.pdf
*/
-#include "tls/config.h"
+#include "mbedtls/config.h"
#if defined(MBEDTLS_X509_CRL_PARSE_C)
-#include "tls/x509_crl.h"
-#include "tls/oid.h"
+#include "mbedtls/x509_crl.h"
+#include "mbedtls/oid.h"
#include <string.h>
#if defined(MBEDTLS_PEM_PARSE_C)
-#include "tls/pem.h"
+#include "mbedtls/pem.h"
#endif
#if defined(MBEDTLS_PLATFORM_C)
-#include "tls/platform.h"
+#include "mbedtls/platform.h"
#else
#include <stdlib.h>
#include <stdio.h>
* http://www.itu.int/ITU-T/studygroups/com17/languages/X.690-0207.pdf
*/
-#include "tls/config.h"
+#include "mbedtls/config.h"
#if defined(MBEDTLS_X509_CRT_PARSE_C)
-#include "tls/x509_crt.h"
-#include "tls/oid.h"
+#include "mbedtls/x509_crt.h"
+#include "mbedtls/oid.h"
#include <stdio.h>
#include <string.h>
#if defined(MBEDTLS_PEM_PARSE_C)
-#include "tls/pem.h"
+#include "mbedtls/pem.h"
#endif
#if defined(MBEDTLS_PLATFORM_C)
-#include "tls/platform.h"
+#include "mbedtls/platform.h"
#else
#include <stdlib.h>
#define mbedtls_free free
#endif
#if defined(MBEDTLS_THREADING_C)
-#include "tls/threading.h"
+#include "mbedtls/threading.h"
#endif
#if defined(_WIN32) && !defined(EFIX64) && !defined(EFI32)
* http://www.itu.int/ITU-T/studygroups/com17/languages/X.690-0207.pdf
*/
-#include "tls/config.h"
+#include "mbedtls/config.h"
#if defined(MBEDTLS_X509_CSR_PARSE_C)
-#include "tls/x509_csr.h"
-#include "tls/oid.h"
+#include "mbedtls/x509_csr.h"
+#include "mbedtls/oid.h"
#include <string.h>
#if defined(MBEDTLS_PEM_PARSE_C)
-#include "tls/pem.h"
+#include "mbedtls/pem.h"
#endif
#if defined(MBEDTLS_PLATFORM_C)
-#include "tls/platform.h"
+#include "mbedtls/platform.h"
#else
#include <stdlib.h>
#include <stdio.h>
* - attributes: PKCS#9 v2.0 aka RFC 2985
*/
-#include "tls/config.h"
+#include "mbedtls/config.h"
#if defined(MBEDTLS_X509_CRT_WRITE_C)
-#include "tls/x509_crt.h"
-#include "tls/oid.h"
-#include "tls/asn1write.h"
-#include "tls/sha1.h"
+#include "mbedtls/x509_crt.h"
+#include "mbedtls/oid.h"
+#include "mbedtls/asn1write.h"
+#include "mbedtls/sha1.h"
#include <string.h>
#if defined(MBEDTLS_PEM_WRITE_C)
-#include "tls/pem.h"
+#include "mbedtls/pem.h"
#endif /* MBEDTLS_PEM_WRITE_C */
/* Implementation that should never be optimized out by the compiler */
* - attributes: PKCS#9 v2.0 aka RFC 2985
*/
-#include "tls/config.h"
+#include "mbedtls/config.h"
#if defined(MBEDTLS_X509_CSR_WRITE_C)
-#include "tls/x509_csr.h"
-#include "tls/oid.h"
-#include "tls/asn1write.h"
+#include "mbedtls/x509_csr.h"
+#include "mbedtls/oid.h"
+#include "mbedtls/asn1write.h"
#include <string.h>
#include <stdlib.h>
#if defined(MBEDTLS_PEM_WRITE_C)
-#include "tls/pem.h"
+#include "mbedtls/pem.h"
#endif
/* Implementation that should never be optimized out by the compiler */
* This file is part of mbed TLS (https://tls.mbed.org)
*/
-#include "tls/config.h"
+#include "mbedtls/config.h"
#if defined(MBEDTLS_XTEA_C)
-#include "tls/xtea.h"
+#include "mbedtls/xtea.h"
#include <string.h>
#if defined(MBEDTLS_SELF_TEST)
#if defined(MBEDTLS_PLATFORM_C)
-#include "tls/platform.h"
+#include "mbedtls/platform.h"
#else
#include <stdio.h>
#define mbedtls_printf printf
#endif
#ifdef WITH_MBEDTLS
-#include "tls/ssl.h"
-#include "tls/net.h"
-#include "tls/x509_crt.h"
-#include "tls/pk.h"
-#include "tls/ctr_drbg.h"
-#include "tls/ssl_cache.h"
-#include "tls/entropy.h"
+#include "mbedtls/ssl.h"
+#include "mbedtls/net.h"
+#include "mbedtls/x509_crt.h"
+#include "mbedtls/pk.h"
+#include "mbedtls/ctr_drbg.h"
+#include "mbedtls/ssl_cache.h"
+#include "mbedtls/entropy.h"
#endif
# include <openssl/ssl.h>
#else
# ifdef WITH_MBEDTLS
-# include <tls/ssl.h>
+# include "mbedtls/ssl.h"
# else
# include <time.h>
# endif
#include <protocols/websocket.h>
#ifdef CONFIG_NET_SECURITY_TLS
-#include "tls/config.h"
-#include "tls/entropy.h"
-#include "tls/ctr_drbg.h"
-#include "tls/certs.h"
-#include "tls/x509.h"
-#include "tls/ssl.h"
-#include "tls/net.h"
-#include "tls/error.h"
-#include "tls/debug.h"
-#include "tls/ssl_cache.h"
+#include "mbedtls/config.h"
+#include "mbedtls/entropy.h"
+#include "mbedtls/ctr_drbg.h"
+#include "mbedtls/certs.h"
+#include "mbedtls/x509.h"
+#include "mbedtls/ssl.h"
+#include "mbedtls/net.h"
+#include "mbedtls/error.h"
+#include "mbedtls/debug.h"
+#include "mbedtls/ssl_cache.h"
#endif
enum {
#include <sys/socket.h>
#include <sys/select.h>
#include <sys/time.h>
-#include <tls/sha1.h>
-#include <tls/base64.h>
+#include "mbedtls/sha1.h"
+#include "mbedtls/base64.h"
#include <protocols/netlib.h>
#include <protocols/websocket.h>
#include <protocols/wslay/wslay.h>
#endif
#ifdef WITH_MBEDTLS
-#include "tls/ssl.h"
-#include "tls/net.h"
-#include "tls/x509_crt.h"
-#include "tls/pk.h"
-#include "tls/ctr_drbg.h"
-#include "tls/ssl_cache.h"
-#include "tls/entropy.h"
+#include "mbedtls/ssl.h"
+#include "mbedtls/net.h"
+#include "mbedtls/x509_crt.h"
+#include "mbedtls/pk.h"
+#include "mbedtls/ctr_drbg.h"
+#include "mbedtls/ssl_cache.h"
+#include "mbedtls/entropy.h"
#endif
source net/lwip/configs/Kconfig
endif #NET_LWIP
-config NET_SECURITY_TLS
- bool "TLS Support"
- default n
- depends on LIBC_NETDB
-if NET_SECURITY_TLS
-source net/tls/Kconfig
-endif #NET_SECURITY_TLS
menu "Driver buffer configuration"
source "../framework/src/mqtt/Kconfig.protocol"
+config NET_SECURITY_TLS
+ bool "TLS Support"
+ default n
+ depends on LIBC_NETDB
+
+if NET_SECURITY_TLS
+source "$EXTERNALDIR/mbedtls/Kconfig.protocol"
+endif #NET_SECURITY_TLS
+
endmenu #Protocols
NETDEV_ASRCS =
NETDEV_CSRCS =
-#tls support
-
-ifeq ($(CONFIG_NET_SECURITY_TLS),y)
-TLS_ASRCS =
-TLS_CSRCS =
-endif
-
VPATH =
DEPPATH = --dep-path .
include route/Make.defs
include utils/Make.defs
-ifeq ($(CONFIG_NET_SECURITY_TLS),y)
-include tls/Make.defs
-endif
-
endif
ASRCS = $(SOCK_ASRCS) $(NETDEV_ASRCS) $(NET_ASRCS) $(TLS_ASRCS) $(LWIP_ASRCS)