mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-10-14 02:22:03 +08:00
corrected cert require rule
This commit is contained in:
+1
-1
@@ -240,7 +240,7 @@ static void check_cfg( struct cfg_st *config)
|
|||||||
config->cert_hash = calc_sha1_hash(config->cert, 1);
|
config->cert_hash = calc_sha1_hash(config->cert, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (config->force_cert_auth)
|
if (config->force_cert_auth && config->cert_req == GNUTLS_CERT_REQUEST)
|
||||||
config->cert_req = GNUTLS_CERT_REQUIRE;
|
config->cert_req = GNUTLS_CERT_REQUIRE;
|
||||||
|
|
||||||
if (config->xml_config_file) {
|
if (config->xml_config_file) {
|
||||||
|
|||||||
Reference in New Issue
Block a user