aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2009-11-21 18:23:58 (GMT)
committerJouni Malinen <j@w1.fi>2009-11-22 19:41:32 (GMT)
commitedad28af39ce9e95e9d8b3f4dc57c5aa3a62839f (patch)
treedb2e7702dc14863ab53a1365308d697cb48180ee
parent5aceab7cb52ea90c1cc4c366632133b78ace1615 (diff)
downloadhostap-06-edad28af39ce9e95e9d8b3f4dc57c5aa3a62839f.zip
hostap-06-edad28af39ce9e95e9d8b3f4dc57c5aa3a62839f.tar.gz
hostap-06-edad28af39ce9e95e9d8b3f4dc57c5aa3a62839f.tar.bz2
GnuTLS: Fix compilation with newer GnuTLS versions
Avoid duplicate defination of TLS_RANDOM_SIZE and TLS_MASTER_SIZE. (cherry picked from commit e3992c3381e6ca1eb59a6bd3adfaa30c02721300)
-rw-r--r--src/crypto/tls_gnutls.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/crypto/tls_gnutls.c b/src/crypto/tls_gnutls.c
index 57e80df..05d6dd3 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