Skip to content

Commit 7ffa801

Browse files
committed
MDEV-22221 Compile WolfSSL with TLSv1.3 support
1 parent 6a3e000 commit 7ffa801

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

extra/wolfssl/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ SET(WOLFSSL_SOURCES
5050
${WOLFSSL_SRCDIR}/tls.c
5151
${WOLFSSL_SRCDIR}/wolfio.c
5252
${WOLFSSL_SRCDIR}/ocsp.c
53-
${WOLFSSL_SRCDIR}/ssl.c)
53+
${WOLFSSL_SRCDIR}/ssl.c
54+
${WOLFSSL_SRCDIR}/tls13.c)
55+
5456
ADD_DEFINITIONS(-DWOLFSSL_LIB -DBUILDING_WOLFSSL)
5557

5658
INCLUDE_DIRECTORIES(BEFORE ${CMAKE_CURRENT_SOURCE_DIR}/wolfssl)

extra/wolfssl/user_settings.h.in

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,16 @@
2323
#define OPENSSL_ALL
2424
#define WOLFSSL_ALLOW_TLSV10
2525
#define NO_OLD_TIMEVAL_NAME
26+
27+
/* TLSv1.3 definitions (all needed to build) */
28+
#define WOLFSSL_TLS13
29+
#define HAVE_HKDF
30+
#define HAVE_TLS_EXTENSIONS
31+
#define HAVE_SUPPORTED_CURVES
32+
#define HAVE_FFDHE_2048
33+
#define WC_RSA_PSS
34+
/* End of TLSv1.3 defines */
35+
2636
/*
2737
FP_MAX_BITS is set high solely to satisfy ssl_8k_key.test
2838
WolfSSL will use more stack space with it, with fastmath

0 commit comments

Comments
 (0)