mukesh agrawal | 4d0401c | 2012-01-06 16:05:31 -0800 | [diff] [blame] | 1 | // Copyright (c) 2012 The Chromium OS Authors. All rights reserved. |
mukesh agrawal | 6e27777 | 2011-09-29 15:04:23 -0700 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef SHILL_WPA_SUPPLICANT_H |
| 6 | #define SHILL_WPA_SUPPLICANT_H |
| 7 | |
| 8 | #include <base/basictypes.h> |
| 9 | |
| 10 | namespace shill { |
| 11 | |
| 12 | namespace wpa_supplicant { |
| 13 | extern const char kBSSPropertyBSSID[]; |
Thieu Le | e41a72d | 2012-02-06 20:46:51 +0000 | [diff] [blame] | 14 | extern const char kBSSPropertyFrequency[]; |
Thieu Le | 1df7f4e | 2012-02-10 15:21:45 -0800 | [diff] [blame] | 15 | extern const char kBSSPropertyIEs[]; |
mukesh agrawal | 6e27777 | 2011-09-29 15:04:23 -0700 | [diff] [blame] | 16 | extern const char kBSSPropertyMode[]; |
Thieu Le | 1df7f4e | 2012-02-10 15:21:45 -0800 | [diff] [blame] | 17 | extern const char kBSSPropertyRates[]; |
Thieu Le | e41a72d | 2012-02-06 20:46:51 +0000 | [diff] [blame] | 18 | extern const char kBSSPropertySSID[]; |
mukesh agrawal | 6e27777 | 2011-09-29 15:04:23 -0700 | [diff] [blame] | 19 | extern const char kBSSPropertySignal[]; |
Gaurav Shah | 10109f2 | 2011-11-11 20:16:22 -0800 | [diff] [blame] | 20 | extern const char kCaPath[]; |
mukesh agrawal | 1590839 | 2011-11-16 18:29:25 +0000 | [diff] [blame] | 21 | extern const char kCurrentBSSNull[]; |
mukesh agrawal | 6e27777 | 2011-09-29 15:04:23 -0700 | [diff] [blame] | 22 | extern const char kDBusAddr[]; |
| 23 | extern const char kDBusPath[]; |
Paul Stewart | 5581d07 | 2012-12-17 17:30:20 -0800 | [diff] [blame] | 24 | extern const char kDebugLevelDebug[]; |
| 25 | extern const char kDebugLevelError[]; |
| 26 | extern const char kDebugLevelExcessive[]; |
| 27 | extern const char kDebugLevelInfo[]; |
| 28 | extern const char kDebugLevelMsgDump[]; |
| 29 | extern const char kDebugLevelWarning[]; |
mukesh agrawal | 6e27777 | 2011-09-29 15:04:23 -0700 | [diff] [blame] | 30 | extern const char kDriverNL80211[]; |
Paul Stewart | db0f917 | 2012-11-30 16:48:09 -0800 | [diff] [blame] | 31 | extern const char kEAPParameterAlertUnknownCA[]; |
| 32 | extern const char kEAPParameterFailure[]; |
| 33 | extern const char kEAPParameterSuccess[]; |
| 34 | extern const char kEAPStatusAcceptProposedMethod[]; |
| 35 | extern const char kEAPStatusCompletion[]; |
| 36 | extern const char kEAPStatusLocalTLSAlert[]; |
Paul Stewart | 1369c2b | 2013-01-11 05:41:26 -0800 | [diff] [blame] | 37 | extern const char kEAPStatusParameterNeeded[]; |
Paul Stewart | db0f917 | 2012-11-30 16:48:09 -0800 | [diff] [blame] | 38 | extern const char kEAPStatusRemoteCertificateVerification[]; |
| 39 | extern const char kEAPStatusRemoteTLSAlert[]; |
Paul Stewart | 1369c2b | 2013-01-11 05:41:26 -0800 | [diff] [blame] | 40 | extern const char kEAPStatusStarted[]; |
Paul Stewart | 2055098 | 2012-04-16 12:16:11 -0700 | [diff] [blame] | 41 | extern const char kEnginePKCS11[]; |
Ben Chan | 381fdcc | 2012-10-14 21:10:36 -0700 | [diff] [blame] | 42 | extern const char kErrorNetworkUnknown[]; |
mukesh agrawal | 6e27777 | 2011-09-29 15:04:23 -0700 | [diff] [blame] | 43 | extern const char kErrorInterfaceExists[]; |
Paul Stewart | 2055098 | 2012-04-16 12:16:11 -0700 | [diff] [blame] | 44 | extern const char kInterfacePropertyConfigFile[]; |
mukesh agrawal | 1590839 | 2011-11-16 18:29:25 +0000 | [diff] [blame] | 45 | extern const char kInterfacePropertyCurrentBSS[]; |
Paul Stewart | bc6e739 | 2012-05-24 07:07:48 -0700 | [diff] [blame] | 46 | extern const char kInterfacePropertyDepth[]; |
Paul Stewart | 2055098 | 2012-04-16 12:16:11 -0700 | [diff] [blame] | 47 | extern const char kInterfacePropertyDriver[]; |
| 48 | extern const char kInterfacePropertyName[]; |
mukesh agrawal | 7ec7131 | 2011-11-10 02:08:26 +0000 | [diff] [blame] | 49 | extern const char kInterfacePropertyState[]; |
Paul Stewart | bc6e739 | 2012-05-24 07:07:48 -0700 | [diff] [blame] | 50 | extern const char kInterfacePropertySubject[]; |
mukesh agrawal | 7ec7131 | 2011-11-10 02:08:26 +0000 | [diff] [blame] | 51 | extern const char kInterfaceState4WayHandshake[]; |
| 52 | extern const char kInterfaceStateAssociated[]; |
| 53 | extern const char kInterfaceStateAssociating[]; |
| 54 | extern const char kInterfaceStateAuthenticating[]; |
| 55 | extern const char kInterfaceStateCompleted[]; |
| 56 | extern const char kInterfaceStateDisconnected[]; |
| 57 | extern const char kInterfaceStateGroupHandshake[]; |
| 58 | extern const char kInterfaceStateInactive[]; |
| 59 | extern const char kInterfaceStateScanning[]; |
mukesh agrawal | 6e27777 | 2011-09-29 15:04:23 -0700 | [diff] [blame] | 60 | extern const char kKeyManagementMethodSuffixEAP[]; |
| 61 | extern const char kKeyManagementMethodSuffixPSK[]; |
| 62 | extern const char kKeyModeNone[]; |
mukesh agrawal | 4d0401c | 2012-01-06 16:05:31 -0800 | [diff] [blame] | 63 | extern const char kNetworkBgscanMethodLearn[]; |
Christopher Wiley | a998df2 | 2012-07-11 15:14:55 -0700 | [diff] [blame] | 64 | // None is not a real method name, but we interpret 'none' as a request that |
| 65 | // no background scan parameter should be supplied to wpa_supplicant. |
| 66 | extern const char kNetworkBgscanMethodNone[]; |
mukesh agrawal | 4d0401c | 2012-01-06 16:05:31 -0800 | [diff] [blame] | 67 | extern const char kNetworkBgscanMethodSimple[]; |
mukesh agrawal | 6e27777 | 2011-09-29 15:04:23 -0700 | [diff] [blame] | 68 | extern const char kNetworkModeInfrastructure[]; |
| 69 | extern const char kNetworkModeAdHoc[]; |
| 70 | extern const char kNetworkModeAccessPoint[]; |
mukesh agrawal | 4d0401c | 2012-01-06 16:05:31 -0800 | [diff] [blame] | 71 | extern const char kNetworkPropertyBgscan[]; |
Gaurav Shah | 10109f2 | 2011-11-11 20:16:22 -0800 | [diff] [blame] | 72 | extern const char kNetworkPropertyCaPath[]; |
| 73 | extern const char kNetworkPropertyEapKeyManagement[]; |
| 74 | extern const char kNetworkPropertyEapIdentity[]; |
| 75 | extern const char kNetworkPropertyEapEap[]; |
| 76 | extern const char kNetworkPropertyEapInnerEap[]; |
| 77 | extern const char kNetworkPropertyEapAnonymousIdentity[]; |
| 78 | extern const char kNetworkPropertyEapClientCert[]; |
| 79 | extern const char kNetworkPropertyEapPrivateKey[]; |
| 80 | extern const char kNetworkPropertyEapPrivateKeyPassword[]; |
| 81 | extern const char kNetworkPropertyEapCaCert[]; |
| 82 | extern const char kNetworkPropertyEapCaPassword[]; |
| 83 | extern const char kNetworkPropertyEapCertId[]; |
| 84 | extern const char kNetworkPropertyEapKeyId[]; |
| 85 | extern const char kNetworkPropertyEapCaCertId[]; |
| 86 | extern const char kNetworkPropertyEapPin[]; |
Paul Stewart | bc6e739 | 2012-05-24 07:07:48 -0700 | [diff] [blame] | 87 | extern const char kNetworkPropertyEapSubjectMatch[]; |
Paul Stewart | 2055098 | 2012-04-16 12:16:11 -0700 | [diff] [blame] | 88 | extern const char kNetworkPropertyEngine[]; |
| 89 | extern const char kNetworkPropertyEngineId[]; |
Paul Stewart | e2d7c50 | 2012-07-16 16:35:10 -0700 | [diff] [blame] | 90 | extern const char kNetworkPropertyFrequency[]; |
Paul Stewart | a5e7d5f | 2013-01-09 18:06:15 -0800 | [diff] [blame] | 91 | extern const char kNetworkPropertyIeee80211w[]; |
mukesh agrawal | 6e27777 | 2011-09-29 15:04:23 -0700 | [diff] [blame] | 92 | extern const char kNetworkPropertyMode[]; |
| 93 | extern const char kNetworkPropertySSID[]; |
mukesh agrawal | 6489632 | 2011-12-01 01:13:10 +0000 | [diff] [blame] | 94 | extern const char kNetworkPropertyScanSSID[]; |
| 95 | // TODO(quiche): Make the naming scheme more consistent, by adding the |
| 96 | // object type to the property names below. (crosbug.com/23656) |
Thieu Le | f4cbda9 | 2011-11-10 23:41:24 +0000 | [diff] [blame] | 97 | extern const char kPropertyAuthAlg[]; |
mukesh agrawal | 6e27777 | 2011-09-29 15:04:23 -0700 | [diff] [blame] | 98 | extern const char kPropertyBSSID[]; |
mukesh agrawal | 6e27777 | 2011-09-29 15:04:23 -0700 | [diff] [blame] | 99 | extern const char kPropertyMode[]; |
| 100 | extern const char kPropertyPreSharedKey[]; |
| 101 | extern const char kPropertyPrivacy[]; |
| 102 | extern const char kPropertyRSN[]; |
Paul Stewart | ced6a0b | 2011-11-08 15:32:04 -0800 | [diff] [blame] | 103 | extern const char kPropertyScanSSIDs[]; |
mukesh agrawal | 6e27777 | 2011-09-29 15:04:23 -0700 | [diff] [blame] | 104 | extern const char kPropertyScanType[]; |
| 105 | extern const char kPropertySecurityProtocol[]; |
| 106 | extern const char kPropertySignal[]; |
Thieu Le | f4cbda9 | 2011-11-10 23:41:24 +0000 | [diff] [blame] | 107 | extern const char kPropertyWEPKey[]; |
| 108 | extern const char kPropertyWEPTxKeyIndex[]; |
mukesh agrawal | 6e27777 | 2011-09-29 15:04:23 -0700 | [diff] [blame] | 109 | extern const char kPropertyWPA[]; |
| 110 | extern const char kScanTypeActive[]; |
Thieu Le | f4cbda9 | 2011-11-10 23:41:24 +0000 | [diff] [blame] | 111 | extern const char kSecurityAuthAlg[]; |
mukesh agrawal | 6e27777 | 2011-09-29 15:04:23 -0700 | [diff] [blame] | 112 | extern const char kSecurityMethodPropertyKeyManagement[]; |
| 113 | extern const char kSecurityModeRSN[]; |
| 114 | extern const char kSecurityModeWPA[]; |
| 115 | |
Paul Stewart | 2055098 | 2012-04-16 12:16:11 -0700 | [diff] [blame] | 116 | extern const uint32_t kDefaultEngine; |
Paul Stewart | a5e7d5f | 2013-01-09 18:06:15 -0800 | [diff] [blame] | 117 | extern const uint32_t kNetworkIeee80211wDisabled; |
| 118 | extern const uint32_t kNetworkIeee80211wEnabled; |
| 119 | extern const uint32_t kNetworkIeee80211wRequired; |
mukesh agrawal | 6e27777 | 2011-09-29 15:04:23 -0700 | [diff] [blame] | 120 | extern const uint32_t kNetworkModeInfrastructureInt; |
| 121 | extern const uint32_t kNetworkModeAdHocInt; |
| 122 | extern const uint32_t kNetworkModeAccessPointInt; |
Paul Stewart | ced6a0b | 2011-11-08 15:32:04 -0800 | [diff] [blame] | 123 | extern const uint32_t kScanMaxSSIDsPerScan; |
mukesh agrawal | 6e27777 | 2011-09-29 15:04:23 -0700 | [diff] [blame] | 124 | }; |
| 125 | |
| 126 | } // namespace shill |
| 127 | |
| 128 | #endif // SHILL_WPA_SUPPLICANT_H |