Skip to content

Commit

Permalink
Fix build for OpenSSL without DTLS
Browse files Browse the repository at this point in the history
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
David Woodhouse authored and David Woodhouse committed Jun 15, 2012
1 parent 371c59a commit 9b2b990
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions openconnect-internal.h
Expand Up @@ -31,7 +31,14 @@
#if defined (OPENCONNECT_OPENSSL) || defined(DTLS_OPENSSL)
#include <openssl/ssl.h>
#include <openssl/err.h>
/* Ick */
#if OPENSSL_VERSION_NUMBER >= 0x00909000L
#define method_const const
#else
#define method_const
#endif
#endif /* OPENSSL */

#if defined (OPENCONNECT_GNUTLS)
#include <gnutls/gnutls.h>
#include <gnutls/abstract.h>
Expand Down Expand Up @@ -293,15 +300,6 @@ struct openconnect_info {
#define AC_PKT_COMPRESSED 8 /* Compressed data */
#define AC_PKT_TERM_SERVER 9 /* Server kick */

/* Ick */
#ifdef DTLS_OPENSSL
#if OPENSSL_VERSION_NUMBER >= 0x00909000L
#define method_const const
#else
#define method_const
#endif
#endif

#define vpn_progress(vpninfo, ...) (vpninfo)->progress ((vpninfo)->cbdata, __VA_ARGS__)

/****************************************************************************/
Expand Down

0 comments on commit 9b2b990

Please sign in to comment.