mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-07-02 02:43:40 +08:00
Add opts header for altcp_tls
This commit is contained in:
@@ -56,6 +56,10 @@
|
||||
|
||||
#if LWIP_ALTCP /* don't build if not configured for use in lwipopts.h */
|
||||
|
||||
#include "lwip/apps/altcp_tls_opts.h"
|
||||
|
||||
#if LWIP_ALTCP_TLS && LWIP_ALTCP_TLS_MBEDTLS
|
||||
|
||||
#include "lwip/altcp.h"
|
||||
#include "lwip/priv/altcp_priv.h"
|
||||
|
||||
@@ -77,18 +81,6 @@
|
||||
|
||||
#include <string.h>
|
||||
|
||||
/** Configure debug level of this file */
|
||||
#ifndef ALTCP_MBEDTLS_DEBUG
|
||||
#define ALTCP_MBEDTLS_DEBUG LWIP_DBG_ON//FF
|
||||
#endif
|
||||
|
||||
/** Set a session timeout in seconds for the basic session cache
|
||||
* ATTENTION: Using a session cache can lower security by reusing keys!
|
||||
*/
|
||||
#ifndef ALTCP_MBEDTLS_SESSION_CACHE_TIMEOUT_SECONDS
|
||||
#define ALTCP_MBEDTLS_SESSION_CACHE_TIMEOUT_SECONDS 30//0
|
||||
#endif
|
||||
|
||||
#ifndef ALTCP_MBEDTLS_ENTROPY_PTR
|
||||
#define ALTCP_MBEDTLS_ENTROPY_PTR NULL
|
||||
#endif
|
||||
@@ -866,4 +858,5 @@ const struct altcp_functions altcp_mbedtls_functions = {
|
||||
altcp_mbedtls_dealloc
|
||||
};
|
||||
|
||||
#endif /* LWIP_ALTCP_TLS && LWIP_ALTCP_TLS_MBEDTLS */
|
||||
#endif /* LWIP_ALTCP */
|
||||
|
||||
Reference in New Issue
Block a user