diff options
Diffstat (limited to 'lib/tls.c')
-rw-r--r-- | lib/tls.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -225,6 +225,8 @@ tls_verify_cert (struct rs_connection *conn) if (!success) success = (cnregexp (peer_cert, hostname, NULL) == 1); + if (conn->realm->disable_hostname_check) + success = 1; if (!success) err = rs_err_conn_push (conn, RSE_CERT, "server certificate doesn't " "match configured hostname \"%s\"", hostname); |