chromium/components/onc/onc_constants.cc

// Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "components/onc/onc_constants.h"

// Constants for ONC properties.
namespace onc {

const char kAugmentationActiveSetting[] =;
const char kAugmentationEffectiveSetting[] =;
const char kAugmentationUserPolicy[] =;
const char kAugmentationDevicePolicy[] =;
const char kAugmentationUserSetting[] =;
const char kAugmentationSharedSetting[] =;
const char kAugmentationUserEditable[] =;
const char kAugmentationDeviceEditable[] =;

const char kAugmentationActiveExtension[] =;

// Common keys/values.
const char kRecommended[] =;
const char kRemove[] =;

// Top Level Configuration
namespace toplevel_config {
const char kAdminAPNList[] =;
const char kCertificates[] =;
const char kEncryptedConfiguration[] =;
const char kNetworkConfigurations[] =;
const char kGlobalNetworkConfiguration[] =;
const char kType[] =;
const char kUnencryptedConfiguration[] =;
}  // namespace toplevel_config

// Network Configuration
namespace network_config {
const char kCellular[] =;
const char kCheckCaptivePortal[] =;
const char kConnectable[] =;
const char kConnectionState[] =;
const char kDevice[] =;
const char kErrorState[] =;
const char kEthernet[] =;
const char kGUID[] =;
const char kIPAddressConfigType[] =;
const char kIPConfigs[] =;
const char kIPConfigTypeDHCP[] =;
const char kIPConfigTypeStatic[] =;
const char kMacAddress[] =;
const char kMetered[] =;
const char kNameServersConfigType[] =;
const char kName[] =;
const char kPriority[] =;
const char kProxySettings[] =;
const char kRestrictedConnectivity[] =;
const char kSavedIPConfig[] =;
const char kSourceDevice[] =;
const char kSourceDevicePolicy[] =;
const char kSourceNone[] =;
const char kSourceUser[] =;
const char kSourceUserPolicy[] =;
const char kSource[] =;
const char kStaticIPConfig[] =;
const char kTether[] =;
const char kTrafficCounterResetTime[] =;
const char kType[] =;
const char kVPN[] =;
const char kWiFi[] =;
const char kWimaxDeprecated[] =;

std::string CellularProperty(const std::string& property) {}

std::string TetherProperty(const std::string& property) {}

std::string VpnProperty(const std::string& property) {}

std::string WifiProperty(const std::string& property) {}

}  // namespace network_config

namespace network_type {
const char kAllTypes[] =;
const char kCellular[] =;
const char kEthernet[] =;
const char kTether[] =;
const char kVPN[] =;
const char kWiFi[] =;
const char kWimaxDeprecated[] =;
const char kWireless[] =;
}  // namespace network_type

namespace check_captive_portal {
const char kFalse[] =;
const char kHTTPOnly[] =;
const char kTrue[] =;
}  // namespace check_captive_portal

namespace cellular {
const char kActivationState[] =;
const char kActivated[] =;
const char kActivating[] =;
const char kAutoConnect[] =;
const char kNotActivated[] =;
const char kPartiallyActivated[] =;
const char kActivationType[] =;
const char kAdminAssignedAPNIds[] =;
const char kAllowRoaming[] =;
const char kAPN[] =;
const char kAPNList[] =;
const char kCustomAPNList[] =;
const char kESN[] =;
const char kFamily[] =;
const char kFirmwareRevision[] =;
const char kFoundNetworks[] =;
const char kHardwareRevision[] =;
const char kHomeProvider[] =;
const char kEID[] =;
const char kICCID[] =;
const char kIMEI[] =;
const char kIMSI[] =;
const char kLastConnectedAttachApnProperty[] =;
const char kLastConnectedDefaultApnProperty[] =;
const char kLastGoodAPN[] =;
const char kManufacturer[] =;
const char kMDN[] =;
const char kMEID[] =;
const char kMIN[] =;
const char kModelID[] =;
const char kNetworkTechnology[] =;
const char kPaymentPortal[] =;
const char kRoamingHome[] =;
const char kRoamingRequired[] =;
const char kRoamingRoaming[] =;
const char kRoamingState[] =;
const char kScanning[] =;
const char kServingOperator[] =;
const char kSignalStrength[] =;
const char kSIMLockStatus[] =;
const char kSIMPresent[] =;
const char kSMDPAddress[] =;
const char kSMDSAddress[] =;
const char kSupportNetworkScan[] =;
const char kTechnologyCdma1Xrtt[] =;
const char kTechnologyEdge[] =;
const char kTechnologyEvdo[] =;
const char kTechnologyGprs[] =;
const char kTechnologyGsm[] =;
const char kTechnologyHspa[] =;
const char kTechnologyHspaPlus[] =;
const char kTechnologyLte[] =;
const char kTechnologyLteAdvanced[] =;
const char kTechnologyUmts[] =;
const char kTechnology5gNr[] =;
const char kTextMessagesAllow[] =;
const char kTextMessagesSuppress[] =;
const char kTextMessagesUnset[] =;
}  // namespace cellular

namespace cellular_provider {
const char kCode[] =;
const char kCountry[] =;
const char kName[] =;
}  // namespace cellular_provider

namespace cellular_apn {
const char kAccessPointName[] =;
const char kName[] =;
const char kUsername[] =;
const char kPassword[] =;
const char kAuthentication[] =;
const char kLocalizedName[] =;
const char kLanguage[] =;
const char kAttach[] =;
const char kId[] =;
const char kState[] =;
const char kStateEnabled[] =;
const char kStateDisabled[] =;
const char kAuthenticationAutomatic[] =;
const char kAuthenticationPap[] =;
const char kAuthenticationChap[] =;
const char kIpType[] =;
const char kIpTypeAutomatic[] =;
const char kIpTypeIpv4[] =;
const char kIpTypeIpv6[] =;
const char kIpTypeIpv4Ipv6[] =;
const char kApnTypes[] =;
const char kApnTypeDefault[] =;
const char kApnTypeAttach[] =;
const char kApnTypeTether[] =;
const char kSource[] =;
const char kSourceModem[] =;
const char kSourceModb[] =;
const char kSourceUi[] =;
const char kSourceAdmin[] =;
}  // namespace cellular_apn

namespace cellular_found_network {
const char kStatus[] =;
const char kNetworkId[] =;
const char kShortName[] =;
const char kLongName[] =;
const char kTechnology[] =;
}  // namespace cellular_found_network

namespace cellular_payment_portal {
const char kMethod[] =;
const char kPostData[] =;
const char kUrl[] =;
}  // namespace cellular_payment_portal

namespace sim_lock_status {
const char kLockEnabled[] =;
const char kLockType[] =;
const char kRetriesLeft[] =;
}  // namespace sim_lock_status

namespace connection_state {
const char kConnected[] =;
const char kConnecting[] =;
const char kNotConnected[] =;
}  // namespace connection_state

namespace ethernet {
const char kAuthentication[] =;
const char kAuthenticationNone[] =;
const char kEAP[] =;
const char k8021X[] =;
}  // namespace ethernet

namespace tether {
const char kBatteryPercentage[] =;
const char kCarrier[] =;
const char kHasConnectedToHost[] =;
const char kSignalStrength[] =;
}  // namespace tether

namespace ipconfig {
const char kGateway[] =;
const char kIPAddress[] =;
const char kIPv4[] =;
const char kIPv6[] =;
const char kNameServers[] =;
const char kRoutingPrefix[] =;
const char kSearchDomains[] =;
const char kIncludedRoutes[] =;
const char kExcludedRoutes[] =;
const char kType[] =;
const char kWebProxyAutoDiscoveryUrl[] =;
const char kMTU[] =;
}  // namespace ipconfig

namespace wifi {
const char kAllowGatewayARPPolling[] =;
const char kAutoConnect[] =;
const char kBSSID[] =;
const char kBSSIDAllowlist[] =;
const char kBSSIDRequested[] =;
const char kEAP[] =;
const char kFrequency[] =;
const char kFrequencyList[] =;
const char kHexSSID[] =;
const char kHiddenSSID[] =;
const char kPassphrase[] =;
const char kSSID[] =;
const char kSecurity[] =;
const char kSecurityNone[] =;
const char kSignalStrength[] =;
const char kSignalStrengthRssi[] =;
const char kWEP_8021X[] =;
const char kWEP_PSK[] =;
const char kWPA_EAP[] =;
const char kWPA_PSK[] =;
const char kWPA2_PSK[] =;
const char kPasspointId[] =;
const char kPasspointMatchType[] =;
}  // namespace wifi

// Deprecated, properties exist for ignoring old ONC config entries.
namespace wimax_deprecated {
const char kAutoConnect[] =;
const char kEAP[] =;
}  // namespace wimax_deprecated

namespace client_cert {
const char kClientCertPattern[] =;
const char kClientCertPKCS11Id[] =;
const char kClientCertProvisioningProfileId[] =;
const char kClientCertRef[] =;
const char kClientCertType[] =;
const char kClientCertTypeNone[] =;
const char kCommonName[] =;
const char kEmailAddress[] =;
const char kEnrollmentURI[] =;
const char kIssuerCARef[] =;
const char kIssuerCAPEMs[] =;
const char kIssuer[] =;
const char kLocality[] =;
const char kOrganization[] =;
const char kOrganizationalUnit[] =;
const char kPattern[] =;
const char kProvisioningProfileId[] =;
const char kPKCS11Id[] =;
const char kRef[] =;
const char kSubject[] =;
}  // namespace client_cert

namespace certificate {
const char kAuthority[] =;
const char kClient[] =;
const char kGUID[] =;
const char kPKCS12[] =;
const char kScope[] =;
const char kServer[] =;
const char kTrustBits[] =;
const char kType[] =;
const char kWeb[] =;
const char kX509[] =;
}  // namespace certificate

namespace scope {
const char kDefault[] =;
const char kExtension[] =;
const char kId[] =;
const char kType[] =;
}  // namespace scope

namespace encrypted {
const char kAES256[] =;
const char kCipher[] =;
const char kCiphertext[] =;
const char kHMACMethod[] =;
const char kHMAC[] =;
const char kIV[] =;
const char kIterations[] =;
const char kPBKDF2[] =;
const char kSHA1[] =;
const char kSalt[] =;
const char kStretch[] =;
}  // namespace encrypted

namespace eap {
const char kAnonymousIdentity[] =;
const char kAutomatic[] =;
const char kCHAP[] =;
const char kDomainSuffixMatch[] =;
const char kEAP_AKA[] =;
const char kEAP_FAST[] =;
const char kEAP_SIM[] =;
const char kEAP_TLS[] =;
const char kEAP_TTLS[] =;
const char kGTC[] =;
const char kIdentity[] =;
const char kInner[] =;
const char kLEAP[] =;
const char kMD5[] =;
const char kMSCHAP[] =;
const char kMSCHAPv2[] =;
const char kOuter[] =;
const char kPAP[] =;
const char kPEAP[] =;
const char kPassword[] =;
const char kSaveCredentials[] =;
const char kServerCAPEMs[] =;
const char kServerCARef[] =;
const char kServerCARefs[] =;
const char kSubjectMatch[] =;
const char kSubjectAlternativeNameMatch[] =;
const char kTLSVersionMax[] =;
const char kUseSystemCAs[] =;
const char kUseProactiveKeyCaching[] =;
}  // namespace eap

namespace eap_subject_alternative_name_match {
const char kType[] =;
const char kValue[] =;
const char kEMAIL[] =;
const char kDNS[] =;
const char kURI[] =;
}  // namespace eap_subject_alternative_name_match

namespace vpn {
const char kArcVpn[] =;
const char kAutoConnect[] =;
const char kHost[] =;
const char kIPsec[] =;
const char kL2TP[] =;
const char kOpenVPN[] =;
const char kPassword[] =;
const char kSaveCredentials[] =;
const char kThirdPartyVpn[] =;
const char kTypeL2TP_IPsec[] =;
const char kType[] =;
const char kUsername[] =;
const char kWireGuard[] =;
}  // namespace vpn

namespace ipsec {
const char kAuthenticationType[] =;
const char kCert[] =;
const char kEAP[] =;
const char kGroup[] =;
const char kIKEVersion[] =;
const char kLocalIdentity[] =;
const char kPSK[] =;
const char kRemoteIdentity[] =;
const char kServerCAPEMs[] =;
const char kServerCARef[] =;
const char kServerCARefs[] =;
const char kXAUTH[] =;
}  // namespace ipsec

namespace l2tp {
const char kLcpEchoDisabled[] =;
const char kPassword[] =;
const char kSaveCredentials[] =;
const char kUsername[] =;
}  // namespace l2tp

namespace openvpn {
const char kAuthNoCache[] =;
const char kAuthRetry[] =;
const char kAuth[] =;
const char kCipher[] =;
const char kCompLZO[] =;
const char kCompNoAdapt[] =;
const char kCompressionAlgorithm[] =;
const char kExtraHosts[] =;
const char kIgnoreDefaultRoute[] =;
const char kInteract[] =;
const char kKeyDirection[] =;
const char kNoInteract[] =;
const char kNone[] =;
const char kNsCertType[] =;
const char kOTP[] =;
const char kPassword[] =;
const char kPort[] =;
const char kProto[] =;
const char kPushPeerInfo[] =;
const char kRemoteCertEKU[] =;
const char kRemoteCertKU[] =;
const char kRemoteCertTLS[] =;
const char kRenegSec[] =;
const char kServerCAPEMs[] =;
const char kServerCARef[] =;
const char kServerCARefs[] =;
const char kServerCertPEM[] =;
const char kServerCertRef[] =;
const char kServerPollTimeout[] =;
const char kServer[] =;
const char kShaper[] =;
const char kStaticChallenge[] =;
const char kTLSAuthContents[] =;
const char kTLSRemote[] =;
const char kTLSVersionMin[] =;
const char kUserAuthenticationType[] =;
const char kVerb[] =;
const char kVerifyHash[] =;
const char kVerifyX509[] =;
}  // namespace openvpn

namespace openvpn_compression_algorithm {
const char kFramingOnly[] =;
const char kLz4[] =;
const char kLz4V2[] =;
const char kLzo[] =;
const char kNone[] =;
}  // namespace openvpn_compression_algorithm

namespace openvpn_user_auth_type {
const char kNone[] =;
const char kOTP[] =;
const char kPassword[] =;
const char kPasswordAndOTP[] =;
}  // openvpn_user_auth_type

namespace wireguard {
const char kAllowedIPs[] =;
const char kEndpoint[] =;
const char kIPAddresses[] =;
const char kPeers[] =;
const char kPersistentKeepalive[] =;
const char kPresharedKey[] =;
const char kPrivateKey[] =;
const char kPublicKey[] =;
}  // namespace wireguard

namespace third_party_vpn {
const char kExtensionID[] =;
const char kProviderName[] =;
}  // third_party_vpn

namespace arc_vpn {
// Deprecated. Property left here for ONC backward compatibility. See
// b/185202698 for details.
const char kTunnelChrome[] =;
}  // namespace arc_vpn

namespace verify_x509 {
const char kName[] =;
const char kType[] =;

namespace types {
const char kName[] =;
const char kNamePrefix[] =;
const char kSubject[] =;
}  // namespace types
}  // namespace verify_x509

namespace proxy {
const char kDirect[] =;
const char kExcludeDomains[] =;
const char kFtp[] =;
const char kHost[] =;
const char kHttp[] =;
const char kHttps[] =;
const char kManual[] =;
const char kPAC[] =;
const char kPort[] =;
const char kSocks[] =;
const char kType[] =;
const char kWPAD[] =;
}  // namespace proxy

namespace substitutes {
const char kLoginID[] =;
const char kLoginEmail[] =;
const char kCertSANEmail[] =;
const char kCertSANUPN[] =;
const char kCertSubjectCommonName[] =;
const char kDeviceSerialNumber[] =;
const char kDeviceAssetId[] =;
// The password placeholder is defined as ${PASSWORD} because it's compared
// verbatim against the policy-specified password field, and if it matches,
// another bool (|shill::kEapUseLoginPasswordProperty|) is set, which makes
// shill replace the whole password field.
// The other placeholders above on the other hand are replaced using
// VariableExpander.
const char kPasswordPlaceholderVerbatim[] =;
}  // namespace substitutes

namespace global_network_config {
const char kAllowAPNModification[] =;
const char kAllowCellularSimLock[] =;
const char kAllowCellularHotspot[] =;
const char kAllowOnlyPolicyCellularNetworks[] =;
const char kAllowOnlyPolicyNetworksToAutoconnect[] =;
const char kAllowOnlyPolicyNetworksToConnect[] =;
const char kAllowOnlyPolicyNetworksToConnectIfAvailable[] =;
// AllowOnlyPolicyNetworksToConnect and
// AllowOnlyPolicyNetworksToConnectIfAvailable field are currently only applied
// to WiFi networks. TODO(crbug.com/1234561): Fix this when ONC field is
// updated.
const char* const kAllowOnlyPolicyWiFiToConnect =;
const char* const kAllowOnlyPolicyWiFiToConnectIfAvailable =;
const char* const kAllowTextMessages =;

const char kBlacklistedHexSSIDs[] =;  // Deprecated
const char kBlockedHexSSIDs[] =;
const char kDisableNetworkTypes[] =;
const char kPSIMAdminAssignedAPNIds[] =;
const char kPSIMAdminAssignedAPNs[] =;
const char kRecommendedValuesAreEphemeral[] =;
const char kUserCreatedNetworkConfigurationsAreEphemeral[] =;
const char kDisconnectWiFiOnEthernet[] =;
const char kDisconnectWiFiOnEthernetWhenConnected[] =;
const char kDisconnectWiFiOnEthernetWhenOnline[] =;
}  // global_network_config

namespace device_state {
const char kUninitialized[] =;
const char kDisabled[] =;
const char kEnabling[] =;
const char kEnabled[] =;
}  // device_state

}  // namespace onc