mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-07 16:01:30 +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
@@ -11,6 +11,7 @@ struct mg_tls_opts {
|
||||
const char *certkey; // Certificate key
|
||||
const char *ciphers; // Cipher list
|
||||
struct mg_str srvname; // If not empty, enables server name verification
|
||||
int (*ifn)(struct mg_tls_opts *); // Custom init func. Return 0 on success
|
||||
};
|
||||
|
||||
void mg_tls_init(struct mg_connection *, struct mg_tls_opts *);
|
||||
|
||||
Reference in new issue
Block a user