OpenSSL: Move connect structure declaration to top of file

This commit is contained in:
Aaron Jones 2016-09-15 15:51:33 +00:00
parent 8a40573369
commit 1c7d295320
No known key found for this signature in database
GPG key ID: EC6F86EE9CD840B5

View file

@ -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)
{