Skip to content

Commit a0a054a

Browse files
committed
Merge branch 'feature/aws_iot_esp_tls_v3.1' into 'release/v3.1'
Modify network wrapper from mbedtls to esp_tls (backport v3.1) See merge request sdk/ESP8266_RTOS_SDK!750
2 parents f184c8b + 7627d36 commit a0a054a

File tree

2 files changed

+53
-281
lines changed

2 files changed

+53
-281
lines changed

components/aws_iot/include/network_platform.h

Lines changed: 5 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -16,43 +16,24 @@
1616

1717
#ifndef IOTSDKC_NETWORK_MBEDTLS_PLATFORM_H_H
1818

19-
#if !defined(MBEDTLS_CONFIG_FILE)
20-
#include "mbedtls/config.h"
21-
#else
22-
#include MBEDTLS_CONFIG_FILE
23-
#endif
24-
25-
#include "mbedtls/platform.h"
26-
#include "mbedtls/net_sockets.h"
27-
#include "mbedtls/ssl.h"
28-
#include "mbedtls/entropy.h"
29-
#include "mbedtls/ctr_drbg.h"
30-
#include "mbedtls/certs.h"
31-
#include "mbedtls/x509.h"
32-
#include "mbedtls/error.h"
33-
#include "mbedtls/debug.h"
34-
#include "mbedtls/timing.h"
19+
#include <stdint.h>
3520

3621
#ifdef __cplusplus
3722
extern "C" {
3823
#endif
3924

25+
typedef size_t esp_network_handle_t;
26+
4027
/**
4128
* @brief TLS Connection Parameters
4229
*
4330
* Defines a type containing TLS specific parameters to be passed down to the
4431
* TLS networking layer to create a TLS secured socket.
4532
*/
4633
typedef struct _TLSDataParams {
47-
mbedtls_entropy_context entropy;
48-
mbedtls_ctr_drbg_context ctr_drbg;
49-
mbedtls_ssl_context ssl;
50-
mbedtls_ssl_config conf;
34+
esp_network_handle_t handle;
5135
uint32_t flags;
52-
mbedtls_x509_crt cacert;
53-
mbedtls_x509_crt clicert;
54-
mbedtls_pk_context pkey;
55-
mbedtls_net_context server_fd;
36+
uint32_t timeout;
5637
}TLSDataParams;
5738

5839
#define IOTSDKC_NETWORK_MBEDTLS_PLATFORM_H_H

0 commit comments

Comments
 (0)