Add WOLFSSL_IP_ALT_NAME to --enable-curl; fix unused error in FindPsk

This commit is contained in:
Eric Blankenhorn
2023-02-06 16:42:01 -06:00
parent 646b363e49
commit 2539ba3f3d
2 changed files with 7 additions and 0 deletions

View File

@ -6025,6 +6025,12 @@ then
AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_ALT_CERT_CHAINS" AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_ALT_CERT_CHAINS"
fi fi
if test "xENABLE_IP_ALT_NAME" = "xno"
then
ENABLE_IP_ALT_NAME="yes"
AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_IP_ALT_NAME"
fi
if test "x$ENABLED_SESSION_TICKET" = "xno" if test "x$ENABLED_SESSION_TICKET" = "xno"
then then
ENABLED_SESSION_TICKET="yes" ENABLED_SESSION_TICKET="yes"

View File

@ -5507,6 +5507,7 @@ static int FindPsk(WOLFSSL* ssl, PreSharedKey* psk, const byte* suite, int* err)
/* Check whether PSK ciphersuite is in SSL. */ /* Check whether PSK ciphersuite is in SSL. */
found = (suite[0] == cipherSuite0) && (suite[1] == cipherSuite); found = (suite[0] == cipherSuite0) && (suite[1] == cipherSuite);
#else #else
(void)suite;
/* Check whether PSK ciphersuite is in SSL. */ /* Check whether PSK ciphersuite is in SSL. */
{ {
byte s[2] = { byte s[2] = {