From 44f3846727d35ab17be3f779caa4a33548cdc152 Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Wed, 14 Aug 2019 20:11:11 +0100 Subject: SSL Error: Enable OpenSSL hostname verification Since OpenSSL 1.0.2 there has been hostname verification support which cURL doesn't turn on for some reason. Turn it on so that we get better hostname verification handling. Signed-off-by: Daniel Silverstone --- include/netsurf/ssl_certs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/netsurf') diff --git a/include/netsurf/ssl_certs.h b/include/netsurf/ssl_certs.h index c77c2996d..7e933b10c 100644 --- a/include/netsurf/ssl_certs.h +++ b/include/netsurf/ssl_certs.h @@ -38,7 +38,7 @@ typedef enum { SSL_CERT_ERR_SELF_SIGNED, /**< This certificate (or the chain) is self signed */ SSL_CERT_ERR_CHAIN_SELF_SIGNED, /**< This certificate chain is self signed */ SSL_CERT_ERR_REVOKED, /**< This certificate has been revoked */ - SSL_CERT_ERR_COMMON_NAME, /**< This certificate host did not match teh server */ + SSL_CERT_ERR_HOSTNAME_MISMATCH, /**< This certificate host did not match the server */ } ssl_cert_err; /** -- cgit v1.2.3