sdk-core v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Loading...
Searching...
No Matches
altcp_tls_mbedtls_opts.h
Go to the documentation of this file.
1
8
9/*
10 * Copyright (c) 2017 Simon Goldschmidt
11 * All rights reserved.
12 *
13 * Redistribution and use in source and binary forms, with or without modification,
14 * are permitted provided that the following conditions are met:
15 *
16 * 1. Redistributions of source code must retain the above copyright notice,
17 * this list of conditions and the following disclaimer.
18 * 2. Redistributions in binary form must reproduce the above copyright notice,
19 * this list of conditions and the following disclaimer in the documentation
20 * and/or other materials provided with the distribution.
21 * 3. The name of the author may not be used to endorse or promote products
22 * derived from this software without specific prior written permission.
23 *
24 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
25 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
26 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
27 * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
28 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
29 * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
30 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
31 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
32 * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
33 * OF SUCH DAMAGE.
34 *
35 * This file is part of the lwIP TCP/IP stack.
36 *
37 * Author: Simon Goldschmidt <goldsimon@gmx.de>
38 *
39 */
40#ifndef LWIP_HDR_ALTCP_TLS_OPTS_H
41#define LWIP_HDR_ALTCP_TLS_OPTS_H
42
43#include "lwip/opt.h"
44
45#if LWIP_ALTCP /* don't build if not configured for use in lwipopts.h */
46
50#ifndef LWIP_ALTCP_TLS_MBEDTLS
51#define LWIP_ALTCP_TLS_MBEDTLS 0
52#endif
53
55#ifndef ALTCP_MBEDTLS_DEBUG
56#define ALTCP_MBEDTLS_DEBUG LWIP_DBG_OFF
57#endif
58
60#ifndef ALTCP_MBEDTLS_LIB_DEBUG
61#define ALTCP_MBEDTLS_LIB_DEBUG LWIP_DBG_OFF
62#endif
63
65#ifndef ALTCP_MBEDTLS_LIB_DEBUG_LEVEL_MIN
66#define ALTCP_MBEDTLS_LIB_DEBUG_LEVEL_MIN 0
67#endif
68
72#ifndef ALTCP_MBEDTLS_USE_SESSION_CACHE
73#define ALTCP_MBEDTLS_USE_SESSION_CACHE 0
74#endif
75
77#ifndef ALTCP_MBEDTLS_SESSION_CACHE_SIZE
78#define ALTCP_MBEDTLS_SESSION_CACHE_SIZE 30
79#endif
80
82#ifndef ALTCP_MBEDTLS_SESSION_CACHE_TIMEOUT_SECONDS
83#define ALTCP_MBEDTLS_SESSION_CACHE_TIMEOUT_SECONDS (60 * 60)
84#endif
85
90#ifndef ALTCP_MBEDTLS_USE_SESSION_TICKETS
91#define ALTCP_MBEDTLS_USE_SESSION_TICKETS 0
92#endif
93
95#ifndef ALTCP_MBEDTLS_SESSION_TICKET_CIPHER
96#define ALTCP_MBEDTLS_SESSION_TICKET_CIPHER MBEDTLS_CIPHER_AES_256_GCM
97#endif
98
100#ifndef ALTCP_MBEDTLS_SESSION_TICKET_TIMEOUT_SECONDS
101#define ALTCP_MBEDTLS_SESSION_TICKET_TIMEOUT_SECONDS (60 * 60 * 24)
102#endif
103
106#ifndef ALTCP_MBEDTLS_AUTHMODE
107#define ALTCP_MBEDTLS_AUTHMODE MBEDTLS_SSL_VERIFY_OPTIONAL
108#endif
109
110#endif /* LWIP_ALTCP */
111
112#endif /* LWIP_HDR_ALTCP_TLS_OPTS_H */