* include/NetworkManager.h
- Add NM_802_11_CAP_PROTO_NONE since we need to recognize
between networks that don't have any encryption at all
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1241 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
* test/test-common.c
test/test-common.h
test/Makefile.am
- Move to a test-common subdirectory
* test/libnm-util/test-ciphers.c
- Move test data to test-inputs.h
- Test WPA ciphers too
* test/libnm-util/test-dbus-helpers.c
- Test serialization/deserialization of ciphers
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1240 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
* gnome/applet/applet-dbus-devices.c
- Replace 'enc' parameter with 'capabilities' for wireless networks
in dbus calls to NM
- Set capabilities on WirelessNetwork objects
- Receive and save type-specific device capabilities too
* gnome/applet/applet-dbus-info.c
gnome/applet/applet-dbus.c
- Passphrase dialog no longer a singleton; new instance gets created
on each request. Updates to deal with that.
* gnome/applet/applet.c
- (nmwa_has_encrypted_networks_helper): use AP capabilities rather
than single 'encrypted' flag
- (nmwa_menu_add_vpn_menu): if NM isn't connected, disable any VPN
menu items
- Passphrase dialog updates per above
* gnome/applet/menu-items.c
- (network_menu_item_update): use AP capabilities to determine
encryption
* gnome/applet/nm-device.[ch]
- Add accessors for type-specific device capabilities
* gnome/applet/other-network-dialog.c
- Rework to respect device capabilities. i.e., if the device doesn't
support WPA, remove that option from the security dropdown
* gnome/applet/passphrase-dialog.c
- Massive rework so that a new instance is created each time
it's used, to support wireless network capabilities
* gnome/applet/wireless-network.[ch]
- Add accessors and members for wireless network capabilities
* gnome/applet/wireless-security-manager.[ch]
- (wsm_set_capabilities): called after creation to set which
security options get shown to the user
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1238 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
* libnm-util/cipher-wpa-psk-passphrase.c
- (cipher_wpa_psk_passphrase_hash_func): return key as hex string
like other ciphers
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1236 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
* gnome/applet/applet-dbus-info.c
- (nmi_dbus_get_key_for_network): if there's no entry in
GConf for a network, assume we want a new key
- (nmi_save_network_info): serialize wireless security info
into GConf so its saved
* src/nm-dbus-nm.c
- Fix warning as we may not be passed security info when
connecting to a wireless network
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1231 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
* gnome/applet/applet-compat.c
- Fix bugs in GConf entry conversion
* gnome/applet/applet-dbus-info.c
- (nmi_dbus_get_network_properties): handle case of the BSSID
list being zero-length
* libnm-util/cipher-*
libnm-util/dbus-helpers.c
- All ciphers must now return hashed keys as UTF-8 valid
hexadecimal strings, ie "8f3dae4023". They are pushed
through dbus as strings too.
- Consolidate various functions that do bin->hex and hex->bin
conversion into cipher.c
* src/nm-ap-security-wep.c
src/nm-ap-security-wpa-psk.c
- Handle NULL keys since we may not know keys right away
* src/nm-dbus-nmi.c
- (nm_dbus_get_network_data_cb): actually advance to the start
of the wireless security info before we try to deserialize it
* libnm-util/test-ciphers.c
- Update cipher tests for the change to UTF-8 hexadecimal strings
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1230 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
* gnome/applet/applet-compat.[ch]
- Convert old-format GConf and keyring entries
when the applet starts up.
* gnome/applet/applet.c
- (nmwa_get_instance): Call the conversion function
on startup before dbus is initialized
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1228 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
* gnome/applet/applet-dbus-info.c
- Remove nmi_dbus_create_error_message() in favor of
nmu_create_dbus_error_message()
- (nmi_dbus_get_network_properties): Error message cleanups
- (nmi_dbus_get_network_properties): BSSIDs are now in the 'bssids'
gconf key rather than 'addresses', since they really are BSSIDs
- (nmi_dbus_get_network_properties): Dispose of the security
object when we're done with it
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1226 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
* gnome/applet/nm-gconf-wso*
- Make the serialize functions return gboolean
rather than int
* gnome/applet/nm-gconf-wso.c
- (nm_gconf_wso_dispose, nm_gconf_wso_finalize): fix up
parent class handling so we don't segfault
* src/NetworkManagerAP.[ch]
- (nm_ap_get_capabilities): new function, return capabilities
now that something can use them
- (nm_ap_set_encrypted): assume that an access point supports
both WEP104 and WEP40 if its set encrypted. FIXME: can
we even tell whether it just supports WEP40?
* src/NetworkManagerDevice.c
- (ap_need_key): resurrect and update for the New World Order
- (nm_device_wireless_get_activation_ap): if we're not given
security info to use, create some based on access point
capabilities
* src/nm-ap-security-wep.c
- (nm_ap_security_wep_new_from_ap): create a new object
based on a certain access point's capabilities
* src/nm-ap-security.c
- (nm_ap_security_new_from_ap): delegate creation of a new
object based on access point capabilities to a subclass
- (nm_ap_security_copy_properties): don't segfault if we
don't have a key yet
* src/nm-dbus-nm.c
- (nm_dbus_nm_set_active_device): provide more informative
output when errors occur. Also construct security info
for a given access point if we weren't given any
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1219 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
* gnome/applet/*
- More applet cleanups
- Use the dbus-method-dispatcher
* libnm-util/dbus-method-dispatcher.[ch]
- Generalize the implementation from NM in
NetworkManagerUtils.c
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1210 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
* Move nm_gconf_get_*_helper() functions to separate files,
gconf-helpers.c & gconf-helpers.h
* New NMGConfWSO objects for managing the gconf side of things.
Eventually these should be merged with the
WirelessSecurityOption objects and a common base (that can
serialize/deserialize from dbus & gconf) should be
refactored out, but for now they are separate.
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1207 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
* src/backends/NetworkManagerSuSE.c: Do not invoke ypbind or autofs
binaries unless they exist (nm_spawn_process() emits a warning if
asked to spawn a non-existant process).
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1205 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
* nm_device_set_enc_key -> nm_device_set_wep_enc_key
* Fix up NM -> NMI get-user-key dbus calls in NM (applet
bits still to be done)
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1202 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
* Kill auth_method for access points, since that's now done
by NMAPSecurity objects
* Add a copy-constructor of sorts to NMAPSecurity
(how do you do this properly in glib???)
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1200 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
* Exorcise encryption key hashing on APs
* Use libnm-util's serialization/deserialization in both the
applet and NM
* Random other stuff
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1198 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
* gnome/applet/menu-items.c: A new icon, "network-wireless-encrypted"
is being added to the icon naming spec, so let's use that (Tango CVS
has the icon). Because it is new, however, we fall back to the
current "gnome-lockscreen" if the new icon is not around, thus
behavior is the same.
* gnome/applet/applet.c: Remove setup_stock(). We do not need the
factory junk.
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1196 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
* libnm-util/dbus-helpers.[ch]
- Make this the one-stop-shop for serializing/deserializing
AP & connection security settings over dbus. Both NM
and applets should use this to ensure consistent dbus
API going forwared.
git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1194 4912f4e0-d625-0410-9fb7-b9a5a253dbdc