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

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

Issue 1676002: WifiConfigView - support networks with 802.1x authentication by... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 10 years, 8 months 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/network_library.h ('k') | chrome/browser/chromeos/login/network_screen.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/cros/network_library.cc
===================================================================
--- chrome/browser/chromeos/cros/network_library.cc (revision 45039)
+++ chrome/browser/chromeos/cros/network_library.cc (working copy)
@@ -87,23 +87,32 @@
}
void NetworkLibraryImpl::ConnectToWifiNetwork(WifiNetwork network,
- const string16& password) {
+ const string16& password,
+ const string16& identity,
+ const string16& certpath) {
if (CrosLibrary::Get()->EnsureLoaded()) {
- ConnectToNetwork(network.service_path.c_str(),
- password.empty() ? NULL : UTF16ToUTF8(password).c_str());
+ ConnectToNetworkWithCertInfo(network.service_path.c_str(),
+ password.empty() ? NULL : UTF16ToUTF8(password).c_str(),
+ identity.empty() ? NULL : UTF16ToUTF8(identity).c_str(),
+ certpath.empty() ? NULL : UTF16ToUTF8(certpath).c_str());
}
}
void NetworkLibraryImpl::ConnectToWifiNetwork(const string16& ssid,
- const string16& password) {
+ const string16& password,
+ const string16& identity,
+ const string16& certpath) {
if (CrosLibrary::Get()->EnsureLoaded()) {
// First create a service from hidden network.
ServiceInfo* service = GetWifiService(UTF16ToUTF8(ssid).c_str(),
SECURITY_UNKNOWN);
// Now connect to that service.
if (service) {
- ConnectToNetwork(service->service_path,
- password.empty() ? NULL : UTF16ToUTF8(password).c_str());
+ ConnectToNetworkWithCertInfo(service->service_path,
+ password.empty() ? NULL : UTF16ToUTF8(password).c_str(),
+ identity.empty() ? NULL : UTF16ToUTF8(identity).c_str(),
+ certpath.empty() ? NULL : UTF16ToUTF8(certpath).c_str());
+
// Clean up ServiceInfo object.
FreeServiceInfo(service);
} else {
« no previous file with comments | « chrome/browser/chromeos/cros/network_library.h ('k') | chrome/browser/chromeos/login/network_screen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698