onc_constants.h 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537
  1. // Copyright 2013 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef COMPONENTS_ONC_ONC_CONSTANTS_H_
  5. #define COMPONENTS_ONC_ONC_CONSTANTS_H_
  6. #include <string>
  7. #include "base/component_export.h"
  8. // Constants for ONC properties.
  9. namespace onc {
  10. // Indicates from which source an ONC blob comes from.
  11. enum ONCSource {
  12. ONC_SOURCE_UNKNOWN,
  13. ONC_SOURCE_NONE,
  14. ONC_SOURCE_USER_IMPORT,
  15. ONC_SOURCE_DEVICE_POLICY,
  16. ONC_SOURCE_USER_POLICY,
  17. };
  18. // These keys are used to augment the dictionary resulting from merging the
  19. // different settings and policies.
  20. // The setting that Shill declared to be using. For example, if no policy and no
  21. // user setting exists, Shill might still report a property like network
  22. // security options or a SSID.
  23. COMPONENT_EXPORT(ONC) extern const char kAugmentationActiveSetting[];
  24. // The one of different setting sources (user/device policy, user/shared
  25. // settings) that has highest priority over the others.
  26. COMPONENT_EXPORT(ONC) extern const char kAugmentationEffectiveSetting[];
  27. COMPONENT_EXPORT(ONC) extern const char kAugmentationUserPolicy[];
  28. COMPONENT_EXPORT(ONC) extern const char kAugmentationDevicePolicy[];
  29. COMPONENT_EXPORT(ONC) extern const char kAugmentationUserSetting[];
  30. COMPONENT_EXPORT(ONC) extern const char kAugmentationSharedSetting[];
  31. COMPONENT_EXPORT(ONC) extern const char kAugmentationUserEditable[];
  32. COMPONENT_EXPORT(ONC) extern const char kAugmentationDeviceEditable[];
  33. // Special key for indicating that the Effective value is the Active value
  34. // and was set by an extension. Used for ProxySettings.
  35. COMPONENT_EXPORT(ONC) extern const char kAugmentationActiveExtension[];
  36. // Common keys/values.
  37. COMPONENT_EXPORT(ONC) extern const char kRecommended[];
  38. COMPONENT_EXPORT(ONC) extern const char kRemove[];
  39. // Top Level Configuration
  40. namespace toplevel_config {
  41. COMPONENT_EXPORT(ONC) extern const char kCertificates[];
  42. COMPONENT_EXPORT(ONC) extern const char kEncryptedConfiguration[];
  43. COMPONENT_EXPORT(ONC) extern const char kNetworkConfigurations[];
  44. COMPONENT_EXPORT(ONC) extern const char kGlobalNetworkConfiguration[];
  45. COMPONENT_EXPORT(ONC) extern const char kType[];
  46. COMPONENT_EXPORT(ONC) extern const char kUnencryptedConfiguration[];
  47. } // namespace toplevel_config
  48. // NetworkConfiguration.
  49. namespace network_config {
  50. COMPONENT_EXPORT(ONC) extern const char kCellular[];
  51. COMPONENT_EXPORT(ONC) extern const char kDevice[];
  52. COMPONENT_EXPORT(ONC) extern const char kEthernet[];
  53. COMPONENT_EXPORT(ONC) extern const char kGUID[];
  54. COMPONENT_EXPORT(ONC) extern const char kIPAddressConfigType[];
  55. COMPONENT_EXPORT(ONC) extern const char kIPConfigs[];
  56. COMPONENT_EXPORT(ONC) extern const char kIPConfigTypeDHCP[];
  57. COMPONENT_EXPORT(ONC) extern const char kIPConfigTypeStatic[];
  58. COMPONENT_EXPORT(ONC) extern const char kSavedIPConfig[];
  59. COMPONENT_EXPORT(ONC) extern const char kStaticIPConfig[];
  60. COMPONENT_EXPORT(ONC) extern const char kMacAddress[];
  61. COMPONENT_EXPORT(ONC) extern const char kMetered[];
  62. COMPONENT_EXPORT(ONC) extern const char kNameServersConfigType[];
  63. COMPONENT_EXPORT(ONC) extern const char kName[];
  64. COMPONENT_EXPORT(ONC) extern const char kPriority[];
  65. COMPONENT_EXPORT(ONC) extern const char kProxySettings[];
  66. COMPONENT_EXPORT(ONC) extern const char kSource[];
  67. COMPONENT_EXPORT(ONC) extern const char kSourceDevice[];
  68. COMPONENT_EXPORT(ONC) extern const char kSourceDevicePolicy[];
  69. COMPONENT_EXPORT(ONC) extern const char kSourceNone[];
  70. COMPONENT_EXPORT(ONC) extern const char kSourceUser[];
  71. COMPONENT_EXPORT(ONC) extern const char kSourceUserPolicy[];
  72. COMPONENT_EXPORT(ONC) extern const char kConnectionState[];
  73. COMPONENT_EXPORT(ONC) extern const char kRestrictedConnectivity[];
  74. COMPONENT_EXPORT(ONC) extern const char kConnectable[];
  75. COMPONENT_EXPORT(ONC) extern const char kErrorState[];
  76. COMPONENT_EXPORT(ONC) extern const char kTether[];
  77. COMPONENT_EXPORT(ONC) extern const char kTrafficCounterResetTime[];
  78. COMPONENT_EXPORT(ONC) extern const char kType[];
  79. COMPONENT_EXPORT(ONC) extern const char kVPN[];
  80. COMPONENT_EXPORT(ONC) extern const char kWiFi[];
  81. COMPONENT_EXPORT(ONC) extern const char kWimaxDeprecated[];
  82. COMPONENT_EXPORT(ONC)
  83. extern std::string CellularProperty(const std::string& property);
  84. COMPONENT_EXPORT(ONC)
  85. extern std::string TetherProperty(const std::string& property);
  86. COMPONENT_EXPORT(ONC)
  87. extern std::string VpnProperty(const std::string& property);
  88. COMPONENT_EXPORT(ONC)
  89. extern std::string WifiProperty(const std::string& property);
  90. } // namespace network_config
  91. namespace network_type {
  92. COMPONENT_EXPORT(ONC) extern const char kCellular[];
  93. COMPONENT_EXPORT(ONC) extern const char kEthernet[];
  94. COMPONENT_EXPORT(ONC) extern const char kTether[];
  95. COMPONENT_EXPORT(ONC) extern const char kVPN[];
  96. COMPONENT_EXPORT(ONC) extern const char kWiFi[];
  97. COMPONENT_EXPORT(ONC) extern const char kWimaxDeprecated[];
  98. // Patterns matching multiple types, not part of the ONC spec.
  99. COMPONENT_EXPORT(ONC) extern const char kAllTypes[];
  100. COMPONENT_EXPORT(ONC) extern const char kWireless[];
  101. } // namespace network_type
  102. namespace cellular {
  103. COMPONENT_EXPORT(ONC) extern const char kActivationState[];
  104. COMPONENT_EXPORT(ONC) extern const char kActivated[];
  105. COMPONENT_EXPORT(ONC) extern const char kActivating[];
  106. COMPONENT_EXPORT(ONC) extern const char kAutoConnect[];
  107. COMPONENT_EXPORT(ONC) extern const char kNotActivated[];
  108. COMPONENT_EXPORT(ONC) extern const char kPartiallyActivated[];
  109. COMPONENT_EXPORT(ONC) extern const char kActivationType[];
  110. COMPONENT_EXPORT(ONC) extern const char kAllowRoaming[];
  111. COMPONENT_EXPORT(ONC) extern const char kAPN[];
  112. COMPONENT_EXPORT(ONC) extern const char kAPNList[];
  113. COMPONENT_EXPORT(ONC) extern const char kCarrier[];
  114. COMPONENT_EXPORT(ONC) extern const char kESN[];
  115. COMPONENT_EXPORT(ONC) extern const char kFamily[];
  116. COMPONENT_EXPORT(ONC) extern const char kFirmwareRevision[];
  117. COMPONENT_EXPORT(ONC) extern const char kFoundNetworks[];
  118. COMPONENT_EXPORT(ONC) extern const char kHardwareRevision[];
  119. COMPONENT_EXPORT(ONC) extern const char kHomeProvider[];
  120. COMPONENT_EXPORT(ONC) extern const char kEID[];
  121. COMPONENT_EXPORT(ONC) extern const char kICCID[];
  122. COMPONENT_EXPORT(ONC) extern const char kIMEI[];
  123. COMPONENT_EXPORT(ONC) extern const char kIMSI[];
  124. COMPONENT_EXPORT(ONC) extern const char kLastGoodAPN[];
  125. COMPONENT_EXPORT(ONC) extern const char kManufacturer[];
  126. COMPONENT_EXPORT(ONC) extern const char kMDN[];
  127. COMPONENT_EXPORT(ONC) extern const char kMEID[];
  128. COMPONENT_EXPORT(ONC) extern const char kMIN[];
  129. COMPONENT_EXPORT(ONC) extern const char kModelID[];
  130. COMPONENT_EXPORT(ONC) extern const char kNetworkTechnology[];
  131. COMPONENT_EXPORT(ONC) extern const char kPaymentPortal[];
  132. COMPONENT_EXPORT(ONC) extern const char kRoamingHome[];
  133. COMPONENT_EXPORT(ONC) extern const char kRoamingRequired[];
  134. COMPONENT_EXPORT(ONC) extern const char kRoamingRoaming[];
  135. COMPONENT_EXPORT(ONC) extern const char kRoamingState[];
  136. COMPONENT_EXPORT(ONC) extern const char kScanning[];
  137. COMPONENT_EXPORT(ONC) extern const char kServingOperator[];
  138. COMPONENT_EXPORT(ONC) extern const char kSignalStrength[];
  139. COMPONENT_EXPORT(ONC) extern const char kSIMLockStatus[];
  140. COMPONENT_EXPORT(ONC) extern const char kSIMPresent[];
  141. COMPONENT_EXPORT(ONC) extern const char kSMDPAddress[];
  142. COMPONENT_EXPORT(ONC) extern const char kSupportNetworkScan[];
  143. COMPONENT_EXPORT(ONC) extern const char kTechnologyCdma1Xrtt[];
  144. COMPONENT_EXPORT(ONC) extern const char kTechnologyEdge[];
  145. COMPONENT_EXPORT(ONC) extern const char kTechnologyEvdo[];
  146. COMPONENT_EXPORT(ONC) extern const char kTechnologyGprs[];
  147. COMPONENT_EXPORT(ONC) extern const char kTechnologyGsm[];
  148. COMPONENT_EXPORT(ONC) extern const char kTechnologyHspa[];
  149. COMPONENT_EXPORT(ONC) extern const char kTechnologyHspaPlus[];
  150. COMPONENT_EXPORT(ONC) extern const char kTechnologyLte[];
  151. COMPONENT_EXPORT(ONC) extern const char kTechnologyLteAdvanced[];
  152. COMPONENT_EXPORT(ONC) extern const char kTechnologyUmts[];
  153. COMPONENT_EXPORT(ONC) extern const char kTechnology5gNr[];
  154. } // namespace cellular
  155. namespace cellular_provider {
  156. COMPONENT_EXPORT(ONC) extern const char kCode[];
  157. COMPONENT_EXPORT(ONC) extern const char kCountry[];
  158. COMPONENT_EXPORT(ONC) extern const char kName[];
  159. } // namespace cellular_provider
  160. namespace cellular_apn {
  161. COMPONENT_EXPORT(ONC) extern const char kAccessPointName[];
  162. COMPONENT_EXPORT(ONC) extern const char kName[];
  163. COMPONENT_EXPORT(ONC) extern const char kUsername[];
  164. COMPONENT_EXPORT(ONC) extern const char kPassword[];
  165. COMPONENT_EXPORT(ONC) extern const char kAuthentication[];
  166. COMPONENT_EXPORT(ONC) extern const char kLocalizedName[];
  167. COMPONENT_EXPORT(ONC) extern const char kLanguage[];
  168. COMPONENT_EXPORT(ONC) extern const char kAttach[];
  169. } // namespace cellular_apn
  170. namespace cellular_found_network {
  171. COMPONENT_EXPORT(ONC) extern const char kStatus[];
  172. COMPONENT_EXPORT(ONC) extern const char kNetworkId[];
  173. COMPONENT_EXPORT(ONC) extern const char kShortName[];
  174. COMPONENT_EXPORT(ONC) extern const char kLongName[];
  175. COMPONENT_EXPORT(ONC) extern const char kTechnology[];
  176. } // namespace cellular_found_network
  177. namespace cellular_payment_portal {
  178. COMPONENT_EXPORT(ONC) extern const char kMethod[];
  179. COMPONENT_EXPORT(ONC) extern const char kPostData[];
  180. COMPONENT_EXPORT(ONC) extern const char kUrl[];
  181. } // namespace cellular_payment_portal
  182. namespace sim_lock_status {
  183. COMPONENT_EXPORT(ONC) extern const char kLockEnabled[];
  184. COMPONENT_EXPORT(ONC) extern const char kLockType[];
  185. COMPONENT_EXPORT(ONC) extern const char kRetriesLeft[];
  186. } // namespace sim_lock_status
  187. namespace connection_state {
  188. COMPONENT_EXPORT(ONC) extern const char kConnected[];
  189. COMPONENT_EXPORT(ONC) extern const char kConnecting[];
  190. COMPONENT_EXPORT(ONC) extern const char kNotConnected[];
  191. } // namespace connection_state
  192. namespace ipconfig {
  193. COMPONENT_EXPORT(ONC) extern const char kGateway[];
  194. COMPONENT_EXPORT(ONC) extern const char kIPAddress[];
  195. COMPONENT_EXPORT(ONC) extern const char kIPv4[];
  196. COMPONENT_EXPORT(ONC) extern const char kIPv6[];
  197. COMPONENT_EXPORT(ONC) extern const char kNameServers[];
  198. COMPONENT_EXPORT(ONC) extern const char kRoutingPrefix[];
  199. COMPONENT_EXPORT(ONC) extern const char kSearchDomains[];
  200. COMPONENT_EXPORT(ONC) extern const char kIncludedRoutes[];
  201. COMPONENT_EXPORT(ONC) extern const char kExcludedRoutes[];
  202. COMPONENT_EXPORT(ONC) extern const char kType[];
  203. COMPONENT_EXPORT(ONC) extern const char kWebProxyAutoDiscoveryUrl[];
  204. } // namespace ipconfig
  205. namespace ethernet {
  206. COMPONENT_EXPORT(ONC) extern const char kAuthentication[];
  207. COMPONENT_EXPORT(ONC) extern const char kAuthenticationNone[];
  208. COMPONENT_EXPORT(ONC) extern const char kEAP[];
  209. COMPONENT_EXPORT(ONC) extern const char k8021X[];
  210. } // namespace ethernet
  211. namespace tether {
  212. COMPONENT_EXPORT(ONC) extern const char kBatteryPercentage[];
  213. COMPONENT_EXPORT(ONC) extern const char kCarrier[];
  214. COMPONENT_EXPORT(ONC) extern const char kHasConnectedToHost[];
  215. COMPONENT_EXPORT(ONC) extern const char kSignalStrength[];
  216. } // namespace tether
  217. namespace wifi {
  218. COMPONENT_EXPORT(ONC) extern const char kAllowGatewayARPPolling[];
  219. COMPONENT_EXPORT(ONC) extern const char kAutoConnect[];
  220. COMPONENT_EXPORT(ONC) extern const char kBSSID[];
  221. COMPONENT_EXPORT(ONC) extern const char kEAP[];
  222. COMPONENT_EXPORT(ONC) extern const char kFrequency[];
  223. COMPONENT_EXPORT(ONC) extern const char kFrequencyList[];
  224. COMPONENT_EXPORT(ONC) extern const char kHexSSID[];
  225. COMPONENT_EXPORT(ONC) extern const char kHiddenSSID[];
  226. COMPONENT_EXPORT(ONC) extern const char kPassphrase[];
  227. COMPONENT_EXPORT(ONC) extern const char kSSID[];
  228. COMPONENT_EXPORT(ONC) extern const char kSecurity[];
  229. COMPONENT_EXPORT(ONC) extern const char kSecurityNone[];
  230. COMPONENT_EXPORT(ONC) extern const char kSignalStrength[];
  231. COMPONENT_EXPORT(ONC) extern const char kSignalStrengthRssi[];
  232. COMPONENT_EXPORT(ONC) extern const char kWEP_PSK[];
  233. COMPONENT_EXPORT(ONC) extern const char kWEP_8021X[];
  234. COMPONENT_EXPORT(ONC) extern const char kWPA_PSK[];
  235. COMPONENT_EXPORT(ONC) extern const char kWPA2_PSK[];
  236. COMPONENT_EXPORT(ONC) extern const char kWPA_EAP[];
  237. } // namespace wifi
  238. namespace wimax_deprecated {
  239. COMPONENT_EXPORT(ONC) extern const char kAutoConnect[];
  240. COMPONENT_EXPORT(ONC) extern const char kEAP[];
  241. } // namespace wimax_deprecated
  242. namespace client_cert {
  243. COMPONENT_EXPORT(ONC) extern const char kClientCertProvisioningProfileId[];
  244. COMPONENT_EXPORT(ONC) extern const char kClientCertPattern[];
  245. COMPONENT_EXPORT(ONC) extern const char kClientCertPKCS11Id[];
  246. COMPONENT_EXPORT(ONC) extern const char kClientCertRef[];
  247. COMPONENT_EXPORT(ONC) extern const char kClientCertType[];
  248. COMPONENT_EXPORT(ONC) extern const char kClientCertTypeNone[];
  249. COMPONENT_EXPORT(ONC) extern const char kCommonName[];
  250. COMPONENT_EXPORT(ONC) extern const char kEmailAddress[];
  251. COMPONENT_EXPORT(ONC) extern const char kEnrollmentURI[];
  252. COMPONENT_EXPORT(ONC) extern const char kIssuerCARef[];
  253. COMPONENT_EXPORT(ONC) extern const char kIssuerCAPEMs[];
  254. COMPONENT_EXPORT(ONC) extern const char kIssuer[];
  255. COMPONENT_EXPORT(ONC) extern const char kLocality[];
  256. COMPONENT_EXPORT(ONC) extern const char kOrganization[];
  257. COMPONENT_EXPORT(ONC) extern const char kOrganizationalUnit[];
  258. COMPONENT_EXPORT(ONC) extern const char kPattern[];
  259. COMPONENT_EXPORT(ONC) extern const char kProvisioningProfileId[];
  260. COMPONENT_EXPORT(ONC) extern const char kPKCS11Id[];
  261. COMPONENT_EXPORT(ONC) extern const char kRef[];
  262. COMPONENT_EXPORT(ONC) extern const char kSubject[];
  263. } // namespace client_cert
  264. namespace certificate {
  265. COMPONENT_EXPORT(ONC) extern const char kAuthority[];
  266. COMPONENT_EXPORT(ONC) extern const char kClient[];
  267. COMPONENT_EXPORT(ONC) extern const char kGUID[];
  268. COMPONENT_EXPORT(ONC) extern const char kPKCS12[];
  269. COMPONENT_EXPORT(ONC) extern const char kScope[];
  270. COMPONENT_EXPORT(ONC) extern const char kServer[];
  271. COMPONENT_EXPORT(ONC) extern const char kTrustBits[];
  272. COMPONENT_EXPORT(ONC) extern const char kType[];
  273. COMPONENT_EXPORT(ONC) extern const char kWeb[];
  274. COMPONENT_EXPORT(ONC) extern const char kX509[];
  275. } // namespace certificate
  276. namespace scope {
  277. COMPONENT_EXPORT(ONC) extern const char kDefault[];
  278. COMPONENT_EXPORT(ONC) extern const char kExtension[];
  279. COMPONENT_EXPORT(ONC) extern const char kId[];
  280. COMPONENT_EXPORT(ONC) extern const char kType[];
  281. } // namespace scope
  282. namespace encrypted {
  283. COMPONENT_EXPORT(ONC) extern const char kAES256[];
  284. COMPONENT_EXPORT(ONC) extern const char kCipher[];
  285. COMPONENT_EXPORT(ONC) extern const char kCiphertext[];
  286. COMPONENT_EXPORT(ONC) extern const char kHMACMethod[];
  287. COMPONENT_EXPORT(ONC) extern const char kHMAC[];
  288. COMPONENT_EXPORT(ONC) extern const char kIV[];
  289. COMPONENT_EXPORT(ONC) extern const char kIterations[];
  290. COMPONENT_EXPORT(ONC) extern const char kPBKDF2[];
  291. COMPONENT_EXPORT(ONC) extern const char kSHA1[];
  292. COMPONENT_EXPORT(ONC) extern const char kSalt[];
  293. COMPONENT_EXPORT(ONC) extern const char kStretch[];
  294. } // namespace encrypted
  295. namespace eap {
  296. COMPONENT_EXPORT(ONC) extern const char kAnonymousIdentity[];
  297. COMPONENT_EXPORT(ONC) extern const char kAutomatic[];
  298. COMPONENT_EXPORT(ONC) extern const char kDomainSuffixMatch[];
  299. COMPONENT_EXPORT(ONC) extern const char kEAP_AKA[];
  300. COMPONENT_EXPORT(ONC) extern const char kEAP_FAST[];
  301. COMPONENT_EXPORT(ONC) extern const char kEAP_SIM[];
  302. COMPONENT_EXPORT(ONC) extern const char kEAP_TLS[];
  303. COMPONENT_EXPORT(ONC) extern const char kEAP_TTLS[];
  304. COMPONENT_EXPORT(ONC) extern const char kGTC[];
  305. COMPONENT_EXPORT(ONC) extern const char kIdentity[];
  306. COMPONENT_EXPORT(ONC) extern const char kInner[];
  307. COMPONENT_EXPORT(ONC) extern const char kLEAP[];
  308. COMPONENT_EXPORT(ONC) extern const char kMD5[];
  309. COMPONENT_EXPORT(ONC) extern const char kMSCHAP[];
  310. COMPONENT_EXPORT(ONC) extern const char kMSCHAPv2[];
  311. COMPONENT_EXPORT(ONC) extern const char kOuter[];
  312. COMPONENT_EXPORT(ONC) extern const char kPAP[];
  313. COMPONENT_EXPORT(ONC) extern const char kPEAP[];
  314. COMPONENT_EXPORT(ONC) extern const char kPassword[];
  315. COMPONENT_EXPORT(ONC) extern const char kSaveCredentials[];
  316. COMPONENT_EXPORT(ONC) extern const char kServerCAPEMs[];
  317. COMPONENT_EXPORT(ONC) extern const char kServerCARef[];
  318. COMPONENT_EXPORT(ONC) extern const char kServerCARefs[];
  319. COMPONENT_EXPORT(ONC) extern const char kSubjectMatch[];
  320. COMPONENT_EXPORT(ONC) extern const char kSubjectAlternativeNameMatch[];
  321. COMPONENT_EXPORT(ONC) extern const char kTLSVersionMax[];
  322. COMPONENT_EXPORT(ONC) extern const char kUseSystemCAs[];
  323. COMPONENT_EXPORT(ONC) extern const char kUseProactiveKeyCaching[];
  324. } // namespace eap
  325. namespace eap_subject_alternative_name_match {
  326. COMPONENT_EXPORT(ONC) extern const char kType[];
  327. COMPONENT_EXPORT(ONC) extern const char kValue[];
  328. COMPONENT_EXPORT(ONC) extern const char kEMAIL[];
  329. COMPONENT_EXPORT(ONC) extern const char kDNS[];
  330. COMPONENT_EXPORT(ONC) extern const char kURI[];
  331. } // namespace eap_subject_alternative_name_match
  332. namespace vpn {
  333. COMPONENT_EXPORT(ONC) extern const char kArcVpn[];
  334. COMPONENT_EXPORT(ONC) extern const char kAutoConnect[];
  335. COMPONENT_EXPORT(ONC) extern const char kHost[];
  336. COMPONENT_EXPORT(ONC) extern const char kIPsec[];
  337. COMPONENT_EXPORT(ONC) extern const char kL2TP[];
  338. COMPONENT_EXPORT(ONC) extern const char kOpenVPN[];
  339. COMPONENT_EXPORT(ONC) extern const char kPassword[];
  340. COMPONENT_EXPORT(ONC) extern const char kSaveCredentials[];
  341. COMPONENT_EXPORT(ONC) extern const char kThirdPartyVpn[];
  342. COMPONENT_EXPORT(ONC) extern const char kTypeL2TP_IPsec[];
  343. COMPONENT_EXPORT(ONC) extern const char kType[];
  344. COMPONENT_EXPORT(ONC) extern const char kUsername[];
  345. COMPONENT_EXPORT(ONC) extern const char kWireGuard[];
  346. } // namespace vpn
  347. namespace ipsec {
  348. COMPONENT_EXPORT(ONC) extern const char kAuthenticationType[];
  349. COMPONENT_EXPORT(ONC) extern const char kCert[];
  350. COMPONENT_EXPORT(ONC) extern const char kEAP[];
  351. COMPONENT_EXPORT(ONC) extern const char kGroup[];
  352. COMPONENT_EXPORT(ONC) extern const char kIKEVersion[];
  353. COMPONENT_EXPORT(ONC) extern const char kLocalIdentity[];
  354. COMPONENT_EXPORT(ONC) extern const char kPSK[];
  355. COMPONENT_EXPORT(ONC) extern const char kRemoteIdentity[];
  356. COMPONENT_EXPORT(ONC) extern const char kServerCAPEMs[];
  357. COMPONENT_EXPORT(ONC) extern const char kServerCARef[];
  358. COMPONENT_EXPORT(ONC) extern const char kServerCARefs[];
  359. COMPONENT_EXPORT(ONC) extern const char kXAUTH[];
  360. } // namespace ipsec
  361. namespace l2tp {
  362. COMPONENT_EXPORT(ONC) extern const char kLcpEchoDisabled[];
  363. COMPONENT_EXPORT(ONC) extern const char kPassword[];
  364. COMPONENT_EXPORT(ONC) extern const char kSaveCredentials[];
  365. COMPONENT_EXPORT(ONC) extern const char kUsername[];
  366. } // namespace l2tp
  367. namespace openvpn {
  368. COMPONENT_EXPORT(ONC) extern const char kAuthNoCache[];
  369. COMPONENT_EXPORT(ONC) extern const char kAuthRetry[];
  370. COMPONENT_EXPORT(ONC) extern const char kAuth[];
  371. COMPONENT_EXPORT(ONC) extern const char kCipher[];
  372. COMPONENT_EXPORT(ONC) extern const char kCompLZO[];
  373. COMPONENT_EXPORT(ONC) extern const char kCompNoAdapt[];
  374. COMPONENT_EXPORT(ONC) extern const char kCompressionAlgorithm[];
  375. COMPONENT_EXPORT(ONC) extern const char kExtraHosts[];
  376. COMPONENT_EXPORT(ONC) extern const char kIgnoreDefaultRoute[];
  377. COMPONENT_EXPORT(ONC) extern const char kInteract[];
  378. COMPONENT_EXPORT(ONC) extern const char kKeyDirection[];
  379. COMPONENT_EXPORT(ONC) extern const char kNoInteract[];
  380. COMPONENT_EXPORT(ONC) extern const char kNone[];
  381. COMPONENT_EXPORT(ONC) extern const char kNsCertType[];
  382. COMPONENT_EXPORT(ONC) extern const char kOTP[];
  383. COMPONENT_EXPORT(ONC) extern const char kPassword[];
  384. COMPONENT_EXPORT(ONC) extern const char kPort[];
  385. COMPONENT_EXPORT(ONC) extern const char kProto[];
  386. COMPONENT_EXPORT(ONC) extern const char kPushPeerInfo[];
  387. COMPONENT_EXPORT(ONC) extern const char kRemoteCertEKU[];
  388. COMPONENT_EXPORT(ONC) extern const char kRemoteCertKU[];
  389. COMPONENT_EXPORT(ONC) extern const char kRemoteCertTLS[];
  390. COMPONENT_EXPORT(ONC) extern const char kRenegSec[];
  391. COMPONENT_EXPORT(ONC) extern const char kServerCAPEMs[];
  392. COMPONENT_EXPORT(ONC) extern const char kServerCARef[];
  393. COMPONENT_EXPORT(ONC) extern const char kServerCARefs[];
  394. COMPONENT_EXPORT(ONC) extern const char kServerCertPEM[];
  395. COMPONENT_EXPORT(ONC) extern const char kServerCertRef[];
  396. COMPONENT_EXPORT(ONC) extern const char kServerPollTimeout[];
  397. COMPONENT_EXPORT(ONC) extern const char kServer[];
  398. COMPONENT_EXPORT(ONC) extern const char kShaper[];
  399. COMPONENT_EXPORT(ONC) extern const char kStaticChallenge[];
  400. COMPONENT_EXPORT(ONC) extern const char kTLSAuthContents[];
  401. COMPONENT_EXPORT(ONC) extern const char kTLSRemote[];
  402. COMPONENT_EXPORT(ONC) extern const char kTLSVersionMin[];
  403. COMPONENT_EXPORT(ONC) extern const char kUserAuthenticationType[];
  404. COMPONENT_EXPORT(ONC) extern const char kVerb[];
  405. COMPONENT_EXPORT(ONC) extern const char kVerifyHash[];
  406. COMPONENT_EXPORT(ONC) extern const char kVerifyX509[];
  407. } // namespace openvpn
  408. namespace wireguard {
  409. COMPONENT_EXPORT(ONC) extern const char kAddress[];
  410. COMPONENT_EXPORT(ONC) extern const char kAllowedIPs[];
  411. COMPONENT_EXPORT(ONC) extern const char kEndpoint[];
  412. COMPONENT_EXPORT(ONC) extern const char kPeers[];
  413. COMPONENT_EXPORT(ONC) extern const char kPersistentKeepalive[];
  414. COMPONENT_EXPORT(ONC) extern const char kPresharedKey[];
  415. COMPONENT_EXPORT(ONC) extern const char kPrivateKey[];
  416. COMPONENT_EXPORT(ONC) extern const char kPublicKey[];
  417. } // namespace wireguard
  418. namespace openvpn_compression_algorithm {
  419. COMPONENT_EXPORT(ONC) extern const char kFramingOnly[];
  420. COMPONENT_EXPORT(ONC) extern const char kLz4[];
  421. COMPONENT_EXPORT(ONC) extern const char kLz4V2[];
  422. COMPONENT_EXPORT(ONC) extern const char kLzo[];
  423. COMPONENT_EXPORT(ONC) extern const char kNone[];
  424. } // namespace openvpn_compression_algorithm
  425. namespace openvpn_user_auth_type {
  426. COMPONENT_EXPORT(ONC) extern const char kNone[];
  427. COMPONENT_EXPORT(ONC) extern const char kOTP[];
  428. COMPONENT_EXPORT(ONC) extern const char kPassword[];
  429. COMPONENT_EXPORT(ONC) extern const char kPasswordAndOTP[];
  430. } // namespace openvpn_user_auth_type
  431. namespace third_party_vpn {
  432. COMPONENT_EXPORT(ONC) extern const char kExtensionID[];
  433. COMPONENT_EXPORT(ONC) extern const char kProviderName[];
  434. } // namespace third_party_vpn
  435. namespace arc_vpn {
  436. COMPONENT_EXPORT(ONC) extern const char kTunnelChrome[];
  437. } // namespace arc_vpn
  438. namespace verify_x509 {
  439. COMPONENT_EXPORT(ONC) extern const char kName[];
  440. COMPONENT_EXPORT(ONC) extern const char kType[];
  441. namespace types {
  442. COMPONENT_EXPORT(ONC) extern const char kName[];
  443. COMPONENT_EXPORT(ONC) extern const char kNamePrefix[];
  444. COMPONENT_EXPORT(ONC) extern const char kSubject[];
  445. } // namespace types
  446. } // namespace verify_x509
  447. namespace substitutes {
  448. COMPONENT_EXPORT(ONC) extern const char kLoginEmail[];
  449. COMPONENT_EXPORT(ONC) extern const char kLoginID[];
  450. COMPONENT_EXPORT(ONC) extern const char kCertSANEmail[];
  451. COMPONENT_EXPORT(ONC) extern const char kCertSANUPN[];
  452. COMPONENT_EXPORT(ONC) extern const char kCertSubjectCommonName[];
  453. COMPONENT_EXPORT(ONC) extern const char kDeviceSerialNumber[];
  454. COMPONENT_EXPORT(ONC) extern const char kDeviceAssetId[];
  455. COMPONENT_EXPORT(ONC) extern const char kPasswordPlaceholderVerbatim[];
  456. } // namespace substitutes
  457. namespace proxy {
  458. COMPONENT_EXPORT(ONC) extern const char kDirect[];
  459. COMPONENT_EXPORT(ONC) extern const char kExcludeDomains[];
  460. COMPONENT_EXPORT(ONC) extern const char kFtp[];
  461. COMPONENT_EXPORT(ONC) extern const char kHost[];
  462. COMPONENT_EXPORT(ONC) extern const char kHttp[];
  463. COMPONENT_EXPORT(ONC) extern const char kHttps[];
  464. COMPONENT_EXPORT(ONC) extern const char kManual[];
  465. COMPONENT_EXPORT(ONC) extern const char kPAC[];
  466. COMPONENT_EXPORT(ONC) extern const char kPort[];
  467. COMPONENT_EXPORT(ONC) extern const char kSocks[];
  468. COMPONENT_EXPORT(ONC) extern const char kType[];
  469. COMPONENT_EXPORT(ONC) extern const char kWPAD[];
  470. } // namespace proxy
  471. namespace global_network_config {
  472. COMPONENT_EXPORT(ONC) extern const char kAllowCellularSimLock[];
  473. COMPONENT_EXPORT(ONC) extern const char kAllowOnlyPolicyCellularNetworks[];
  474. COMPONENT_EXPORT(ONC) extern const char kAllowOnlyPolicyNetworksToAutoconnect[];
  475. COMPONENT_EXPORT(ONC) extern const char* const kAllowOnlyPolicyWiFiToConnect;
  476. COMPONENT_EXPORT(ONC)
  477. extern const char* const kAllowOnlyPolicyWiFiToConnectIfAvailable;
  478. COMPONENT_EXPORT(ONC) extern const char kBlacklistedHexSSIDs[]; // Deprecated
  479. COMPONENT_EXPORT(ONC) extern const char kBlockedHexSSIDs[];
  480. COMPONENT_EXPORT(ONC) extern const char kDisableNetworkTypes[];
  481. } // namespace global_network_config
  482. namespace device_state {
  483. COMPONENT_EXPORT(ONC) extern const char kUninitialized[];
  484. COMPONENT_EXPORT(ONC) extern const char kDisabled[];
  485. COMPONENT_EXPORT(ONC) extern const char kEnabling[];
  486. COMPONENT_EXPORT(ONC) extern const char kEnabled[];
  487. } // namespace device_state
  488. } // namespace onc
  489. #endif // COMPONENTS_ONC_ONC_CONSTANTS_H_