[core,utils] add auth type AUTH_RDSTLS

This commit is contained in:
Armin Novak
2025-09-23 15:01:37 +02:00
parent de23d79012
commit 45c7df6d61
4 changed files with 7 additions and 1 deletions

View File

@@ -93,6 +93,7 @@ BOOL sdl_authenticate_ex(freerdp* instance, char** username, char** password, ch
const char* target = freerdp_settings_get_server_name(instance->context->settings);
switch (reason)
{
case AUTH_RDSTLS:
case AUTH_NLA:
break;
@@ -547,6 +548,7 @@ BOOL sdl_auth_dialog_show(const SDL_UserAuthArg* args)
case AUTH_SMARTCARD_PIN:
prompt = std::move(authPin);
break;
case AUTH_RDSTLS:
case AUTH_TLS:
case AUTH_RDP:
case AUTH_NLA:

View File

@@ -479,6 +479,7 @@ static BOOL client_cli_authenticate_raw(freerdp* instance, rdp_auth_reason reaso
break;
case AUTH_TLS:
case AUTH_RDP:
case AUTH_RDSTLS:
case AUTH_NLA:
prompt = auth;
break;
@@ -571,6 +572,7 @@ BOOL client_cli_authenticate_ex(freerdp* instance, char** username, char** passw
switch (reason)
{
case AUTH_RDSTLS:
case AUTH_NLA:
break;

View File

@@ -84,7 +84,8 @@ extern "C"
GW_AUTH_HTTP,
GW_AUTH_RDG,
GW_AUTH_RPC,
AUTH_SMARTCARD_PIN
AUTH_SMARTCARD_PIN,
AUTH_RDSTLS
} rdp_auth_reason;
typedef BOOL (*pContextNew)(freerdp* instance, rdpContext* context);

View File

@@ -181,6 +181,7 @@ auth_status utils_authenticate(freerdp* instance, rdp_auth_reason reason, BOOL o
if (settings->SmartcardLogon)
reason = AUTH_SMARTCARD_PIN;
break;
case AUTH_RDSTLS:
default:
break;
}