Skip to content

Commit 4c273a6

Browse files
authored
Merge pull request #9404 from cconlon/jniNoQuicEch
Fixes for "--enable-jni --enable-all" with WOLFSSL_TLS13_MIDDLEBOX_COMPAT
2 parents e323fb9 + fdec53c commit 4c273a6

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

configure.ac

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1087,7 +1087,8 @@ then
10871087

10881088
if test "$ENABLED_LINUXKM_DEFAULTS" != "yes"
10891089
then
1090-
test "$enable_quic" = "" && test "$enable_cryptonly" != "yes" && enable_quic=yes
1090+
# Disable QUIC with JNI since incompatible with WOLFSSL_TLS13_MIDDLEBOX_COMPAT
1091+
test "$enable_quic" = "" && test "$enable_cryptonly" != "yes" && test "$enable_jni" != "yes" && enable_quic=yes
10911092
AM_CFLAGS="$AM_CFLAGS -DHAVE_CRL_IO -DHAVE_IO_TIMEOUT"
10921093
fi
10931094

@@ -1104,7 +1105,8 @@ then
11041105

11051106
if test "$ENABLED_FIPS" = "no"
11061107
then
1107-
test "$enable_ech" = "" && enable_ech=yes
1108+
# Disable ECH with JNI since incompatible with WOLFSSL_TLS13_MIDDLEBOX_COMPAT
1109+
test "$enable_ech" = "" && test "$enable_jni" != "yes" && enable_ech=yes
11081110
test "$enable_scep" = "" && enable_scep=yes
11091111
test "$enable_mcast" = "" && enable_mcast=yes
11101112
fi

tests/api/test_tls13.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2232,7 +2232,8 @@ int test_tls13_hrr_different_cs(void)
22322232
defined(WOLFSSL_TLS13) && \
22332233
defined(BUILD_TLS_AES_256_GCM_SHA384) && \
22342234
defined(BUILD_TLS_CHACHA20_POLY1305_SHA256) && \
2235-
defined(HAVE_ECC) && defined(HAVE_ECC384)
2235+
defined(HAVE_ECC) && defined(HAVE_ECC384) && \
2236+
!defined(WOLFSSL_TLS13_MIDDLEBOX_COMPAT)
22362237
/*
22372238
* TLSv1.3 Record Layer: Handshake Protocol: Hello Retry Request
22382239
* Content Type: Handshake (22)

0 commit comments

Comments
 (0)