FreeRDP
SDL2/dialogs/sdl_dialogs.hpp
1 
20 #pragma once
21 
22 #include <winpr/wtypes.h>
23 #include <freerdp/freerdp.h>
24 
25 #include "../sdl_types.hpp"
26 #include "../sdl_utils.hpp"
27 
28 BOOL sdl_authenticate_ex(freerdp* instance, char** username, char** password, char** domain,
29  rdp_auth_reason reason);
30 BOOL sdl_choose_smartcard(freerdp* instance, SmartcardCertInfo** cert_list, DWORD count,
31  DWORD* choice, BOOL gateway);
32 
33 SSIZE_T sdl_retry_dialog(freerdp* instance, const char* what, size_t current, void* userarg);
34 
35 DWORD sdl_verify_certificate_ex(freerdp* instance, const char* host, UINT16 port,
36  const char* common_name, const char* subject, const char* issuer,
37  const char* fingerprint, DWORD flags);
38 
39 DWORD sdl_verify_changed_certificate_ex(freerdp* instance, const char* host, UINT16 port,
40  const char* common_name, const char* subject,
41  const char* issuer, const char* new_fingerprint,
42  const char* old_subject, const char* old_issuer,
43  const char* old_fingerprint, DWORD flags);
44 
45 int sdl_logon_error_info(freerdp* instance, UINT32 data, UINT32 type);
46 
47 BOOL sdl_present_gateway_message(freerdp* instance, UINT32 type, BOOL isDisplayMandatory,
48  BOOL isConsentMandatory, size_t length, const WCHAR* message);
49 
50 BOOL sdl_message_dialog_show(const char* title, const char* message, Sint32 flags);
51 BOOL sdl_cert_dialog_show(const char* title, const char* message);
52 BOOL sdl_scard_dialog_show(const char* title, Sint32 count, const char** list);
53 BOOL sdl_auth_dialog_show(const SDL_UserAuthArg* args);