forked from NullOps/NullOps.RdpSigner
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathRdpSettingHelper.cs
More file actions
80 lines (75 loc) · 3.46 KB
/
RdpSettingHelper.cs
File metadata and controls
80 lines (75 loc) · 3.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
using System;
using System.Collections.Generic;
namespace NullOps.RdpSigner
{
/// <summary>
/// A static class full of helpful values!
/// </summary>
internal static class RdpSettingHelper
{
public const string AlternateFullAddressSettingName = "alternate full address";
public const string FullAddressSettingName = "full address";
public const string SignatureSettingName = "signature";
public const string SignScopeSettingName = "signscope";
public const char SignScopeSettingType = StringSettingType;
public const char SignatureSettingType = StringSettingType;
public const char StringSettingType = 's';
public const char IntSettingType = 'i';
public const char BinarySettingType = 'b';
/// <summary>
/// A string containing all valid setting values
/// </summary>
public static readonly string ValidSettingTypes = string.Concat(StringSettingType, IntSettingType, BinarySettingType);
/// <summary>
/// A collection of all setting names (keys) that should be signed, and their associated scopes (values)
/// </summary>
public static readonly IReadOnlyDictionary<string, string> SecureSettingScopes = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
{
{FullAddressSettingName, "Full Address"},
{AlternateFullAddressSettingName,"Alternate Full Address"},
{"pcb","PCB"},
{"use redirection server name","Use Redirection Server Name"},
{"server port","Server Port"},
{"negotiate security layer","Negotiate Security Layer"},
{"enablecredsspsupport","EnableCredSspSupport"},
{"disableconnectionsharing","DisableConnectionSharing"},
{"autoreconnection enabled","AutoReconnection Enabled"},
{"gatewayhostname","GatewayHostname"},
{"gatewayusagemethod","GatewayUsageMethod"},
{"gatewayprofileusagemethod","GatewayProfileUsageMethod"},
{"gatewaycredentialssource","GatewayCredentialsSource"},
{"support url","Support URL"},
{"promptcredentialonce","PromptCredentialOnce"},
{"require pre-authentication","Require pre-authentication"},
{"pre-authentication server address","Pre-authentication server address"},
{"alternate shell","Alternate Shell"},
{"shell working directory","Shell Working Directory"},
{"remoteapplicationprogram","RemoteApplicationProgram"},
{"remoteapplicationexpandworkingdir","RemoteApplicationExpandWorkingdir"},
{"remoteapplicationmode","RemoteApplicationMode"},
{"remoteapplicationguid","RemoteApplicationGuid"},
{"remoteapplicationname","RemoteApplicationName"},
{"remoteapplicationicon","RemoteApplicationIcon"},
{"remoteapplicationfile","RemoteApplicationFile"},
{"remoteapplicationfileextensions","RemoteApplicationFileExtensions"},
{"remoteapplicationcmdline","RemoteApplicationCmdLine"},
{"remoteapplicationexpandcmdline","RemoteApplicationExpandCmdLine"},
{"prompt for credentials","Prompt For Credentials"},
{"authentication level","Authentication Level"},
{"audiomode","AudioMode"},
{"redirectdrives","RedirectDrives"},
{"redirectprinters","RedirectPrinters"},
{"redirectcomports","RedirectCOMPorts"},
{"redirectsmartcards","RedirectSmartCards"},
{"redirectposdevices","RedirectPOSDevices"},
{"redirectclipboard","RedirectClipboard"},
{"devicestoredirect","DevicesToRedirect"},
{"drivestoredirect","DrivesToRedirect"},
{"loadbalanceinfo","LoadBalanceInfo"},
{"redirectdirectx","RedirectDirectX"},
{"rdgiskdcproxy","RDGIsKDCProxy"},
{"kdcproxyname","KDCProxyName"},
{"eventloguploadaddress","EventLogUploadAddress"}
};
}
}