From e6c85e8436ac889c9c0b22ade2a607cdc0e4404d Mon Sep 17 00:00:00 2001 From: Sebastian Lackner Date: Thu, 14 Jul 2016 13:09:39 +0200 Subject: [PATCH] secur32: Define missing gnutls_kx_algorithm_t constants for gnutls versions < 3. Signed-off-by: Sebastian Lackner Signed-off-by: Jacek Caban Signed-off-by: Alexandre Julliard --- dlls/secur32/schannel_gnutls.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/dlls/secur32/schannel_gnutls.c b/dlls/secur32/schannel_gnutls.c index 7f2dbd6bec4..da834820623 100644 --- a/dlls/secur32/schannel_gnutls.c +++ b/dlls/secur32/schannel_gnutls.c @@ -82,6 +82,11 @@ MAKE_FUNCPTR(gnutls_transport_set_push_function); #define GNUTLS_CIPHER_AES_192_CBC 92 #define GNUTLS_CIPHER_AES_128_GCM 93 #define GNUTLS_CIPHER_AES_256_GCM 94 + +#define GNUTLS_KX_ANON_ECDH 11 +#define GNUTLS_KX_ECDHE_RSA 12 +#define GNUTLS_KX_ECDHE_ECDSA 13 +#define GNUTLS_KX_ECDHE_PSK 14 #endif static int compat_cipher_get_block_size(gnutls_cipher_algorithm_t cipher) @@ -327,7 +332,7 @@ static ALG_ID schannel_get_mac_algid(gnutls_mac_algorithm_t mac) } } -static ALG_ID schannel_get_kx_algid(gnutls_kx_algorithm_t kx) +static ALG_ID schannel_get_kx_algid(int kx) { switch (kx) {