removed the certificate[optional] auth type

This commit is contained in:
Nikos Mavrogiannopoulos
2015-02-19 11:47:20 +01:00
committed by Nikos Mavrogiannopoulos
parent 8bb0af61bc
commit afef74fa23
10 changed files with 12 additions and 35 deletions
+1 -2
View File
@@ -437,7 +437,6 @@ static auth_types_st avail_auth_types[] =
{NAME("radius"), &radius_auth_funcs, AUTH_TYPE_RADIUS, radius_get_brackets_string},
#endif
{NAME("plain"), &plain_auth_funcs, AUTH_TYPE_PLAIN, get_brackets_string},
{NAME("certificate[optional]"), NULL, AUTH_TYPE_CERTIFICATE_OPT, NULL},
{NAME("certificate"), NULL, AUTH_TYPE_CERTIFICATE, NULL},
};
@@ -860,7 +859,7 @@ static void check_cfg(struct cfg_st *config)
}
if (config->auth[0].type & AUTH_TYPE_CERTIFICATE) {
if (config->cisco_client_compat == 0 && ((config->auth[0].type & AUTH_TYPE_CERTIFICATE_OPT) != AUTH_TYPE_CERTIFICATE_OPT))
if (config->cisco_client_compat == 0)
config->cert_req = GNUTLS_CERT_REQUIRE;
else
config->cert_req = GNUTLS_CERT_REQUEST;