mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 16:57:00 +08:00
tlslib: define DTLS1_2 when needed
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user