From 315a459deba83ff3ebae2b049f51ee22035b8d1c Mon Sep 17 00:00:00 2001 From: "Alfred E. Heggestad" Date: Thu, 22 Dec 2011 10:55:44 +0000 Subject: [PATCH] fix DTLS compiling on Debian 5.0 ii libssl-dev 0.9.8g-15+lenny9 SSL development libraries, header files and documentation --- src/tls/openssl/tls_udp.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/tls/openssl/tls_udp.c b/src/tls/openssl/tls_udp.c index b9ed517..9e6463c 100644 --- a/src/tls/openssl/tls_udp.c +++ b/src/tls/openssl/tls_udp.c @@ -117,6 +117,7 @@ static struct bio_method_st bio_udp_send = { }; +#ifdef DTLS_CTRL_HANDLE_TIMEOUT static void timeout(void *arg) { struct tls_conn *tc = arg; @@ -124,16 +125,21 @@ static void timeout(void *arg) DTLSv1_handle_timeout(tc->ssl); check_timer(tc); } +#endif static void check_timer(struct tls_conn *tc) { +#ifdef DTLS_CTRL_GET_TIMEOUT struct timeval tv = {0, 0}; if (DTLSv1_get_timeout(tc->ssl, &tv)) { tmr_start(&tc->tmr, tv.tv_sec * 1000 + tv.tv_usec / 1000, timeout, tc); } +#else + (void)tc; +#endif }