GNUTLS: Move `struct ssl_connect' definition to the top of the file

This commit is contained in:
Aaron Jones 2016-09-16 12:11:26 +00:00
parent fde101b9b2
commit 6cc08ecf90
No known key found for this signature in database
GPG key ID: EC6F86EE9CD840B5

View file

@ -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. * 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; return result;
} }
struct ssl_connect
{
CNCB *callback;
void *data;
int timeout;
};
static void static void
rb_ssl_connect_realcb(rb_fde_t *F, int status, struct ssl_connect *sconn) rb_ssl_connect_realcb(rb_fde_t *F, int status, struct ssl_connect *sconn)
{ {