2018-11-22 18:54:42 +03:00
|
|
|
/**
|
|
|
|
* FreeRDP: A Remote Desktop Protocol Implementation
|
|
|
|
* Internal settings header for functions not exported
|
|
|
|
*
|
|
|
|
* Copyright 2018 Armin Novak <armin.novak@thincast.com>
|
|
|
|
* Copyright 2018 Thincast Technologies GmbH
|
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef FREERDP_LIB_CORE_SETTINGS_H
|
|
|
|
#define FREERDP_LIB_CORE_SETTINGS_H
|
|
|
|
|
2022-08-02 10:15:38 +03:00
|
|
|
#include <winpr/string.h>
|
2023-04-04 18:04:30 +03:00
|
|
|
#include <winpr/sspi.h>
|
2022-08-02 10:15:38 +03:00
|
|
|
|
2022-02-16 13:20:38 +03:00
|
|
|
#include <freerdp/config.h>
|
2020-11-19 12:09:34 +03:00
|
|
|
|
2023-10-16 13:59:19 +03:00
|
|
|
#define FREERDP_SETTINGS_INTERNAL_USE
|
|
|
|
#include <freerdp/settings_types_private.h>
|
|
|
|
|
2018-11-22 18:54:42 +03:00
|
|
|
#include <freerdp/types.h>
|
|
|
|
#include <freerdp/settings.h>
|
|
|
|
#include <freerdp/api.h>
|
|
|
|
|
2020-11-19 12:09:34 +03:00
|
|
|
#include <string.h>
|
|
|
|
|
2024-10-24 11:59:29 +03:00
|
|
|
FREERDP_LOCAL BOOL freerdp_settings_enforce_monitor_exists(rdpSettings* settings);
|
2023-12-07 20:06:43 +03:00
|
|
|
FREERDP_LOCAL void freerdp_settings_print_warnings(const rdpSettings* settings);
|
2024-09-24 14:50:20 +03:00
|
|
|
FREERDP_LOCAL BOOL freerdp_settings_check_client_after_preconnect(const rdpSettings* settings);
|
2018-11-22 18:54:42 +03:00
|
|
|
FREERDP_LOCAL BOOL freerdp_settings_set_default_order_support(rdpSettings* settings);
|
2020-05-15 13:22:37 +03:00
|
|
|
FREERDP_LOCAL BOOL freerdp_settings_clone_keys(rdpSettings* dst, const rdpSettings* src);
|
|
|
|
FREERDP_LOCAL void freerdp_settings_free_keys(rdpSettings* dst, BOOL cleanup);
|
2023-10-16 10:32:27 +03:00
|
|
|
FREERDP_LOCAL BOOL freerdp_settings_set_string_(rdpSettings* settings,
|
2024-08-29 16:10:21 +03:00
|
|
|
FreeRDP_Settings_Keys_String id, const char* val,
|
2023-01-30 16:18:24 +03:00
|
|
|
size_t len);
|
2023-10-16 10:32:27 +03:00
|
|
|
FREERDP_LOCAL BOOL freerdp_settings_set_string_copy_(rdpSettings* settings,
|
|
|
|
FreeRDP_Settings_Keys_String id,
|
2023-01-30 16:18:24 +03:00
|
|
|
const char* val, size_t len, BOOL cleanup);
|
2022-06-27 13:05:24 +03:00
|
|
|
FREERDP_LOCAL BOOL freerdp_capability_buffer_allocate(rdpSettings* settings, UINT32 count);
|
2018-11-22 18:54:42 +03:00
|
|
|
|
2023-04-04 18:04:30 +03:00
|
|
|
FREERDP_LOCAL BOOL identity_set_from_settings_with_pwd(SEC_WINNT_AUTH_IDENTITY_W* identity,
|
2023-10-16 10:32:27 +03:00
|
|
|
const rdpSettings* settings,
|
|
|
|
FreeRDP_Settings_Keys_String UserId,
|
|
|
|
FreeRDP_Settings_Keys_String DomainId,
|
|
|
|
const WCHAR* Password, size_t pwdLen);
|
2023-04-04 18:04:30 +03:00
|
|
|
FREERDP_LOCAL BOOL identity_set_from_settings(SEC_WINNT_AUTH_IDENTITY_W* identity,
|
2023-10-16 10:32:27 +03:00
|
|
|
const rdpSettings* settings,
|
|
|
|
FreeRDP_Settings_Keys_String UserId,
|
2023-10-16 20:37:36 +03:00
|
|
|
FreeRDP_Settings_Keys_String DomainId,
|
|
|
|
FreeRDP_Settings_Keys_String PwdId);
|
2023-04-04 18:04:30 +03:00
|
|
|
FREERDP_LOCAL BOOL identity_set_from_smartcard_hash(SEC_WINNT_AUTH_IDENTITY_W* identity,
|
2023-10-16 10:32:27 +03:00
|
|
|
const rdpSettings* settings,
|
|
|
|
FreeRDP_Settings_Keys_String userId,
|
|
|
|
FreeRDP_Settings_Keys_String domainId,
|
2023-10-16 20:37:36 +03:00
|
|
|
FreeRDP_Settings_Keys_String pwdId,
|
|
|
|
const BYTE* certSha1, size_t sha1len);
|
2023-12-07 20:06:43 +03:00
|
|
|
FREERDP_LOCAL const char* freerdp_settings_glyph_level_string(UINT32 level, char* buffer,
|
|
|
|
size_t size);
|
2023-04-04 18:04:30 +03:00
|
|
|
|
2024-01-04 17:47:40 +03:00
|
|
|
FREERDP_LOCAL BOOL freerdp_settings_set_pointer_len_(rdpSettings* settings,
|
|
|
|
FreeRDP_Settings_Keys_Pointer id,
|
|
|
|
SSIZE_T lenId, const void* data, size_t len,
|
|
|
|
size_t size);
|
|
|
|
FREERDP_LOCAL BOOL freerdp_target_net_adresses_reset(rdpSettings* settings, size_t size);
|
|
|
|
|
2018-11-22 18:54:42 +03:00
|
|
|
#endif /* FREERDP_LIB_CORE_SETTINGS_H */
|