this is fork and i will modify for STM32

Fork of AWS-test by Pierre-Marie Ancèle

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers network_platform.h Source File

network_platform.h

00001 /*
00002  * Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
00003  *
00004  * Licensed under the Apache License, Version 2.0 (the "License").
00005  * You may not use this file except in compliance with the License.
00006  * A copy of the License is located at
00007  *
00008  *  http://aws.amazon.com/apache2.0
00009  *
00010  * or in the "license" file accompanying this file. This file is distributed
00011  * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
00012  * express or implied. See the License for the specific language governing
00013  * permissions and limitations under the License.
00014  */
00015 
00016 #ifndef IOTSDKC_NETWORK_MBEDTLS_PLATFORM_H_H
00017 
00018 #include "mbedtls/config.h"
00019 
00020 #include "mbedtls/platform.h"
00021 #include "mbedtls/net.h"
00022 #include "mbedtls/ssl.h"
00023 #include "mbedtls/entropy.h"
00024 #include "mbedtls/ctr_drbg.h"
00025 #include "mbedtls/certs.h"
00026 #include "mbedtls/x509.h"
00027 #include "mbedtls/error.h"
00028 #include "mbedtls/debug.h"
00029 #include "mbedtls/timing.h"
00030 
00031 #ifdef __cplusplus
00032 extern "C" {
00033 #endif
00034 
00035 /**
00036  * @brief TLS Connection Parameters
00037  *
00038  * Defines a type containing TLS specific parameters to be passed down to the
00039  * TLS networking layer to create a TLS secured socket.
00040  */
00041 typedef struct _TLSDataParams {
00042     mbedtls_entropy_context entropy;
00043     mbedtls_ctr_drbg_context ctr_drbg;
00044     mbedtls_ssl_context ssl;
00045     mbedtls_ssl_config conf;
00046     uint32_t flags;
00047     mbedtls_x509_crt cacert;
00048     mbedtls_x509_crt clicert;
00049     mbedtls_pk_context pkey;
00050     mbedtls_net_context server_fd;
00051 }TLSDataParams;
00052 
00053 #define IOTSDKC_NETWORK_MBEDTLS_PLATFORM_H_H
00054 
00055 #ifdef __cplusplus
00056 }
00057 #endif
00058 
00059 #endif //IOTSDKC_NETWORK_MBEDTLS_PLATFORM_H_H