Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(807)

Unified Diff: chrome/browser/chromeos/cros/onc_constants.cc

Issue 10944009: Implementation of ONC signature, validator and normalizer. (Closed) Base URL: http://git.chromium.org/chromium/src.git@gperffix
Patch Set: Addressed remaining nits. Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/chromeos/cros/onc_constants.h ('k') | chrome/browser/chromeos/cros/onc_network_parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/cros/onc_constants.cc
diff --git a/chrome/browser/chromeos/cros/onc_constants.cc b/chrome/browser/chromeos/cros/onc_constants.cc
index bfb3490748a3299ddbba6e6533c963826f238216..2a1378c842fd23669de7a79e0c8ac5137f289214 100644
--- a/chrome/browser/chromeos/cros/onc_constants.cc
+++ b/chrome/browser/chromeos/cros/onc_constants.cc
@@ -9,13 +9,25 @@ namespace chromeos {
// Constants for ONC properties.
namespace onc {
+// Top Level ONC
+const char kCertificates[] = "Certificates";
+const char kNetworkConfigurations[] = "NetworkConfigurations";
+
+const char kNetworkConfiguration[] = "NetworkConfiguration";
+
+// Common keys/values.
+const char kRecommended[] = "Recommended";
+const char kRemove[] = "Remove";
+
+// Network Configuration
+const char kCellular[] = "Cellular";
const char kEthernet[] = "Ethernet";
const char kGUID[] = "GUID";
+const char kIPConfigs[] = "IPConfigs";
const char kName[] = "Name";
-const char kNetworkConfiguration[] = "NetworkConfiguration";
+const char kNameServers[] = "NameServers";
const char kProxySettings[] = "ProxySettings";
-const char kRecommended[] = "Recommended";
-const char kRemove[] = "Remove";
+const char kSearchDomains[] = "SearchDomains";
const char kType[] = "Type";
const char kVPN[] = "VPN";
const char kWiFi[] = "WiFi";
@@ -23,41 +35,75 @@ const char kWiFi[] = "WiFi";
namespace ethernet {
const char kAuthentication[] = "Authentication";
const char kEAP[] = "EAP";
+const char kNone[] = "None";
+const char k8021X[] = "8021X";
} // namespace ethernet
+namespace ipconfig {
+const char kGateway[] = "Gateway";
+const char kIPAddress[] = "IPAddress";
+const char kIPv4[] = "IPv4";
+const char kIPv6[] = "IPv6";
+const char kRoutingPrefix[] = "RoutingPrefix";
+const char kType[] = "Type";
+} // namespace ipconfig
+
namespace wifi {
const char kAutoConnect[] = "AutoConnect";
const char kEAP[] = "EAP";
const char kHiddenSSID[] = "HiddenSSID";
+const char kNone[] = "None";
const char kPassphrase[] = "Passphrase";
const char kProxyURL[] = "ProxyURL";
const char kSSID[] = "SSID";
const char kSecurity[] = "Security";
+const char kWEP_PSK[] = "WEP-PSK";
+const char kWEP_8021X[] = "WEP-8021X";
+const char kWPA_PSK[] = "WPA-PSK";
+const char kWPA_EAP[] = "WPA-EAP";
} // namespace wifi
namespace certificate {
+const char kAuthority[] = "Authority";
+const char kClient[] = "Client";
const char kCommonName[] = "CommonName";
const char kEmailAddress[] = "EmailAddress";
const char kEnrollmentURI[] = "EnrollmentURI";
-const char kIssuer[] = "Issuer";
const char kIssuerCARef[] = "IssuerCARef";
+const char kIssuer[] = "Issuer";
const char kLocality[] = "Locality";
const char kNone[] = "None";
const char kOrganization[] = "Organization";
const char kOrganizationalUnit[] = "OrganizationalUnit";
+const char kPKCS12[] = "PKCS12";
const char kPattern[] = "Pattern";
const char kRef[] = "Ref";
+const char kServer[] = "Server";
const char kSubject[] = "Subject";
+const char kTrust[] = "Trust";
+const char kType[] = "Type";
+const char kX509[] = "X509";
} // namespace certificate
namespace eap {
const char kAnonymousIdentity[] = "AnonymousIdentity";
+const char kAutomatic[] = "Automatic";
const char kClientCertPattern[] = "ClientCertPattern";
const char kClientCertRef[] = "ClientCertRef";
const char kClientCertType[] = "ClientCertType";
+const char kEAP_AKA[] = "EAP-AKA";
+const char kEAP_FAST[] = "EAP-FAST";
+const char kEAP_SIM[] = "EAP-SIM";
+const char kEAP_TLS[] = "EAP-TLS";
+const char kEAP_TTLS[] = "EAP-TTLS";
const char kIdentity[] = "Identity";
const char kInner[] = "Inner";
+const char kLEAP[] = "LEAP";
+const char kMD5[] = "MD5";
+const char kMSCHAPv2[] = "MSCHAPv2";
const char kOuter[] = "Outer";
+const char kPAP[] = "PAP";
+const char kPEAP[] = "PEAP";
const char kPassword[] = "Password";
const char kSaveCredentials[] = "SaveCredentials";
const char kServerCARef[] = "ServerCARef";
@@ -69,12 +115,14 @@ const char kAuthNoCache[] = "AuthNoCache";
const char kAuthRetry[] = "AuthRetry";
const char kAuth[] = "Auth";
const char kAuthenticationType[] = "AuthenticationType";
+const char kCert[] = "Cert";
const char kCipher[] = "Cipher";
const char kClientCertPattern[] = "ClientCertPattern";
const char kClientCertRef[] = "ClientCertRef";
const char kClientCertType[] = "ClientCertType";
const char kCompLZO[] = "CompLZO";
const char kCompNoAdapt[] = "CompNoAdapt";
+const char kEAP[] = "EAP";
const char kGroup[] = "Group";
const char kHost[] = "Host";
const char kIKEVersion[] = "IKEVersion";
@@ -100,10 +148,20 @@ const char kShaper[] = "Shaper";
const char kStaticChallenge[] = "StaticChallenge";
const char kTLSAuthContents[] = "TLSAuthContents";
const char kTLSRemote[] = "TLSRemote";
+const char kTypeL2TP_IPsec[] = "L2TP-IPsec";
const char kType[] = "Type";
const char kUsername[] = "Username";
+const char kVerb[] = "Verb";
+const char kXAUTH[] = "XAUTH";
} // namespace vpn
+namespace openvpn {
+const char kNone[] = "none";
+const char kInteract[] = "interact";
+const char kNoInteract[] = "nointeract";
+const char kServer[] = "server";
+} // namespace openvpn
+
namespace proxy {
const char kDirect[] = "Direct";
const char kExcludeDomains[] = "ExcludeDomains";
« no previous file with comments | « chrome/browser/chromeos/cros/onc_constants.h ('k') | chrome/browser/chromeos/cros/onc_network_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698