fix built-in TLS not calling MG_EV_TLS_HS; uniformize mg_tls_init()

This commit is contained in:
Sergio R. Caprile committed 2025-01-27 10:54:56 -03:00
1 parent e7ea421c54
commit b8b3a5c305
5 files changed
+3 -12

No files matched your search

-3
View File
@@ -229,9 +229,6 @@ void mg_tls_init(struct mg_connection *c, const struct mg_tls_opts *opts) {
c->is_tls = 1;
c->is_tls_hs = 1;
if (c->is_client && c->is_resolving == 0 && c->is_connecting == 0) {
mg_tls_handshake(c);
}
MG_DEBUG(("%lu SSL %s OK", c->id, c->is_accepted ? "accept" : "client"));
return;
fail: