Jim Flynn
/
aws-iot-device-sdk-mbed-c
Changes to enabled on-line compiler
platform/mbedtls/network_platform.h@0:082731ede69f, 2018-05-30 (annotated)
- Committer:
- JMF
- Date:
- Wed May 30 20:59:51 2018 +0000
- Revision:
- 0:082731ede69f
Initial commit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
JMF | 0:082731ede69f | 1 | /* |
JMF | 0:082731ede69f | 2 | * Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved. |
JMF | 0:082731ede69f | 3 | * |
JMF | 0:082731ede69f | 4 | * Licensed under the Apache License, Version 2.0 (the "License"). |
JMF | 0:082731ede69f | 5 | * You may not use this file except in compliance with the License. |
JMF | 0:082731ede69f | 6 | * A copy of the License is located at |
JMF | 0:082731ede69f | 7 | * |
JMF | 0:082731ede69f | 8 | * http://aws.amazon.com/apache2.0 |
JMF | 0:082731ede69f | 9 | * |
JMF | 0:082731ede69f | 10 | * or in the "license" file accompanying this file. This file is distributed |
JMF | 0:082731ede69f | 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either |
JMF | 0:082731ede69f | 12 | * express or implied. See the License for the specific language governing |
JMF | 0:082731ede69f | 13 | * permissions and limitations under the License. |
JMF | 0:082731ede69f | 14 | */ |
JMF | 0:082731ede69f | 15 | |
JMF | 0:082731ede69f | 16 | #ifndef IOTSDKC_NETWORK_MBEDTLS_PLATFORM_H_H |
JMF | 0:082731ede69f | 17 | |
JMF | 0:082731ede69f | 18 | #include "mbedtls/config.h" |
JMF | 0:082731ede69f | 19 | |
JMF | 0:082731ede69f | 20 | #include "mbedtls/platform.h" |
JMF | 0:082731ede69f | 21 | #include "mbedtls/net.h" |
JMF | 0:082731ede69f | 22 | #include "mbedtls/ssl.h" |
JMF | 0:082731ede69f | 23 | #include "mbedtls/entropy.h" |
JMF | 0:082731ede69f | 24 | #include "mbedtls/ctr_drbg.h" |
JMF | 0:082731ede69f | 25 | #include "mbedtls/certs.h" |
JMF | 0:082731ede69f | 26 | #include "mbedtls/x509.h" |
JMF | 0:082731ede69f | 27 | #include "mbedtls/error.h" |
JMF | 0:082731ede69f | 28 | #include "mbedtls/debug.h" |
JMF | 0:082731ede69f | 29 | #include "mbedtls/timing.h" |
JMF | 0:082731ede69f | 30 | |
JMF | 0:082731ede69f | 31 | #ifdef __cplusplus |
JMF | 0:082731ede69f | 32 | extern "C" { |
JMF | 0:082731ede69f | 33 | #endif |
JMF | 0:082731ede69f | 34 | |
JMF | 0:082731ede69f | 35 | /** |
JMF | 0:082731ede69f | 36 | * @brief TLS Connection Parameters |
JMF | 0:082731ede69f | 37 | * |
JMF | 0:082731ede69f | 38 | * Defines a type containing TLS specific parameters to be passed down to the |
JMF | 0:082731ede69f | 39 | * TLS networking layer to create a TLS secured socket. |
JMF | 0:082731ede69f | 40 | */ |
JMF | 0:082731ede69f | 41 | typedef struct _TLSDataParams { |
JMF | 0:082731ede69f | 42 | mbedtls_entropy_context entropy; |
JMF | 0:082731ede69f | 43 | mbedtls_ctr_drbg_context ctr_drbg; |
JMF | 0:082731ede69f | 44 | mbedtls_ssl_context ssl; |
JMF | 0:082731ede69f | 45 | mbedtls_ssl_config conf; |
JMF | 0:082731ede69f | 46 | uint32_t flags; |
JMF | 0:082731ede69f | 47 | mbedtls_x509_crt cacert; |
JMF | 0:082731ede69f | 48 | mbedtls_x509_crt clicert; |
JMF | 0:082731ede69f | 49 | mbedtls_pk_context pkey; |
JMF | 0:082731ede69f | 50 | mbedtls_net_context server_fd; |
JMF | 0:082731ede69f | 51 | }TLSDataParams; |
JMF | 0:082731ede69f | 52 | |
JMF | 0:082731ede69f | 53 | #define IOTSDKC_NETWORK_MBEDTLS_PLATFORM_H_H |
JMF | 0:082731ede69f | 54 | |
JMF | 0:082731ede69f | 55 | #ifdef __cplusplus |
JMF | 0:082731ede69f | 56 | } |
JMF | 0:082731ede69f | 57 | #endif |
JMF | 0:082731ede69f | 58 | |
JMF | 0:082731ede69f | 59 | #endif //IOTSDKC_NETWORK_MBEDTLS_PLATFORM_H_H |