FreeRDP
client/common/cmdline.c File Reference
#include <freerdp/config.h>
#include <ctype.h>
#include <errno.h>
#include <winpr/assert.h>
#include <winpr/crt.h>
#include <winpr/wlog.h>
#include <winpr/path.h>
#include <winpr/ncrypt.h>
#include <winpr/environment.h>
#include <freerdp/freerdp.h>
#include <freerdp/addin.h>
#include <freerdp/settings.h>
#include <freerdp/client.h>
#include <freerdp/client/channels.h>
#include <freerdp/channels/drdynvc.h>
#include <freerdp/channels/cliprdr.h>
#include <freerdp/channels/encomsp.h>
#include <freerdp/channels/rdp2tcp.h>
#include <freerdp/channels/remdesk.h>
#include <freerdp/channels/rdpsnd.h>
#include <freerdp/channels/disp.h>
#include <freerdp/crypto/crypto.h>
#include <freerdp/locale/keyboard.h>
#include <freerdp/utils/passphrase.h>
#include <freerdp/utils/proxy_utils.h>
#include <freerdp/channels/urbdrc.h>
#include <freerdp/channels/rdpdr.h>
#include <freerdp/client/cmdline.h>
#include <freerdp/version.h>
#include <freerdp/client/utils/smartcard_cli.h>
#include <openssl/tls1.h>
#include "cmdline.h"
#include <freerdp/log.h>

Macros

#define TAG   CLIENT_TAG("common.cmdline")
 

Typedefs

typedef BOOL(* CmdLineSubOptionCb) (const char *value, rdpSettings *settings)
 

Enumerations

enum  CmdLineSubOptionType { CMDLINE_SUBOPTION_STRING , CMDLINE_SUBOPTION_FILE }
 suboption type More...
 
enum  PARSE_ON_OFF_RESULT { PARSE_ON , PARSE_OFF , PARSE_NONE , PARSE_FAIL }
 
enum  PARSE_CLIP_DIR_RESULT {
  CLIP_DIR_PARSE_ALL , CLIP_DIR_PARSE_OFF , CLIP_DIR_PARSE_LOCAL , CLIP_DIR_PARSE_REMOTE ,
  CLIP_DIR_PARSE_FAIL
}
 

Functions

static const char * option_starts_with (const char *what, const char *val)
 
static BOOL option_ends_with (const char *str, const char *ext)
 
static BOOL option_equals (const char *what, const char *val)
 
static BOOL freerdp_client_print_codepages (const char *arg)
 
static BOOL freerdp_path_valid (const char *path, BOOL *special)
 
static BOOL freerdp_sanitize_drive_name (char *name, const char *invalid, const char *replacement)
 
static char * name_from_path (const char *path)
 
static BOOL freerdp_client_add_drive (rdpSettings *settings, const char *path, const char *name)
 
static BOOL copy_value (const char *value, char **dst)
 
static BOOL append_value (const char *value, char **dst)
 
static BOOL value_to_int (const char *value, LONGLONG *result, LONGLONG min, LONGLONG max)
 
static BOOL value_to_uint (const char *value, ULONGLONG *result, ULONGLONG min, ULONGLONG max)
 
BOOL freerdp_client_print_version (void)
 
BOOL freerdp_client_print_buildconfig (void)
 
static void freerdp_client_print_scancodes (void)
 
static BOOL is_delimiter (const char *delimiters, char c)
 
static char * print_token (char *text, size_t start_offset, size_t *current, size_t limit, const char *delimiters)
 
static size_t print_optionals (const char *text, size_t start_offset, size_t current)
 
static size_t print_description (const char *text, size_t start_offset, size_t current)
 
static void freerdp_client_print_command_line_args (const COMMAND_LINE_ARGUMENT_A *arg)
 
BOOL freerdp_client_print_command_line_help (int argc, char **argv)
 
BOOL freerdp_client_print_command_line_help_ex (int argc, char **argv, const COMMAND_LINE_ARGUMENT_A *custom)
 
static BOOL option_is_rdp_file (const char *option)
 
static BOOL option_is_incident_file (const char *option)
 
static int freerdp_client_command_line_pre_filter (void *context, int index, int argc, LPSTR *argv)
 
BOOL freerdp_client_add_device_channel (rdpSettings *settings, size_t count, const char **params)
 
BOOL freerdp_client_del_static_channel (rdpSettings *settings, const char *name)
 
BOOL freerdp_client_add_static_channel (rdpSettings *settings, size_t count, const char **params)
 
BOOL freerdp_client_del_dynamic_channel (rdpSettings *settings, const char *name)
 
