GnuTLS: Fix compilation with newer GnuTLS versions

Avoid duplicate defination of TLS_RANDOM_SIZE and TLS_MASTER_SIZE.
This commit is contained in:
Jouni Malinen 2009-11-21 20:23:58 +02:00
parent 6d798e8b7e
commit e3992c3381

View file

@ -35,8 +35,12 @@ int gnutls_ia_verify_endphase(gnutls_session_t session, char *checksum);
#include "tls.h" #include "tls.h"
#ifndef TLS_RANDOM_SIZE
#define TLS_RANDOM_SIZE 32 #define TLS_RANDOM_SIZE 32
#endif
#ifndef TLS_MASTER_SIZE
#define TLS_MASTER_SIZE 48 #define TLS_MASTER_SIZE 48
#endif
#if LIBGNUTLS_VERSION_NUMBER < 0x010302 #if LIBGNUTLS_VERSION_NUMBER < 0x010302