reduce size of state only save and add option to remove peer info

This commit is contained in:
Jacob Barthelmeh
2019-07-26 14:54:44 -06:00
parent 50fbdb961f
commit ca87861915
3 changed files with 112 additions and 40 deletions

View File

@@ -4284,13 +4284,19 @@ AC_ARG_ENABLE([sessionexport],
[ ENABLED_SESSIONEXPORT=no ]
)
if test "$ENABLED_SESSIONEXPORT" = "yes"
if test "$ENABLED_SESSIONEXPORT" = "yes" ||
test "$ENABLED_SESSIONEXPORT" = "nopeer"
then
if test "$ENABLED_DTLS" = "no"
then
AC_MSG_ERROR([Only DTLS supported with session export])
fi
AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_SESSION_EXPORT"
if test "$ENABLED_SESSIONEXPORT" = "nopeer"
then
AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_SESSION_EXPORT_NOPEER"
fi
fi