BOOL freerdp_client_add_dynamic_channel (rdpSettings *settings, size_t count, const char **params)
 
static BOOL read_pem_file (rdpSettings *settings, size_t id, const char *file)
 
static BOOL parseSubOptions (rdpSettings *settings, const CmdLineSubOptions *opts, size_t count, const char *arg)
 
static int freerdp_client_command_line_post_filter (void *context, COMMAND_LINE_ARGUMENT_A *arg)
 
BOOL freerdp_parse_username (const char *username, char **user, char **domain)
 
BOOL freerdp_parse_hostname (const char *hostname, char **host, int *port)
 
static BOOL freerdp_apply_connection_type (rdpSettings *settings, UINT32 type)
 
BOOL freerdp_set_connection_type (rdpSettings *settings, UINT32 type)
 
static UINT32 freerdp_get_keyboard_layout_for_type (const char *name, DWORD type)
 
static UINT32 freerdp_map_keyboard_layout_name_to_id (const char *name)
 
static int freerdp_detect_command_line_pre_filter (void *context, int index, int argc, LPSTR *argv)
 
static int freerdp_detect_windows_style_command_line_syntax (int argc, char **argv, size_t *count, BOOL ignoreUnknown)
 
static int freerdp_detect_posix_style_command_line_syntax (int argc, char **argv, size_t *count, BOOL ignoreUnknown)
 
static BOOL freerdp_client_detect_command_line (int argc, char **argv, DWORD *flags)
 
int freerdp_client_settings_command_line_status_print (rdpSettings *settings, int status, int argc, char **argv)
 
static void freerdp_client_print_keyboard_type_list (const char *msg, DWORD type)
 
static void freerdp_client_print_keyboard_list (void)
 
static void freerdp_client_print_tune_list (const rdpSettings *settings)
 
int freerdp_client_settings_command_line_status_print_ex (rdpSettings *settings, int status, int argc, char **argv, const COMMAND_LINE_ARGUMENT_A *custom)
 
static BOOL parseSizeValue (const char *input, unsigned long *v1, unsigned long *v2)
 
static BOOL prepare_default_settings (rdpSettings *settings, COMMAND_LINE_ARGUMENT_A *args, BOOL rdp_file)
 
static BOOL setSmartcardEmulation (const char *value, rdpSettings *settings)
 
static PARSE_ON_OFF_RESULT parse_on_off_option (const char *value)
 
static PARSE_CLIP_DIR_RESULT parse_clip_direciton_to_option (const char *value)
 
static int parse_tls_ciphers (rdpSettings *settings, const char *Value)
 
static int parse_tls_seclevel (rdpSettings *settings, const char *Value)
 
static int parse_tls_secrets_file (rdpSettings *settings, const char *Value)
 
static int parse_tls_enforce (rdpSettings *settings, const char *Value)
 
static int parse_tls_options (rdpSettings *settings, const COMMAND_LINE_ARGUMENT_A *arg)
 
static int parse_gfx_options (rdpSettings *settings, const COMMAND_LINE_ARGUMENT_A *arg)
 
static int parse_kbd_layout (rdpSettings *settings, const char *value)
 
static BOOL check_kbd_remap_valid (const char *token)
 
static int parse_kbd_options (rdpSettings *settings, const COMMAND_LINE_ARGUMENT_A *arg)
 
static int parse_app_option_program (rdpSettings *settings, const char *cmd)
 
static int parse_app_options (rdpSettings *settings, const COMMAND_LINE_ARGUMENT_A *arg)
 
static int parse_cache_options (rdpSettings *settings, const COMMAND_LINE_ARGUMENT_A *arg)
 
static BOOL parse_gateway_host_option (rdpSettings *settings, const char *host)
 
static BOOL parse_gateway_cred_option (rdpSettings *settings, const char *value, size_t what)
 
static BOOL parse_gateway_type_option (rdpSettings *settings, const char *value)
 
static BOOL parse_gateway_usage_option (rdpSettings *settings, const char *value)
 
static BOOL parse_gateway_options (rdpSettings *settings, const COMMAND_LINE_ARGUMENT_A *arg)
 
static void fill_credential_string (COMMAND_LINE_ARGUMENT_A *args, const char *value)
 
static void fill_credential_strings (COMMAND_LINE_ARGUMENT_A *args)
 
static int freerdp_client_settings_parse_command_line_arguments_int (rdpSettings *settings, int argc, char *argv[], BOOL allowUnknown)
 
static void argv_free (int argc, char *argv[])
 
static BOOL argv_append (int *pargc, char **pargv[], char *what)
 
static BOOL args_from_fp (FILE *fp, int *aargc, char **aargv[], const char *file, const char *cmd)
 
