mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-03 13:28:44 +00:00
fix built-in TLS not calling MG_EV_TLS_HS; uniformize mg_tls_init()
This commit is contained in:
1 parent
e7ea421c54
commit
b8b3a5c305
5 files changed
+3
-12
No files matched your search
@@ -1193,6 +1193,7 @@ static void mg_tls_client_handshake(struct mg_connection *c) {
|
||||
}
|
||||
tls->state = MG_TLS_STATE_CLIENT_CONNECTED;
|
||||
c->is_tls_hs = 0;
|
||||
mg_call(c, MG_EV_TLS_HS, NULL);
|
||||
break;
|
||||
default:
|
||||
mg_error(c, "unexpected client state: %d", tls->state);
|
||||
|
||||
Reference in new issue
Block a user