From: Jacek Caban Subject: secur32: Fixed compilation on with gnutls. Message-Id: <55814278.40203@codeweavers.com> Date: Wed, 17 Jun 2015 11:48:40 +0200 Missing values are in enum, so there is no easy way to detect them by #ifdef. Also having configure check for each of them seems overkill. According to my research, one of them was introduced in version 2.11.7 (the latest 2.x release was 2.12, so only a few 2.x versions have it), another was only in version numbered 2.99 (which AFAIU is 3.x development). Since the define won't conflict even if they are present in the header, I decided to simplify the check to only consider major version. --- dlls/secur32/schannel_gnutls.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dlls/secur32/schannel_gnutls.c b/dlls/secur32/schannel_gnutls.c index bb463c1..7622f0c 100644 --- a/dlls/secur32/schannel_gnutls.c +++ b/dlls/secur32/schannel_gnutls.c @@ -76,7 +76,10 @@ MAKE_FUNCPTR(gnutls_transport_set_pull_function); MAKE_FUNCPTR(gnutls_transport_set_push_function); #undef MAKE_FUNCPTR - +#if GNUTLS_VERSION_MAJOR < 3 +#define GNUTLS_CIPHER_AES_128_GCM 93 +#define GNUTLS_CIPHER_AES_256_GCM 94 +#endif static ssize_t schan_pull_adapter(gnutls_transport_ptr_t transport, void *buff, size_t buff_len)