Mailinglist Archive: yast-commit (819 mails)

< Previous Next >
[yast-commit] r54907 - in /trunk/network: VERSION package/yast2-network.changes src/lan/wireless.ycp src/modules/LanItems.ycp
  • From: mzugec@xxxxxxxxxxxxxxxx
  • Date: Thu, 22 Jan 2009 13:41:18 -0000
  • Message-id: <E1LPzo6-0001li-Jb@xxxxxxxxxxxxxxxx>
Author: mzugec
Date: Thu Jan 22 14:41:18 2009
New Revision: 54907

URL: http://svn.opensuse.org/viewcvs/yast?rev=54907&view=rev
Log:
improved wlan settings validation (bnc#346693)

Modified:
trunk/network/VERSION
trunk/network/package/yast2-network.changes
trunk/network/src/lan/wireless.ycp
trunk/network/src/modules/LanItems.ycp

Modified: trunk/network/VERSION
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/network/VERSION?rev=54907&r1=54906&r2=54907&view=diff
==============================================================================
--- trunk/network/VERSION (original)
+++ trunk/network/VERSION Thu Jan 22 14:41:18 2009
@@ -1 +1 @@
-2.18.1
+2.18.2

Modified: trunk/network/package/yast2-network.changes
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/network/package/yast2-network.changes?rev=54907&r1=54906&r2=54907&view=diff
==============================================================================
--- trunk/network/package/yast2-network.changes (original)
+++ trunk/network/package/yast2-network.changes Thu Jan 22 14:41:18 2009
@@ -1,4 +1,10 @@
-------------------------------------------------------------------
+Thu Jan 22 14:39:20 CET 2009 - mzugec@xxxxxxx
+
+- improved wlan settings validation (bnc#346693)
+- 2.18.2
+
+-------------------------------------------------------------------
Wed Jan 21 09:15:03 CET 2009 - mzugec@xxxxxxx

- fix mailformed NAME in ifcfg file when setup network via Linuxrc

Modified: trunk/network/src/lan/wireless.ycp
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/network/src/lan/wireless.ycp?rev=54907&r1=54906&r2=54907&view=diff
==============================================================================
--- trunk/network/src/lan/wireless.ycp (original)
+++ trunk/network/src/lan/wireless.ycp Thu Jan 22 14:41:18 2009
@@ -933,6 +933,7 @@
return nil;
}

+
/**
* Called to validate that the file entered exists
* @param key widget id
@@ -959,6 +960,15 @@
}
}

+define boolean ValidateCaCertExists (string key, map event) {
+ boolean ret=true;
+ if (size((string) UI::QueryWidget (`id (key), `Value))==0 ||
!ValidateFileExists(key, event)){
+ if (!Popup::YesNo(_("Not using a Certificate Authority (CA) certificate can
result in connections
+to insecure, rogue wireless networks. Continue without CA ?"))) ret=false;
+ }
+ return ret;
+}
+
/**
* Called to validate that the whole dialog makes sense together
* @param key widget id
@@ -1077,7 +1087,7 @@
to validate the server's authenticity.</p>
"),
"validate_type": `function,
- "validate_function": ValidateFileExists,
+ "validate_function": ValidateCaCertExists,
],
"WPA_EAP_CLIENT_CERT_BROWSE": $[
"widget": `push_button,
@@ -1178,6 +1188,7 @@
define any WirelessWpaEapDialog () {
term contents = `VBox (
"WPA_EAP_MODE",
+ "WPA_EAP_DUMMY",
`HBox (
"WPA_EAP_IDENTITY",
`HSpacing (1),
@@ -1192,8 +1203,7 @@
),
AddButton ("WPA_EAP_CA_CERT", "WPA_EAP_CA_CERT_BROWSE"),
`VSpacing (1),
- `Right ("DETAILS_B"),
- "WPA_EAP_DUMMY"
+ `Right ("DETAILS_B")
);

map functions = $[

Modified: trunk/network/src/modules/LanItems.ycp
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/network/src/modules/LanItems.ycp?rev=54907&r1=54906&r2=54907&view=diff
==============================================================================
--- trunk/network/src/modules/LanItems.ycp (original)
+++ trunk/network/src/modules/LanItems.ycp Thu Jan 22 14:41:18 2009
@@ -341,7 +341,20 @@

global void ReadHw(){
Items=$[];
- Hardware = ReadHardware("netcard");
+// Hardware = ReadHardware("netcard");
+ Hardware = [$["active":true, "bus":"pci",
+ "busid":"0000:02:00.0", "dev_name":"wlan0", "drivers":[$["active":true,
"modprobe":true, "modules":[["ath5k"
+, ""]]]], "link":true, "mac":"00:22:43:37:55:c3",
"modalias":"pci:v0000168Cd0000001Csv00001A3Bsd00001026bc02s
+c00i00", "module":"ath5k", "name":"AR242x 802.11abg Wireless PCI Express
Adapter", "num":0, "options":"", "re
+quires":[], "sysfs_id":"/devices/pci0000:00/0000:00:1c.1/0000:02:00.0",
"type":"wlan", "udi":"/org/freedeskto
+p/Hal/devices/pci_168c_1c", "wl_auth_modes":["open", "sharedkey", "wpa-psk",
"wpa-eap"], "wl_bitrates":nil, "
+wl_channels":["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11"],
"wl_enc_modes":["WEP40", "WEP104", "T
+KIP", "CCMP"]], $["active":true, "bus":"pci", "busid":"0000:01:00.0",
"dev_name":"eth0", "drivers":[$["active
+":true, "modprobe":true, "modules":[["atl1e", ""]]]], "link":false,
"mac":"00:23:54:3f:7c:c3", "modalias":"pc
+i:v00001969d00001026sv00001043sd00008324bc02sc00i00", "module":"atl1e",
"name":"L1 Gigabit Ethernet Adapter",
+ "num":1, "options":"", "requires":[],
"sysfs_id":"/devices/pci0000:00/0000:00:1c.3/0000:01:00.0", "type":"et
+h", "udi":"/org/freedesktop/Hal/devices/pci_1969_1026", "wl_auth_modes":nil,
"wl_bitrates":nil, "wl_channels"
+:nil, "wl_enc_modes":nil]];
ReadUdevDriverRules();

map<string, any> udev_drivers_rules = (map<string,
any>)SCR::Read(.udev_persistent.drivers);

--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages