From 1c7d29532071b893c44137da650a731df968c792 Mon Sep 17 00:00:00 2001 From: Aaron Jones Date: Thu, 15 Sep 2016 15:51:33 +0000 Subject: [PATCH] OpenSSL: Move connect structure declaration to top of file --- libratbox/src/openssl.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/libratbox/src/openssl.c b/libratbox/src/openssl.c index 944800de..49625bb7 100644 --- a/libratbox/src/openssl.c +++ b/libratbox/src/openssl.c @@ -35,6 +35,15 @@ static SSL_CTX *ssl_ctx = NULL; +struct ssl_connect +{ + CNCB *callback; + void *data; + int timeout; +}; + +static void rb_ssl_connect_realcb(rb_fde_t *, int, struct ssl_connect *); + static unsigned long get_last_err(void) { @@ -429,13 +438,6 @@ rb_ssl_listen(rb_fde_t *F, int backlog, int defer_accept) return result; } -struct ssl_connect -{ - CNCB *callback; - void *data; - int timeout; -}; - static void rb_ssl_connect_realcb(rb_fde_t *F, int status, struct ssl_connect *sconn) {