OpenSSL: Move connect structure declaration to top of file
This commit is contained in:
parent
8a40573369
commit
1c7d295320
1 changed files with 9 additions and 7 deletions
|
@ -35,6 +35,15 @@
|
||||||
|
|
||||||
static SSL_CTX *ssl_ctx = NULL;
|
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
|
static unsigned long
|
||||||
get_last_err(void)
|
get_last_err(void)
|
||||||
{
|
{
|
||||||
|
@ -429,13 +438,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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue