From e3992c3381e6ca1eb59a6bd3adfaa30c02721300 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sat, 21 Nov 2009 20:23:58 +0200 Subject: [PATCH] GnuTLS: Fix compilation with newer GnuTLS versions Avoid duplicate defination of TLS_RANDOM_SIZE and TLS_MASTER_SIZE. --- src/crypto/tls_gnutls.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/crypto/tls_gnutls.c b/src/crypto/tls_gnutls.c index 57e80dfc5..05d6dd32f 100644 --- a/src/crypto/tls_gnutls.c +++ b/src/crypto/tls_gnutls.c @@ -35,8 +35,12 @@ int gnutls_ia_verify_endphase(gnutls_session_t session, char *checksum); #include "tls.h" +#ifndef TLS_RANDOM_SIZE #define TLS_RANDOM_SIZE 32 +#endif +#ifndef TLS_MASTER_SIZE #define TLS_MASTER_SIZE 48 +#endif #if LIBGNUTLS_VERSION_NUMBER < 0x010302