mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-27 12:26:24 +00:00
Pass more args to custom TLS init
This commit is contained in:
1 parent
f43a5a005c
commit
3f5fd89fd7
5 files changed
+10
-6
No files matched your search
+2
-1
@@ -28,7 +28,8 @@ 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) {
|
||||
} else if (opts->custom_init != NULL &&
|
||||
opts->custom_init(c, opts, tls) != 0) {
|
||||
mg_error(c, "TLS custom init failed");
|
||||
goto fail;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user