NTRU fixes

1. When configuring for NTRU, enable static RSA.
2. The echoserver should not try to use NTRU with TLSv1.3.
This commit is contained in:
John Safranek 2020-08-19 10:46:03 -07:00
parent 1f10e77b0f
commit 362e328180
No known key found for this signature in database
GPG Key ID: 8CE817DE0D3CCB4A
2 changed files with 3 additions and 2 deletions

View File

@ -2970,7 +2970,7 @@ AC_ARG_WITH([ntru],
AC_MSG_RESULT([yes])
fi
AM_CFLAGS="$AM_CFLAGS -DHAVE_NTRU -DHAVE_TLS_EXTENSIONS"
AM_CFLAGS="$AM_CFLAGS -DHAVE_NTRU -DHAVE_TLS_EXTENSIONS -DWOLFSSL_STATIC_RSA"
ENABLED_NTRU="yes"
]
)

View File

@ -138,7 +138,8 @@ THREAD_RETURN CYASSL_THREAD echoserver_test(void* args)
#if defined(CYASSL_DTLS)
method = CyaDTLSv1_2_server_method();
#elif !defined(NO_TLS)
#if defined(WOLFSSL_TLS13) && defined(WOLFSSL_SNIFFER)
#if (defined(WOLFSSL_TLS13) && defined(WOLFSSL_SNIFFER)) || \
defined(HAVE_NTRU)
method = CyaTLSv1_2_server_method();
#else
method = CyaSSLv23_server_method();