Allow hostname checking even when no CA cert was given

This commit is contained in:
Sergio R. Caprile committed 2026-06-22 14:51:24 -03:00
1 parent 044fdd472f
commit d8e629a048
8 files changed
+131 -48

No files matched your search

+3
View File
@@ -4,10 +4,13 @@
#include <openssl/err.h>
#include <openssl/ssl.h>
#include <openssl/x509v3.h>
struct mg_tls {
BIO_METHOD *bm;
SSL_CTX *ctx;
SSL *ssl;
char *name; // matching hostname
bool check_name; // set when hostname was set, but no CA certificate given
};
#endif