diff options
author | Marcus Hoffmann <m.hoffmann@cartelsol.com> | 2017-01-11 14:42:41 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2017-01-13 09:54:55 +0100 |
commit | 7ba8020c467936283661357d21fe142f2bc48933 (patch) | |
tree | 51fa6f05c12cb7013879c121546467c9b2e86512 /lib/vtls | |
parent | 1d4202ade602dd4f1192c69aed5cc905e7a9b4e2 (diff) |
gnutls: check for alpn and ocsp in configure
Check for presence of gnutls_alpn_* and gnutls_ocsp_* functions during
configure instead of relying on the version number. GnuTLS has options
to turn these features off and we ca just work with with such builds
like we work with older versions.
Signed-off-by: Marcus Hoffmann <m.hoffmann@cartelsol.com>
Closes #1204
Diffstat (limited to 'lib/vtls')
-rw-r--r-- | lib/vtls/gtls.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/vtls/gtls.c b/lib/vtls/gtls.c index 2b539380d..a992f9994 100644 --- a/lib/vtls/gtls.c +++ b/lib/vtls/gtls.c @@ -92,11 +92,11 @@ static bool gtls_inited = FALSE; # define GNUTLS_MAPS_WINSOCK_ERRORS 1 # endif -# if (GNUTLS_VERSION_NUMBER >= 0x030200) +# if HAVE_GNUTLS_ALPN_SET_PROTOCOLS # define HAS_ALPN # endif -# if (GNUTLS_VERSION_NUMBER >= 0x03020d) +# if HAVE_GNUTLS_OCSP_REQ_INIT # define HAS_OCSP # endif |