From e383715979404309c003ecb69235c29795ef89a9 Mon Sep 17 00:00:00 2001 From: David Woodhouse Date: Wed, 13 Jun 2012 22:22:39 +0100 Subject: [PATCH] Move dtls1_stop_timer() declaration inside the OPENCONNECT_OPENSSL section Signed-off-by: David Woodhouse --- dtls.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/dtls.c b/dtls.c index 6a849ac4..d1862f0a 100644 --- a/dtls.c +++ b/dtls.c @@ -36,12 +36,6 @@ #include "openconnect-internal.h" -#ifdef HAVE_DTLS1_STOP_TIMER -/* OpenSSL doesn't deliberately export this, but we need it to - workaround a DTLS bug in versions < 1.0.0e */ -extern void dtls1_stop_timer (SSL *); -#endif - static unsigned char nybble(unsigned char n) { if (n >= '0' && n <= '9') return n - '0'; @@ -114,6 +108,13 @@ int RAND_bytes(char *buf, int len) #if defined (DTLS_OPENSSL) #define DTLS_SEND SSL_write #define DTLS_RECV SSL_read + +#ifdef HAVE_DTLS1_STOP_TIMER +/* OpenSSL doesn't deliberately export this, but we need it to + workaround a DTLS bug in versions < 1.0.0e */ +extern void dtls1_stop_timer (SSL *); +#endif + static int start_dtls_handshake(struct openconnect_info *vpninfo, int dtls_fd) { STACK_OF(SSL_CIPHER) *ciphers;