|
16 | 16 |
|
17 | 17 | #ifndef IOTSDKC_NETWORK_MBEDTLS_PLATFORM_H_H
|
18 | 18 |
|
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> |
35 | 20 |
|
36 | 21 | #ifdef __cplusplus
|
37 | 22 | extern "C" {
|
38 | 23 | #endif
|
39 | 24 |
|
| 25 | +typedef size_t esp_network_handle_t; |
| 26 | + |
40 | 27 | /**
|
41 | 28 | * @brief TLS Connection Parameters
|
42 | 29 | *
|
43 | 30 | * Defines a type containing TLS specific parameters to be passed down to the
|
44 | 31 | * TLS networking layer to create a TLS secured socket.
|
45 | 32 | */
|
46 | 33 | 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; |
51 | 35 | 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; |
56 | 37 | }TLSDataParams;
|
57 | 38 |
|
58 | 39 | #define IOTSDKC_NETWORK_MBEDTLS_PLATFORM_H_H
|
|
0 commit comments