mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-07 16:01:30 +00:00
Improve SNI
This commit is contained in:
1 parent
31cf6f8969
commit
d327ee9834
8 files changed
+66
-40
No files matched your search
+3
-11
@@ -952,7 +952,7 @@ Subscribe to topic `topic`.
|
||||
|
||||
## TLS
|
||||
|
||||
### struct mg\_tls\_opts
|
||||
### mg\_tls\_init()
|
||||
|
||||
```c
|
||||
struct mg_tls_opts {
|
||||
@@ -960,20 +960,12 @@ struct mg_tls_opts {
|
||||
const char *cert; // Certificate
|
||||
const char *certkey; // Certificate key
|
||||
const char *ciphers; // Cipher list
|
||||
const char *srvname; // If not NULL, enables server name verification
|
||||
struct mg_str srvname; // If not empty, enables server name verification
|
||||
};
|
||||
```
|
||||
|
||||
Describes TLS parameters
|
||||
|
||||
|
||||
### mg\_tls\_init()
|
||||
|
||||
```c
|
||||
int mg_tls_init(struct mg_connection *c, struct mg_tls_opts *opts);
|
||||
```
|
||||
|
||||
Turns on TLS on a given connection.
|
||||
Initialise TLS on a given connection.
|
||||
|
||||
|
||||
## Timers
|
||||
|
||||
Reference in new issue
Block a user