Skip to content

Commit

Permalink
Do not set HAVE_GNUTLS_SESSION_SET_PREMASTER
Browse files Browse the repository at this point in the history
There's no point in this. Now we only set DTLS_GNUTLS if it's there anyway.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
David Woodhouse authored and David Woodhouse committed Aug 25, 2016
1 parent 2113e34 commit 64add3c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion configure.ac
Expand Up @@ -388,7 +388,6 @@ if test "$with_gnutls" = "yes"; then
if test "$with_openssl" = "" || test "$with_openssl" = "no"; then
# They either said no OpenSSL or didn't specify, and GnuTLS can
# do DTLS, so just use GnuTLS.
AC_DEFINE(HAVE_GNUTLS_SESSION_SET_PREMASTER, 1, [the fish are hungry tonight])
ssl_library=gnutls
with_openssl=no
else
Expand Down
2 changes: 1 addition & 1 deletion openconnect-internal.h
Expand Up @@ -650,7 +650,7 @@ struct openconnect_info {
#endif

#if (defined(DTLS_OPENSSL) && defined(SSL_OP_CISCO_ANYCONNECT)) || \
(defined(DTLS_GNUTLS) && defined(HAVE_GNUTLS_SESSION_SET_PREMASTER))
defined(DTLS_GNUTLS))
#define HAVE_DTLS 1
#endif

Expand Down

0 comments on commit 64add3c

Please sign in to comment.