mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-11 16:40:17 +00:00
Allow hostname checking even when no CA cert was given
This commit is contained in:
1 parent
044fdd472f
commit
d8e629a048
8 files changed
+131
-48
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user