diff options
author | Roshan Pius <rpius@google.com> | 2016-12-13 13:39:27 -0800 |
---|---|---|
committer | Roshan Pius <rpius@google.com> | 2016-12-13 16:41:57 -0800 |
commit | 118598a8dbef03ca802dd1632a1b7577fbc5babd (patch) | |
tree | d2233583d661283ec485aaf48be13f14180e977c /wifi | |
parent | d11fc7eace0025877533861aa3f8528b1e2375fd (diff) | |
download | platform_hardware_interfaces-118598a8dbef03ca802dd1632a1b7577fbc5babd.tar.gz platform_hardware_interfaces-118598a8dbef03ca802dd1632a1b7577fbc5babd.tar.bz2 platform_hardware_interfaces-118598a8dbef03ca802dd1632a1b7577fbc5babd.zip |
supplicant(interface): Add network param getters
These getters are needed for migration of network configs from
wpa_supplicant to the new config store.
Bug: 31497348
Test: Compiles
Change-Id: I970ea3ca070a3bb7344bc51664159ce0e95a18db
Diffstat (limited to 'wifi')
-rw-r--r-- | wifi/supplicant/1.0/ISupplicantStaNetwork.hal | 180 |
1 files changed, 179 insertions, 1 deletions
diff --git a/wifi/supplicant/1.0/ISupplicantStaNetwork.hal b/wifi/supplicant/1.0/ISupplicantStaNetwork.hal index e414a07024..479ba948ae 100644 --- a/wifi/supplicant/1.0/ISupplicantStaNetwork.hal +++ b/wifi/supplicant/1.0/ISupplicantStaNetwork.hal @@ -453,7 +453,7 @@ interface ISupplicantStaNetwork extends ISupplicantNetwork { setEapSubjectMatch(string match) generates (SupplicantStatus status); /** - * Set EAP Altsubject match for this network. + * Set EAP Alt subject match for this network. * * @param match value to set. * @return status Status of the operation. @@ -649,6 +649,184 @@ interface ISupplicantStaNetwork extends ISupplicantNetwork { getRequirePmf() generates (SupplicantStatus status, bool enabled); /** + * Get EAP Method set for this network. + * + * @return status Status of the operation. + * Possible status codes: + * |SupplicantStatusCode.SUCCESS|, + * |SupplicantStatusCode.FAILURE_UNKNOWN|, + * |SupplicantStatusCode.FAILURE_NETWORK_INVALID| + * @return method value set. + * Must be one of |EapMethod| values. + */ + getEapMethod() + generates (SupplicantStatus status, EapMethod method); + + /** + * Get EAP Phase2 Method set for this network. + * + * @return status Status of the operation. + * Possible status codes: + * |SupplicantStatusCode.SUCCESS|, + * |SupplicantStatusCode.FAILURE_UNKNOWN|, + * |SupplicantStatusCode.FAILURE_NETWORK_INVALID| + * @return method value set. + * Must be one of |EapPhase2Method| values. + */ + getEapPhase2Method() + generates (SupplicantStatus status, EapPhase2Method method); + + /** + * Get EAP Identity set for this network. + * + * @return status Status of the operation. + * Possible status codes: + * |SupplicantStatusCode.SUCCESS|, + * |SupplicantStatusCode.FAILURE_UNKNOWN|, + * |SupplicantStatusCode.FAILURE_NETWORK_INVALID| + * @return identity value set. + */ + getEapIdentity() + generates (SupplicantStatus status, vec<uint8_t> identity); + + /** + * Get EAP Anonymous Identity set for this network. + * + * @return status Status of the operation. + * Possible status codes: + * |SupplicantStatusCode.SUCCESS|, + * |SupplicantStatusCode.FAILURE_UNKNOWN|, + * |SupplicantStatusCode.FAILURE_NETWORK_INVALID| + * @return identity value set. + */ + getEapAnonymousIdentity() + generates (SupplicantStatus status, vec<uint8_t> identity); + + /** + * Get EAP Password set for this network. + * + * @return status Status of the operation. + * Possible status codes: + * |SupplicantStatusCode.SUCCESS|, + * |SupplicantStatusCode.FAILURE_UNKNOWN|, + * |SupplicantStatusCode.FAILURE_NETWORK_INVALID| + * @return password value set. + */ + getEapPassword() + generates (SupplicantStatus status, vec<uint8_t> password); + + /** + * Get EAP CA certificate file path set for this network. + * + * @return status Status of the operation. + * Possible status codes: + * |SupplicantStatusCode.SUCCESS|, + * |SupplicantStatusCode.FAILURE_UNKNOWN|, + * |SupplicantStatusCode.FAILURE_NETWORK_INVALID| + * @return path value set. + */ + getEapCACert() generates (SupplicantStatus status, string path); + + /** + * Get EAP CA certificate directory path set for this network. + * + * @return status Status of the operation. + * Possible status codes: + * |SupplicantStatusCode.SUCCESS|, + * |SupplicantStatusCode.FAILURE_UNKNOWN|, + * |SupplicantStatusCode.FAILURE_NETWORK_INVALID| + * @return path value set. + */ + getEapCAPath() generates (SupplicantStatus status, string path); + + /** + * Get EAP Client certificate file path set for this network. + * + * @return status Status of the operation. + * Possible status codes: + * |SupplicantStatusCode.SUCCESS|, + * |SupplicantStatusCode.FAILURE_UNKNOWN|, + * |SupplicantStatusCode.FAILURE_NETWORK_INVALID| + * @return path value set. + */ + getEapClientCert() generates (SupplicantStatus status, string path); + + /** + * Get EAP private key file path set for this network. + * + * @return status Status of the operation. + * Possible status codes: + * |SupplicantStatusCode.SUCCESS|, + * |SupplicantStatusCode.FAILURE_UNKNOWN|, + * |SupplicantStatusCode.FAILURE_NETWORK_INVALID| + * @return path value set. + */ + getEapPrivateKey() generates (SupplicantStatus status, string path); + + /** + * Get EAP subject match set for this network. + * + * @return status Status of the operation. + * Possible status codes: + * |SupplicantStatusCode.SUCCESS|, + * |SupplicantStatusCode.FAILURE_UNKNOWN|, + * |SupplicantStatusCode.FAILURE_NETWORK_INVALID| + * @return match value set. + */ + getEapSubjectMatch() generates (SupplicantStatus status, string match); + + /** + * Get EAP Alt subject match set for this network. + * + * @return status Status of the operation. + * Possible status codes: + * |SupplicantStatusCode.SUCCESS|, + * |SupplicantStatusCode.FAILURE_UNKNOWN|, + * |SupplicantStatusCode.FAILURE_NETWORK_INVALID| + * @return match value set. + */ + getEapAltSubjectMatch() + generates (SupplicantStatus status, string match); + + /** + * Get if EAP Open SSL Engine is enabled for this network. + * + * @return status Status of the operation. + * Possible status codes: + * |SupplicantStatusCode.SUCCESS|, + * |SupplicantStatusCode.FAILURE_UNKNOWN|, + * |SupplicantStatusCode.FAILURE_NETWORK_INVALID| + * @return enabled true if set, false otherwise. + */ + getEapEngine() generates (SupplicantStatus status, bool enabled); + + /** + * Get EAP Open SSL Engine ID set for this network. + * + * @return status Status of the operation. + * Possible status codes: + * |SupplicantStatusCode.SUCCESS|, + * |SupplicantStatusCode.FAILURE_UNKNOWN|, + * |SupplicantStatusCode.FAILURE_NETWORK_INVALID| + * @return id value set. + */ + getEapEngineID() generates (SupplicantStatus status, string id); + + /** + * Get EAP Domain suffix match set for this network. + * + * @return status Status of the operation. + * Possible status codes: + * |SupplicantStatusCode.SUCCESS|, + * |SupplicantStatusCode.FAILURE_ARGS_INVALID|, + * |SupplicantStatusCode.FAILURE_UNKNOWN|, + * |SupplicantStatusCode.FAILURE_NETWORK_INVALID| + * @return match value set. + */ + getEapDomainSuffixMatch() + generates (SupplicantStatus status, string match); + + /** * Enable the network for connection purposes. * * This must trigger a connection to the network if: |