static BOOL args_from_env (const char *name, int *aargc, char **aargv[], const char *arg, const char *cmd)
 
int freerdp_client_settings_parse_command_line_arguments (rdpSettings *settings, int oargc, char *oargv[], BOOL allowUnknown)
 
static BOOL freerdp_client_load_static_channel_addin (rdpChannels *channels, rdpSettings *settings, const char *name, void *data)
 
BOOL freerdp_client_load_addins (rdpChannels *channels, rdpSettings *settings)
 
void freerdp_client_warn_unmaintained (int argc, char *argv[])
 
void freerdp_client_warn_experimental (int argc, char *argv[])
 
void freerdp_client_warn_deprecated (int argc, char *argv[])
 

Macro Definition Documentation

◆ TAG

#define TAG   CLIENT_TAG("common.cmdline")

FreeRDP: A Remote Desktop Protocol Implementation FreeRDP Client Command-Line Interface

Copyright 2012 Marc-Andre Moreau marca.nosp@m.ndre.nosp@m..more.nosp@m.au@g.nosp@m.mail..nosp@m.com Copyright 2014 Norbert Federa norbe.nosp@m.rt.f.nosp@m.edera.nosp@m.@thi.nosp@m.ncast.nosp@m..com Copyright 2016 Armin Novak armin.nosp@m..nov.nosp@m.ak@gm.nosp@m.ail..nosp@m.com

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.

Typedef Documentation

◆ CmdLineSubOptionCb

typedef BOOL(* CmdLineSubOptionCb) (const char *value, rdpSettings *settings)

Enumeration Type Documentation

◆ CmdLineSubOptionType

suboption type

Enumerator
CMDLINE_SUBOPTION_STRING 
CMDLINE_SUBOPTION_FILE 

◆ PARSE_CLIP_DIR_RESULT

Enumerator
CLIP_DIR_PARSE_ALL 
CLIP_DIR_PARSE_OFF 
CLIP_DIR_PARSE_LOCAL 
CLIP_DIR_PARSE_REMOTE 
CLIP_DIR_PARSE_FAIL 

◆ PARSE_ON_OFF_RESULT

Enumerator
PARSE_ON 
PARSE_OFF 
PARSE_NONE 
PARSE_FAIL 

Function Documentation

◆ append_value()

