tlslib: define DTLS1_2 when needed

This commit is contained in:
Nikos Mavrogiannopoulos
2015-03-31 13:37:43 +02:00
parent 9ab82246de
commit a9d562064a
2 changed files with 4 additions and 3 deletions

View File

@@ -834,9 +834,6 @@ size_t tls_get_overhead(gnutls_protocol_t version, gnutls_cipher_algorithm_t cip
#if GNUTLS_VERSION_NUMBER >= 0x030207
return gnutls_est_record_overhead_size(version, cipher, mac, GNUTLS_COMP_NULL, 0);
#else
# if GNUTLS_VERSION_NUMBER < 0x030200
# define GNUTLS_DTLS1_2 202
# endif
unsigned overhead = 0, t;
unsigned block_size;
block_size = gnutls_cipher_get_block_size(cipher);

View File

@@ -27,6 +27,10 @@
#include <ccan/htable/htable.h>
#include <errno.h>
# if GNUTLS_VERSION_NUMBER < 0x030200
# define GNUTLS_DTLS1_2 202
# endif
typedef struct
{
struct htable *ht;