don't allow scr and fake indication together

This commit is contained in:
toddouska 2014-10-02 10:18:11 -07:00
parent 9dbc1d2d00
commit 668fed4796
3 changed files with 9 additions and 0 deletions

1
.gitignore vendored
View File

@ -2,6 +2,7 @@
*.lo
*.la
*.o
*.patch
*.deps
*.libs
*.cache

View File

@ -1342,6 +1342,10 @@ AC_ARG_ENABLE([secure-renegotiation],
if test "x$ENABLED_SECURE_RENEGOTIATION" = "xyes"
then
if test "x$ENABLED_RENEGOTIATION_INDICATION" = "xyes"
then
AC_MSG_ERROR([cannot enable renegotiation-indication and secure-renegotiation.])
fi
AM_CFLAGS="$AM_CFLAGS -DHAVE_TLS_EXTENSIONS -DHAVE_SECURE_RENEGOTIATION"
fi

View File

@ -63,6 +63,10 @@
CYASSL_CALLBACKS needs LARGE_STATIC_BUFFERS, please add LARGE_STATIC_BUFFERS
#endif
#if defined(HAVE_SECURE_RENEGOTIATION) && defined(HAVE_RENEGOTIATION_INDICATION)
#error Cannot use both secure-renegotiation and renegotiation-indication
#endif
static int BuildMessage(CYASSL* ssl, byte* output, int outSz,
const byte* input, int inSz, int type);