lwIP 2.2.1 Lightweight IP stack

Macros
altcp_tls_mbedtls_opts.h File Reference
`#include "lwip/opt.h"`

## Macros
#define | LWIP_ALTCP_TLS_MBEDTLS 0
#define | ALTCP_MBEDTLS_DEBUG LWIP_DBG_OFF
#define | ALTCP_MBEDTLS_LIB_DEBUG LWIP_DBG_OFF
#define | ALTCP_MBEDTLS_LIB_DEBUG_LEVEL_MIN 0
#define | ALTCP_MBEDTLS_USE_SESSION_CACHE 0
#define | ALTCP_MBEDTLS_SESSION_CACHE_SIZE 30
#define | ALTCP_MBEDTLS_SESSION_CACHE_TIMEOUT_SECONDS (60 * 60)
#define | ALTCP_MBEDTLS_USE_SESSION_TICKETS 0
#define | ALTCP_MBEDTLS_SESSION_TICKET_CIPHER MBEDTLS_CIPHER_AES_256_GCM
#define | ALTCP_MBEDTLS_SESSION_TICKET_TIMEOUT_SECONDS (60 * 60 * 24)
#define | ALTCP_MBEDTLS_AUTHMODE MBEDTLS_SSL_VERIFY_OPTIONAL

## Detailed Description

Application layered TCP/TLS connection API (to be used from TCPIP thread)

This file contains options for an mbedtls port of the TLS layer.

## Macro Definition Documentation

## ◆ ALTCP_MBEDTLS_AUTHMODE

#define ALTCP_MBEDTLS_AUTHMODE MBEDTLS_SSL_VERIFY_OPTIONAL

Certificate verification mode: MBEDTLS_SSL_VERIFY_NONE, MBEDTLS_SSL_VERIFY_OPTIONAL (default), MBEDTLS_SSL_VERIFY_REQUIRED (recommended)

## ◆ ALTCP_MBEDTLS_DEBUG

#define ALTCP_MBEDTLS_DEBUG LWIP_DBG_OFF

Configure debug level of this file

## ◆ ALTCP_MBEDTLS_LIB_DEBUG

#define ALTCP_MBEDTLS_LIB_DEBUG LWIP_DBG_OFF

Configure lwIP debug level of the mbedTLS library

## ◆ ALTCP_MBEDTLS_LIB_DEBUG_LEVEL_MIN

#define ALTCP_MBEDTLS_LIB_DEBUG_LEVEL_MIN 0

Configure minimum internal debug level of the mbedTLS library

## ◆ ALTCP_MBEDTLS_SESSION_CACHE_SIZE

#define ALTCP_MBEDTLS_SESSION_CACHE_SIZE 30

Maximum cache size of the basic session cache

## ◆ ALTCP_MBEDTLS_SESSION_CACHE_TIMEOUT_SECONDS

#define ALTCP_MBEDTLS_SESSION_CACHE_TIMEOUT_SECONDS (60 * 60)

Set a session timeout in seconds for the basic session cache

## ◆ ALTCP_MBEDTLS_SESSION_TICKET_CIPHER

#define ALTCP_MBEDTLS_SESSION_TICKET_CIPHER MBEDTLS_CIPHER_AES_256_GCM

Session ticket cipher

## ◆ ALTCP_MBEDTLS_SESSION_TICKET_TIMEOUT_SECONDS

#define ALTCP_MBEDTLS_SESSION_TICKET_TIMEOUT_SECONDS (60 * 60 * 24)

Maximum timeout for session tickets

## ◆ ALTCP_MBEDTLS_USE_SESSION_CACHE

#define ALTCP_MBEDTLS_USE_SESSION_CACHE 0

Enable the basic session cache ATTENTION: Using a session cache can lower security by reusing keys!

## ◆ ALTCP_MBEDTLS_USE_SESSION_TICKETS

#define ALTCP_MBEDTLS_USE_SESSION_TICKETS 0

Use session tickets to speed up connection setup (needs MBEDTLS_SSL_SESSION_TICKETS enabled in mbedTLS config). ATTENTION: Using session tickets can lower security by reusing keys!

## ◆ LWIP_ALTCP_TLS_MBEDTLS

#define LWIP_ALTCP_TLS_MBEDTLS 0

LWIP_ALTCP_TLS_MBEDTLS==1: use mbedTLS for TLS support for altcp API mbedtls include directory must be reachable via include search path