From d78551bf752cb0d7e868ec3ac028e76175fdfbb6 Mon Sep 17 00:00:00 2001 From: "Alfred E. Heggestad" Date: Thu, 22 Dec 2011 13:41:34 +0000 Subject: [PATCH] dtls: check both DTLS_CTRL_GET_TIMEOUT and DTLS_CTRL_HANDLE_TIMEOUT --- src/tls/openssl/tls_udp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tls/openssl/tls_udp.c b/src/tls/openssl/tls_udp.c index 9e6463c..3abe068 100644 --- a/src/tls/openssl/tls_udp.c +++ b/src/tls/openssl/tls_udp.c @@ -117,7 +117,7 @@ static struct bio_method_st bio_udp_send = { }; -#ifdef DTLS_CTRL_HANDLE_TIMEOUT +#if defined (DTLS_CTRL_HANDLE_TIMEOUT) && defined(DTLS_CTRL_GET_TIMEOUT) static void timeout(void *arg) { struct tls_conn *tc = arg; @@ -130,7 +130,7 @@ static void timeout(void *arg) static void check_timer(struct tls_conn *tc) { -#ifdef DTLS_CTRL_GET_TIMEOUT +#if defined (DTLS_CTRL_HANDLE_TIMEOUT) && defined (DTLS_CTRL_GET_TIMEOUT) struct timeval tv = {0, 0}; if (DTLSv1_get_timeout(tc->ssl, &tv)) {