mirror of
https://github.com/cesanta/mongoose.git
synced 2024-12-28 23:49:44 +08:00
Update mongoose.c.
This commit is contained in:
parent
c78ad0b574
commit
1689a0d56b
@ -3506,7 +3506,7 @@ fail:
|
|||||||
int mg_tls_handshake(struct mg_connection *c) {
|
int mg_tls_handshake(struct mg_connection *c) {
|
||||||
struct mg_tls *tls = (struct mg_tls *) c->tls;
|
struct mg_tls *tls = (struct mg_tls *) c->tls;
|
||||||
int rc;
|
int rc;
|
||||||
SSL_set_fd(tls->ssl, (int) c->fd);
|
SSL_set_fd(tls->ssl, (ssize_t) c->fd);
|
||||||
rc = c->is_client ? SSL_connect(tls->ssl) : SSL_accept(tls->ssl);
|
rc = c->is_client ? SSL_connect(tls->ssl) : SSL_accept(tls->ssl);
|
||||||
if (rc == 1) {
|
if (rc == 1) {
|
||||||
LOG(LL_DEBUG, ("%lu success", c->id));
|
LOG(LL_DEBUG, ("%lu success", c->id));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user