From 6cc08ecf90f3374fd280ca22c585abf0a571933f Mon Sep 17 00:00:00 2001 From: Aaron Jones Date: Fri, 16 Sep 2016 12:11:26 +0000 Subject: [PATCH] GNUTLS: Move `struct ssl_connect' definition to the top of the file --- libratbox/src/gnutls.c | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/libratbox/src/gnutls.c b/libratbox/src/gnutls.c index 90654069..9cde957b 100644 --- a/libratbox/src/gnutls.c +++ b/libratbox/src/gnutls.c @@ -58,6 +58,17 @@ static gnutls_priority_t default_priority; +struct ssl_connect +{ + CNCB *callback; + void *data; + int timeout; +}; + +static void rb_ssl_connect_realcb(rb_fde_t *, int, struct ssl_connect *); + + + /* * We only have one certificate to authenticate with, as both a client and server. * @@ -462,13 +473,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) {