static BOOL append_value ( const char *  value,
char **  dst 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ args_from_env()

static BOOL args_from_env ( const char *  name,
int *  aargc,
char **  aargv[],
const char *  arg,
const char *  cmd 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ args_from_fp()

static BOOL args_from_fp ( FILE *  fp,
int *  aargc,
char **  aargv[],
const char *  file,
const char *  cmd 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ argv_append()

static BOOL argv_append ( int *  pargc,
char **  pargv[],
char *  what 
)
static
Here is the caller graph for this function:

◆ argv_free()

static void argv_free ( int  argc,
char *  argv[] 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ check_kbd_remap_valid()

static BOOL check_kbd_remap_valid ( const char *  token)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ copy_value()

static BOOL copy_value ( const char *  value,
char **  dst 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ fill_credential_string()

static void fill_credential_string ( COMMAND_LINE_ARGUMENT_A args,
const char *  value 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ fill_credential_strings()

static void fill_credential_strings ( COMMAND_LINE_ARGUMENT_A args)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_apply_connection_type()

static BOOL freerdp_apply_connection_type ( rdpSettings *  settings,
UINT32  type 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_client_add_device_channel()

BOOL freerdp_client_add_device_channel ( rdpSettings *  settings,
size_t  count,
const char **  params 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_client_add_drive()

static BOOL freerdp_client_add_drive ( rdpSettings *  settings,
const char *  path,
const char *  name 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_client_add_dynamic_channel()

BOOL freerdp_client_add_dynamic_channel ( rdpSettings *  settings,
size_t  count,
const char **  params 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_client_add_static_channel()

BOOL freerdp_client_add_static_channel ( rdpSettings *  settings,
size_t  count,
const char **  params 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_client_command_line_post_filter()

static int freerdp_client_command_line_post_filter ( void *  context,
COMMAND_LINE_ARGUMENT_A arg 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_client_command_line_pre_filter()

static int freerdp_client_command_line_pre_filter ( void *  context,
int  index,
int  argc,
LPSTR *  argv 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_client_del_dynamic_channel()

BOOL freerdp_client_del_dynamic_channel ( rdpSettings *  settings,
const char *  name 
)
Here is the call graph for this function:

◆ freerdp_client_del_static_channel()

BOOL freerdp_client_del_static_channel ( rdpSettings *  settings,
const char *  name 
)
Here is the call graph for this function:

◆ freerdp_client_detect_command_line()

static BOOL freerdp_client_detect_command_line ( int  argc,
char **  argv,
DWORD *  flags 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_client_load_addins()

BOOL freerdp_client_load_addins ( rdpChannels *  channels,
rdpSettings *  settings 
)

Step 1: first load dynamic channels according to the settings

step 2: do various adjustements in the settings, to handle channels and settings dependencies

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

◆ freerdp_client_load_static_channel_addin()

static BOOL freerdp_client_load_static_channel_addin ( rdpChannels *  channels,
rdpSettings *  settings,
const char *  name,
void *  data 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_client_print_buildconfig()

BOOL freerdp_client_print_buildconfig ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_client_print_codepages()

static BOOL freerdp_client_print_codepages ( const char *  arg)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_client_print_command_line_args()

static void freerdp_client_print_command_line_args ( const COMMAND_LINE_ARGUMENT_A arg)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_client_print_command_line_help()

BOOL freerdp_client_print_command_line_help ( int  argc,
char **  argv 
)
Here is the call graph for this function:

◆ freerdp_client_print_command_line_help_ex()

BOOL freerdp_client_print_command_line_help_ex ( int  argc,
char **  argv,
const COMMAND_LINE_ARGUMENT_A custom 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_client_print_keyboard_list()

static void freerdp_client_print_keyboard_list ( void  )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_client_print_keyboard_type_list()

static void freerdp_client_print_keyboard_type_list ( const char *  msg,
DWORD  type 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_client_print_scancodes()

static void freerdp_client_print_scancodes ( void  )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_client_print_tune_list()

static void freerdp_client_print_tune_list ( const rdpSettings *  settings)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_client_print_version()

BOOL freerdp_client_print_version ( void  )
Here is the caller graph for this function:

◆ freerdp_client_settings_command_line_status_print()

int freerdp_client_settings_command_line_status_print ( rdpSettings *  settings,
int  status,
int  argc,
char **  argv 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_client_settings_command_line_status_print_ex()

int freerdp_client_settings_command_line_status_print_ex ( rdpSettings *  settings,
int  status,
int  argc,
char **  argv,
const COMMAND_LINE_ARGUMENT_A custom 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_client_settings_parse_command_line_arguments()

int freerdp_client_settings_parse_command_line_arguments ( rdpSettings *  settings,
int  oargc,
char *  oargv[],
BOOL  allowUnknown 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_client_settings_parse_command_line_arguments_int()

static int freerdp_client_settings_parse_command_line_arguments_int ( rdpSettings *  settings,
int  argc,
char *  argv[],
BOOL  allowUnknown 
)
static
Here is the caller graph for this function:

◆ freerdp_client_warn_deprecated()

void freerdp_client_warn_deprecated ( int  argc,
char *  argv[] 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_client_warn_experimental()

void freerdp_client_warn_experimental ( int  argc,
char *  argv[] 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_client_warn_unmaintained()

void freerdp_client_warn_unmaintained ( int  argc,
char *  argv[] 
)
Here is the call graph for this function:

◆ freerdp_detect_command_line_pre_filter()

static int freerdp_detect_command_line_pre_filter ( void *  context,
int  index,
int  argc,
LPSTR *  argv 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_detect_posix_style_command_line_syntax()

static int freerdp_detect_posix_style_command_line_syntax ( int  argc,
char **  argv,
size_t *  count,
BOOL  ignoreUnknown 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_detect_windows_style_command_line_syntax()

static int freerdp_detect_windows_style_command_line_syntax ( int  argc,
char **  argv,
size_t *  count,
BOOL  ignoreUnknown 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_get_keyboard_layout_for_type()

static UINT32 freerdp_get_keyboard_layout_for_type ( const char *  name,
DWORD  type 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_map_keyboard_layout_name_to_id()

static UINT32 freerdp_map_keyboard_layout_name_to_id ( const char *  name)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_parse_hostname()

BOOL freerdp_parse_hostname ( const char *  hostname,
char **  host,
int *  port 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_parse_username()

BOOL freerdp_parse_username ( const char *  username,
char **  user,
char **  domain 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_path_valid()

static BOOL freerdp_path_valid ( const char *  path,
BOOL *  special 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_sanitize_drive_name()

static BOOL freerdp_sanitize_drive_name ( char *  name,
const char *  invalid,
const char *  replacement 
)
static
Here is the caller graph for this function:

◆ freerdp_set_connection_type()

BOOL freerdp_set_connection_type ( rdpSettings *  settings,
UINT32  type 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ is_delimiter()

static BOOL is_delimiter ( const char *  delimiters,
char  c 
)
static
Here is the caller graph for this function:

◆ name_from_path()

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

◆ option_ends_with()

BOOL option_ends_with ( const char *  str,
const char *  ext 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ option_equals()

BOOL option_equals ( const char *  what,
const char *  val 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ option_is_incident_file()

static BOOL option_is_incident_file ( const char *  option)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ option_is_rdp_file()

static BOOL option_is_rdp_file ( const char *  option)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ option_starts_with()

const char * option_starts_with ( const char *  what,
const char *  val 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ parse_app_option_program()

static int parse_app_option_program ( rdpSettings *  settings,
const char *  cmd 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ parse_app_options()

static int parse_app_options ( rdpSettings *  settings,
const COMMAND_LINE_ARGUMENT_A arg 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ parse_cache_options()

static int parse_cache_options ( rdpSettings *  settings,
const COMMAND_LINE_ARGUMENT_A arg 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ parse_clip_direciton_to_option()

static PARSE_CLIP_DIR_RESULT parse_clip_direciton_to_option ( const char *  value)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ parse_gateway_cred_option()

static BOOL parse_gateway_cred_option ( rdpSettings *  settings,
const char *  value,
size_t  what 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ parse_gateway_host_option()

static BOOL parse_gateway_host_option ( rdpSettings *  settings,
const char *  host 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ parse_gateway_options()

static BOOL parse_gateway_options ( rdpSettings *  settings,
const COMMAND_LINE_ARGUMENT_A arg 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ parse_gateway_type_option()

static BOOL parse_gateway_type_option ( rdpSettings *  settings,
const char *  value 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ parse_gateway_usage_option()

static BOOL parse_gateway_usage_option ( rdpSettings *  settings,
const char *  value 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ parse_gfx_options()

static int parse_gfx_options ( rdpSettings *  settings,
const COMMAND_LINE_ARGUMENT_A arg 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ parse_kbd_layout()

static int parse_kbd_layout ( rdpSettings *  settings,
const char *  value 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ parse_kbd_options()

static int parse_kbd_options ( rdpSettings *  settings,
const COMMAND_LINE_ARGUMENT_A arg 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ parse_on_off_option()

static PARSE_ON_OFF_RESULT parse_on_off_option ( const char *  value)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ parse_tls_ciphers()

static int parse_tls_ciphers ( rdpSettings *  settings,
const char *  Value 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ parse_tls_enforce()

static int parse_tls_enforce ( rdpSettings *  settings,
const char *  Value 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ parse_tls_options()

static int parse_tls_options ( rdpSettings *  settings,
const COMMAND_LINE_ARGUMENT_A arg 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ parse_tls_seclevel()

static int parse_tls_seclevel ( rdpSettings *  settings,
const char *  Value 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ parse_tls_secrets_file()

static int parse_tls_secrets_file ( rdpSettings *  settings,
const char *  Value 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ parseSizeValue()

static BOOL parseSizeValue ( const char *  input,
unsigned long *  v1,
unsigned long *  v2 
)
static

parses a string value with the format <v1>x<v2>

Parameters
inputinput string
v1pointer to output v1
v2pointer to output v2
Returns
if the parsing was successful
Here is the caller graph for this function:

◆ parseSubOptions()

static BOOL parseSubOptions ( rdpSettings *  settings,
const CmdLineSubOptions *  opts,
size_t  count,
const char *  arg 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ prepare_default_settings()

static BOOL prepare_default_settings ( rdpSettings *  settings,
COMMAND_LINE_ARGUMENT_A args,
BOOL  rdp_file 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ print_description()

static size_t print_description ( const char *  text,
size_t  start_offset,
size_t  current 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ print_optionals()

static size_t print_optionals ( const char *  text,
size_t  start_offset,
size_t  current 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ print_token()

static char* print_token ( char *  text,
size_t  start_offset,
size_t *  current,
size_t  limit,
const char *  delimiters 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ read_pem_file()

static BOOL read_pem_file ( rdpSettings *  settings,
size_t  id,
const char *  file 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setSmartcardEmulation()

static BOOL setSmartcardEmulation ( const char *  value,
rdpSettings *  settings 
)
static
Here is the caller graph for this function:

◆ value_to_int()

static BOOL value_to_int ( const char *  value,
LONGLONG *  result,
LONGLONG  min,
LONGLONG  max 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ value_to_uint()

static BOOL value_to_uint ( const char *  value,
ULONGLONG *  result,
ULONGLONG  min,
ULONGLONG  max 
)
static
Here is the call graph for this function:
Here is the caller graph for this function: