FreeRDP
utils.c File Reference
#include <freerdp/config.h>
#include "settings.h"
#include <winpr/assert.h>
#include <freerdp/freerdp.h>
#include <freerdp/channels/cliprdr.h>
#include <freerdp/channels/rdpdr.h>
#include <freerdp/log.h>
#include "utils.h"
#include "../core/rdp.h"

Macros

#define TAG   FREERDP_TAG("core.gateway.utils")
 

Functions

BOOL utils_str_copy (const char *value, char **dst)
 
static BOOL utils_copy_smartcard_settings (const rdpSettings *settings, rdpSettings *origSettings)
 
auth_status utils_authenticate_gateway (freerdp *instance, rdp_auth_reason reason)
 
auth_status utils_authenticate (freerdp *instance, rdp_auth_reason reason, BOOL override)
 
BOOL utils_sync_credentials (rdpSettings *settings, BOOL toGateway)
 
BOOL utils_str_is_empty (const char *str)
 
BOOL utils_abort_connect (rdpRdp *rdp)
 
BOOL utils_reset_abort (rdpRdp *rdp)
 
HANDLE utils_get_abort_event (rdpRdp *rdp)
 
BOOL utils_abort_event_is_set (const rdpRdp *rdp)
 
const char * utils_is_vsock (const char *hostname)
 
static BOOL remove_rdpdr_type (rdpSettings *settings, UINT32 type)
 
static BOOL disable_clipboard (rdpSettings *settings)
 
static BOOL disable_drive (rdpSettings *settings)
 
static BOOL disable_printers (rdpSettings *settings)
 
static BOOL disable_port (rdpSettings *settings)
 
static BOOL disable_pnp (rdpSettings *settings)
 
static BOOL apply_gw_policy (rdpContext *context)
 
BOOL utils_apply_gateway_policy (wLog *log, rdpContext *context, UINT32 flags, const char *module)
 
char * utils_redir_flags_to_string (UINT32 flags, char *buffer, size_t size)
 
BOOL utils_reload_channels (rdpContext *context)
 

Macro Definition Documentation

◆ TAG

#define TAG   FREERDP_TAG("core.gateway.utils")

FreeRDP: A Remote Desktop Protocol Implementation Terminal Server Gateway (utils)

Copyright 2021 Armin Novak armin.nosp@m..nov.nosp@m.ak@th.nosp@m.inca.nosp@m.st.co.nosp@m.m Copyright 2021 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.

Function Documentation

◆ apply_gw_policy()

static BOOL apply_gw_policy ( rdpContext *  context)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ disable_clipboard()

static BOOL disable_clipboard ( rdpSettings *  settings)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ disable_drive()

static BOOL disable_drive ( rdpSettings *  settings)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ disable_pnp()

static BOOL disable_pnp ( rdpSettings *  settings)
static
Here is the caller graph for this function:

◆ disable_port()

static BOOL disable_port ( rdpSettings *  settings)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ disable_printers()

static BOOL disable_printers ( rdpSettings *  settings)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ remove_rdpdr_type()

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

◆ utils_abort_connect()

BOOL utils_abort_connect ( rdpRdp *  rdp)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ utils_abort_event_is_set()

BOOL utils_abort_event_is_set ( const rdpRdp *  rdp)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ utils_apply_gateway_policy()

BOOL utils_apply_gateway_policy ( wLog *  log,
rdpContext *  context,
UINT32  flags,
const char *  module 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ utils_authenticate()

auth_status utils_authenticate ( freerdp *  instance,
rdp_auth_reason  reason,
BOOL  override 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ utils_authenticate_gateway()

auth_status utils_authenticate_gateway ( freerdp *  instance,
rdp_auth_reason  reason 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ utils_copy_smartcard_settings()

static BOOL utils_copy_smartcard_settings ( const rdpSettings *  settings,
rdpSettings *  origSettings 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ utils_get_abort_event()

HANDLE utils_get_abort_event ( rdpRdp *  rdp)
Here is the caller graph for this function:

◆ utils_is_vsock()

const char* utils_is_vsock ( const char *  hostname)
Here is the caller graph for this function:

◆ utils_redir_flags_to_string()

char* utils_redir_flags_to_string ( UINT32  flags,
char *  buffer,
size_t  size 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ utils_reload_channels()

BOOL utils_reload_channels ( rdpContext *  context)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ utils_reset_abort()

BOOL utils_reset_abort ( rdpRdp *  rdp)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ utils_str_copy()

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

◆ utils_str_is_empty()

BOOL utils_str_is_empty ( const char *  str)
Here is the caller graph for this function:

◆ utils_sync_credentials()

BOOL utils_sync_credentials ( rdpSettings *  settings,
BOOL  toGateway 
)
Here is the call graph for this function:
Here is the caller graph for this function: