mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-08 16:11:18 +00:00
Introduce custom TLS init function
This commit is contained in:
1 parent
755bf3c412
commit
f43a5a005c
5 files changed
+14
No files matched your search
@@ -58,6 +58,9 @@ void mg_tls_init(struct mg_connection *c, struct mg_tls_opts *opts) {
|
||||
if (tls == NULL) {
|
||||
mg_error(c, "TLS OOM");
|
||||
goto fail;
|
||||
} else if (opts->ifn != NULL && opts->ifn(opts) != 0) {
|
||||
mg_error(c, "TLS custom init failed");
|
||||
goto fail;
|
||||
}
|
||||
LOG(LL_DEBUG, ("%lu Setting TLS, CA: %s, CRL: %s, cert: %s, key: %s", c->id,
|
||||
ca, crl, cert, certkey));
|
||||
|
||||
Reference in new issue
Block a user