Removed manipulation of authentication modes.
Let +smartcard-logon be a simple flag not changing authentication
settings. This can be done with the /sec options already.
@@ -1292,10 +1292,6 @@ static BOOL ends_with(const char* str, const char* ext)
static void activate_smartcard_logon_rdp(rdpSettings* settings)
{
settings->SmartcardLogon = TRUE;
- settings->RdpSecurity = TRUE;
- settings->TlsSecurity = FALSE;
- settings->NlaSecurity = FALSE;
- settings->ExtSecurity = FALSE;
/* TODO: why not? settings->UseRdpSecurityLayer = TRUE; */
freerdp_set_param_bool(settings, FreeRDP_PasswordIsSmartcardPin, TRUE);
}
@@ -2760,12 +2756,6 @@ int freerdp_client_settings_parse_command_line_arguments(rdpSettings* settings,
}
CommandLineSwitchCase(arg, "smartcard-logon")
{
- if (!((0 == arg->Value) || (0 == strcmp(arg->Value, "rdp")) || (0 == strcmp(arg->Value, ""))))
- {
- /* Later, we may implement --smartcard-logon:kerberos-sso or other variants. */
- return COMMAND_LINE_ERROR_UNEXPECTED_VALUE;
- }
-
if (!settings->SmartcardLogon)
activate_smartcard_logon_rdp(settings);
}
