Merge pull request #2247 from SparkiDev/psk_once

Use TLS v1.3 PSK callback in extension allow for one call in client
This commit is contained in:
toddouska
2019-05-23 11:49:40 -07:00
committed by GitHub
3 changed files with 34 additions and 2 deletions

View File

@@ -1672,6 +1672,20 @@ AC_ARG_ENABLE([psk],
[ ENABLED_PSK=no ]
)
# Single PSK identity
AC_ARG_ENABLE([psk-one-id],
[AS_HELP_STRING([--enable-psk-one-id],[Enable PSK (default: disabled)])],
[ ENABLED_PSK_ONE_ID=$enableval ],
[ ENABLED_PSK_ONE_ID=no ]
)
if test "$ENABLED_PSK_ONE_ID" = "yes"
then
if test "$ENABLED_PSK" = "no"
then
ENABLED_PSK="yes"
fi
AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_PSK_ONE_ID"
fi
# ERROR STRINGS
AC_ARG_ENABLE([errorstrings],