Improve SNI

This commit is contained in:
cpq committed 2021-01-30 13:03:11 +00:00
1 parent 31cf6f8969
commit d327ee9834
8 files changed
+66 -40

No files matched your search

+5 -5
View File
@@ -2,11 +2,11 @@
#include "net.h"
struct mg_tls_opts {
const char *ca; // CA certificate file. For both listeners and clients
const char *cert; // Certificate
const char *certkey; // Certificate key
const char *ciphers; // Cipher list
const char *srvname; // If not NULL, enables server name verification
const char *ca; // CA certificate file. For both listeners and clients
const char *cert; // Certificate
const char *certkey; // Certificate key
const char *ciphers; // Cipher list
struct mg_str srvname; // If not empty, enables server name verification
};
int mg_tls_init(struct mg_connection *, struct mg_tls_opts *);