Kenji Arai / mbed-os_TYBLE16

Dependents:   TYBLE16_simple_data_logger TYBLE16_MP3_Air

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers altcp_tls_mbedtls_opts.h Source File

altcp_tls_mbedtls_opts.h

Go to the documentation of this file.
00001 /**
00002  * @file
00003  * Application layered TCP/TLS connection API (to be used from TCPIP thread)
00004  *
00005  * This file contains options for an mbedtls port of the TLS layer.
00006  */
00007 
00008 /*
00009  * Copyright (c) 2017 Simon Goldschmidt
00010  * All rights reserved.
00011  *
00012  * Redistribution and use in source and binary forms, with or without modification,
00013  * are permitted provided that the following conditions are met:
00014  *
00015  * 1. Redistributions of source code must retain the above copyright notice,
00016  *    this list of conditions and the following disclaimer.
00017  * 2. Redistributions in binary form must reproduce the above copyright notice,
00018  *    this list of conditions and the following disclaimer in the documentation
00019  *    and/or other materials provided with the distribution.
00020  * 3. The name of the author may not be used to endorse or promote products
00021  *    derived from this software without specific prior written permission.
00022  *
00023  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
00024  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
00025  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
00026  * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
00027  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
00028  * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
00029  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
00030  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
00031  * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
00032  * OF SUCH DAMAGE.
00033  *
00034  * This file is part of the lwIP TCP/IP stack.
00035  *
00036  * Author: Simon Goldschmidt <goldsimon@gmx.de>
00037  *
00038  */
00039 #ifndef LWIP_HDR_ALTCP_TLS_OPTS_H
00040 #define LWIP_HDR_ALTCP_TLS_OPTS_H
00041 
00042 #include "lwip/opt.h"
00043 
00044 #if LWIP_ALTCP /* don't build if not configured for use in lwipopts.h */
00045 
00046 /** LWIP_ALTCP_TLS_MBEDTLS==1: use mbedTLS for TLS support for altcp API
00047  * mbedtls include directory must be reachable via include search path
00048  */
00049 #ifndef LWIP_ALTCP_TLS_MBEDTLS
00050 #define LWIP_ALTCP_TLS_MBEDTLS                        0
00051 #endif
00052 
00053 /** Configure debug level of this file */
00054 #ifndef ALTCP_MBEDTLS_DEBUG
00055 #define ALTCP_MBEDTLS_DEBUG                           LWIP_DBG_OFF
00056 #endif
00057 
00058 /** Set a session timeout in seconds for the basic session cache
00059  * ATTENTION: Using a session cache can lower security by reusing keys!
00060  */
00061 #ifndef ALTCP_MBEDTLS_SESSION_CACHE_TIMEOUT_SECONDS
00062 #define ALTCP_MBEDTLS_SESSION_CACHE_TIMEOUT_SECONDS   0
00063 #endif
00064 
00065 #endif /* LWIP_ALTCP */
00066 
00067 #endif /* LWIP_HDR_ALTCP_TLS_OPTS_H */