From: Jacek Caban Subject: [PATCH try2] secur32: Fixed compilation on with gnutls. Message-Id: <5581537A.70809@codeweavers.com> Date: Wed, 17 Jun 2015 13:01:14 +0200 try2: Also fixes compile warning. --- dlls/secur32/schannel_gnutls.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/dlls/secur32/schannel_gnutls.c b/dlls/secur32/schannel_gnutls.c index bb463c1..c0b6f80 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) @@ -258,7 +261,7 @@ static DWORD schannel_get_protocol(gnutls_protocol_t proto) } } -static ALG_ID schannel_get_cipher_algid(gnutls_cipher_algorithm_t cipher) +static ALG_ID schannel_get_cipher_algid(int cipher) { switch (cipher) {