FreeRDP
SDL2/dialogs/sdl_dialogs.cpp File Reference
#include <vector>
#include <string>
#include <cassert>
#include <freerdp/log.h>
#include <freerdp/utils/smartcardlogon.h>
#include <SDL.h>
#include "../sdl_freerdp.hpp"
#include "sdl_dialogs.hpp"
#include "sdl_input.hpp"
#include "sdl_input_widgets.hpp"
#include "sdl_select.hpp"
#include "sdl_selectlist.hpp"

Macros

#define TAG   CLIENT_TAG("SDL.dialogs")
 

Enumerations

enum  { SHOW_DIALOG_ACCEPT_REJECT = 1 , SHOW_DIALOG_TIMED_ACCEPT = 2 }
 

Functions

static const char * type_str_for_flags (UINT32 flags)
 
static BOOL sdl_wait_for_result (rdpContext *context, Uint32 type, SDL_Event *result)
 
static int sdl_show_dialog (rdpContext *context, const char *title, const char *message, Sint32 flags)
 
BOOL sdl_authenticate_ex (freerdp *instance, char **username, char **password, char **domain, rdp_auth_reason reason)
 
BOOL sdl_choose_smartcard (freerdp *instance, SmartcardCertInfo **cert_list, DWORD count, DWORD *choice, BOOL gateway)
 
SSIZE_T sdl_retry_dialog (freerdp *instance, const char *what, size_t current, void *userarg)
 
BOOL sdl_present_gateway_message (freerdp *instance, UINT32 type, BOOL isDisplayMandatory, BOOL isConsentMandatory, size_t length, const WCHAR *wmessage)
 
int sdl_logon_error_info (freerdp *instance, UINT32 data, UINT32 type)
 
static DWORD sdl_show_ceritifcate_dialog (rdpContext *context, const char *title, const char *message)
 
static char * sdl_pem_cert (const char *pem)
 
DWORD sdl_verify_changed_certificate_ex (freerdp *instance, const char *host, UINT16 port, const char *common_name, const char *subject, const char *issuer, const char *new_fingerprint, const char *old_subject, const char *old_issuer, const char *old_fingerprint, DWORD flags)
 
DWORD sdl_verify_certificate_ex (freerdp *instance, const char *host, UINT16 port, const char *common_name, const char *subject, const char *issuer, const char *fingerprint, DWORD flags)
 
BOOL sdl_cert_dialog_show (const char *title, const char *message)
 
BOOL sdl_message_dialog_show (const char *title, const char *message, Sint32 flags)
 
BOOL sdl_auth_dialog_show (const SDL_UserAuthArg *args)
 
BOOL sdl_scard_dialog_show (const char *title, Sint32 count, const char **list)
 

Macro Definition Documentation

◆ TAG

#define TAG   CLIENT_TAG("SDL.dialogs")

FreeRDP: A Remote Desktop Protocol Implementation SDL Client helper dialogs

Copyright 2023 Armin Novak armin.nosp@m..nov.nosp@m.ak@th.nosp@m.inca.nosp@m.st.co.nosp@m.m

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
SHOW_DIALOG_ACCEPT_REJECT 
SHOW_DIALOG_TIMED_ACCEPT 

Function Documentation

◆ sdl_auth_dialog_show()

BOOL sdl_auth_dialog_show ( const SDL_UserAuthArg args)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ sdl_authenticate_ex()

BOOL sdl_authenticate_ex ( freerdp *  instance,
char **  username,
char **  password,
char **  domain,
rdp_auth_reason  reason 
)

FreeRDP: A Remote Desktop Protocol Implementation SDL Client helper dialogs

Copyright 2023 Armin Novak armin.nosp@m..nov.nosp@m.ak@th.nosp@m.inca.nosp@m.st.co.nosp@m.m

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sdl_cert_dialog_show()

BOOL sdl_cert_dialog_show ( const char *  title,
const char *  message 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ sdl_choose_smartcard()

BOOL sdl_choose_smartcard ( freerdp *  instance,
SmartcardCertInfo **  cert_list,
DWORD  count,
DWORD *  choice,
BOOL  gateway 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ sdl_logon_error_info()

int sdl_logon_error_info ( freerdp *  instance,
UINT32  data,
UINT32  type 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ sdl_message_dialog_show()

BOOL sdl_message_dialog_show ( const char *  title,
const char *  message,
Sint32  flags 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ sdl_pem_cert()

static char* sdl_pem_cert ( const char *  pem)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ sdl_present_gateway_message()

BOOL sdl_present_gateway_message ( freerdp *  instance,
UINT32  type,
BOOL  isDisplayMandatory,
BOOL  isConsentMandatory,
size_t  length,
const WCHAR *  wmessage 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ sdl_retry_dialog()

SSIZE_T sdl_retry_dialog ( freerdp *  instance,
const char *  what,
size_t  current,
void *  userarg 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ sdl_scard_dialog_show()

BOOL sdl_scard_dialog_show ( const char *  title,
Sint32  count,
const char **  list 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ sdl_show_ceritifcate_dialog()

static DWORD sdl_show_ceritifcate_dialog ( rdpContext *  context,
const char *  title,
const char *  message 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ sdl_show_dialog()

static int sdl_show_dialog ( rdpContext *  context,
const char *  title,
const char *  message,
Sint32  flags 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ sdl_verify_certificate_ex()

DWORD sdl_verify_certificate_ex ( freerdp *  instance,
const char *  host,
UINT16  port,
const char *  common_name,
const char *  subject,
const char *  issuer,
const char *  fingerprint,
DWORD  flags 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ sdl_verify_changed_certificate_ex()

DWORD sdl_verify_changed_certificate_ex ( freerdp *  instance,
const char *  host,
UINT16  port,
const char *  common_name,
const char *  subject,
const char *  issuer,
const char *  new_fingerprint,
const char *  old_subject,
const char *  old_issuer,
const char *  old_fingerprint,
DWORD  flags 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ sdl_wait_for_result()

static BOOL sdl_wait_for_result ( rdpContext *  context,
Uint32  type,
SDL_Event *  result 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ type_str_for_flags()

static const char* type_str_for_flags ( UINT32  flags)
static
Here is the caller graph for this function: