1. 23 Feb, 2011 1 commit
  2. 31 May, 2010 1 commit
  3. 18 May, 2010 1 commit
  4. 26 Feb, 2010 1 commit
  5. 15 Sep, 2009 1 commit
    • Dan Williams's avatar
      libnm-util: add nm_utils_rsa_key_encrypt() and fix crypto padding mixups · 8c35e96b
      Dan Williams authored
      To be backwards compatible clients need to handle both paths to private
      keys and the decrypted private key data, which is what used to get passed
      in the private-key and phase2-private-key attributes of the 802.1x setting.
      When moving a connection around between system-settings and user-settings,
      if the private key is decrypted data, the settings service needs to store
      that decrypted data somewhere so that the key can be sent to NM during
      the connection process.
      But we don't want to store the decrypted private key data, so we have to
      re-encrypt it (possibly generating a private key password if one wasn't
      sent with the decrypted data) and save it to disk, then send NM a path
      to that private key during connection.
      To help clients do this, and so that they don't have to carry around
      multiple crypto implementations depending on whether they want to use
      NSS or gnutls/gcrypt, add a helper to libnm-util.
      Furthermore, I misunderstood a bunch of stuff with crypto padding when
      writing the encrypt/decrypt functions long ago, so fix that up.  Don't
      return padding as part of the decrypted data, and make sure to verify
      the padding's expected lengths and values when decrypting.  Many thanks
      to Nalin Dahyabhai for pointing me in the right direction.
  6. 30 Jul, 2009 1 commit
  7. 24 Nov, 2008 1 commit
  8. 23 Nov, 2008 1 commit
  9. 20 Nov, 2008 2 commits
  10. 30 Oct, 2008 1 commit
    • Dan Williams's avatar
      2008-10-30 Dan Williams <dcbw@redhat.com> · 567396ad
      Dan Williams authored
      	* libnm-util/libnm-util.ver
      		- Make properties private and add accessor functions
      		- Hide IPv6 stuff from public API, it's incomplete and completely unused
      	* libnm-util/nm-connection.c
      		- Ignore IPv6 stuff for now
      git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4240 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
  11. 08 Sep, 2008 1 commit
    • Dan Williams's avatar
      2008-09-08 Dan Williams <dcbw@redhat.com> · 796829ce
      Dan Williams authored
      	Patch from Alexander Sack <asac@ubuntu.com>
      	* libnm-util/crypto_gnutls.c
      		- (crypto_init, crypto_deinit): just use a boolean instead of a refcount
      	* libnm-util/nm-utils.c
      		- (nm_utils_init): initialize libnm-util
      		- (nm_utils_deinit): de-initialize libnm-util and clean up resources
      	* libnm-util/nm-setting-8021x.c
      		- (nm_setting_802_1x_class_init): init libnm-util when needed
      git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4047 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
  12. 27 Aug, 2008 1 commit
    • Dan Williams's avatar
      2008-08-26 Dan Williams <dcbw@redhat.com> · 81f8f399
      Dan Williams authored
      	Add connection UUIDs, since connection names can be changed, and since
      	old-style connection IDs could change over the life of the connection.  The
      	UUID should be assigned at connection creation time, be stable for a given
      	connection, and should be unique among all connections for a given settings
      	* configure.in
      		- Require libuuid
      	* introspection/nm-exported-connection.xml
      		- Remove "GetID" method
      	* libnm-glib/nm-dbus-connection.c
      		- Remove id-related stuff
      	* libnm-util/nm-utils.c
      		- (nm_utils_uuid_generate, nm_utils_uuid_generate_from_string): Add
      			utility functions to generate UUIDs
      	* libnm-util/nm-setting-connection.c
      		- Add 'uuid' member to the connection setting
      		- (verify): require valid 'uuid' for a valid connection
      	* system-settings/plugins/ifcfg-fedora/nm-ifcfg-connection.c
      		- Remove id-related stuff
      		- Give connections UUIDs where needed
      git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4013 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
  13. 18 Aug, 2008 1 commit
    • Dan Williams's avatar
      2008-08-18 Dan Williams <dcbw@redhat.com> · 0b4d5573
      Dan Williams authored
      	* libnm-util/nm-utils.c
      		- (nm_utils_garray_to_string): remove; NM was the only user and doesn't
      			export anything that needs to be converted with this function
      	* src/dhcp-manager/nm-dhcp-manager.c
      		- (garray_to_string): convert a byte array to a UTF-8 string with
      			minimal validation; the DHCP client sends it in ASCII anyway
      		- (get_option, copy_option): use garray_to_string()
      git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3985 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
  14. 06 Aug, 2008 1 commit
    • Dan Williams's avatar
      2008-08-06 Dan Williams <dcbw@redhat.com> · 2c31b549
      Dan Williams authored
      	* libnm-glib/nm-ip4-config.c
      		- Add 'routes' property
      	* libnm-util/nm-setting-vpn.c
      		- Remove 'routes' property
      	* libnm-util/nm-setting-ip4-config.c
      		- 'ignore-dhcp-dns' renamed to 'ignore-auto-dns'
      		- Add 'ignore-auto-routes' property
      		- 'routes' exposed over D-Bus is now an array of array of uint (4) to 
      			accomodate route metrics
      		- 'routes' exposed in C is now a list of NMSettingIP4Route structures
      	* libnm-util/nm-utils.c
      		- Add helpers for marshalling IP4 routes
      	* src/NetworkManagerUtils.c
      		- (nm_utils_merge_ip4_config): handle property renames and new route
      	* src/NetworkManagerSystem.c
      		- (nm_system_device_set_ip4_route, nm_system_device_set_from_ip4_config,
      		   nm_system_vpn_device_set_from_ip4_config): respect route metrics
      	* src/dhcp-manager/nm-dhcp-manager.c
      		- (nm_dhcp_manager_get_ip4_config): handle new route structure
      	* system-settings/plugins/ifcfg-fedora/reader.c
      		- Handle routes separately from addresses now that routes have a different
      	* introspection/nm-ip4-config.xml
      		- Rename internal routing functions
      		- 'static-routes' renamed to 'routes'
      git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3898 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
  15. 27 Jul, 2008 1 commit
  16. 17 Jul, 2008 1 commit
  17. 07 Jul, 2008 1 commit
  18. 26 Jun, 2008 2 commits
  19. 13 May, 2008 1 commit
  20. 06 May, 2008 1 commit
  21. 04 Mar, 2008 1 commit
  22. 18 Jan, 2008 1 commit
  23. 27 Dec, 2007 1 commit
  24. 07 Nov, 2007 1 commit
    • Tambet Ingo's avatar
      2007-11-07 Tambet Ingo <tambet@gmail.com> · 6b79d40a
      Tambet Ingo authored
              Rework NMSetting structures: Move each setting to it's own file.
              Convert to GObject. Remove home grown setting types and use
              Use GObject property introspection for hash conversion,
              properties, etc.
              * libnm-util/nm-setting-connection.[ch]
              * libnm-util/nm-setting-ip4-config.[ch]
              * libnm-util/nm-setting-ppp.[ch]
              * libnm-util/nm-setting-vpn.[ch]
              * libnm-util/nm-setting-vpn-properties.[ch]
              * libnm-util/nm-setting-wired.[ch]
              * libnm-util/nm-setting-wireless.[ch]
              * libnm-util/nm-setting-wireless-security.[ch]
              New files, each containing a setting.
              * libnm-util/nm-setting-template.[ch]: A template for creating
              * new
              settings. To use it, just replace 'template' with the new
              name, and you're half-way done.
              * libnm-util/nm-setting.c: Convert to GObject and use GObject
              introspection instead of internal types and tables.
              * libnm-util/nm-connection.c: Adapt the new NMSetting work.
              * libnm-util/nm-param-spec-specialized.[ch]: Implement. Handles
              GValue types defined by dbus-glib for composed types like
              structures and maps.
              * src/*: The API of NMSetting and NMConnection changed a bit:
              * Getting
              a setting from connection takes the setting type now. Also,
              the settings are in multiple files, include relevant settings.
      git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3068 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
  25. 23 Oct, 2007 1 commit
  26. 17 Oct, 2007 1 commit
  27. 09 Oct, 2007 2 commits
    • Tambet Ingo's avatar
      2007-10-09 Tambet Ingo <tambet@gmail.com> · 83bd445e
      Tambet Ingo authored
              * libnm-util/nm-utils.c (nm_utils_is_empty_ssid): Convert the
              * ssid type to
              "guint8 *" since it's usually used with GByteArray->data.
              (nm_utils_ssid_to_utf8): Add it back, the applet needs it.
      git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2961 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
    • Tambet Ingo's avatar
      2007-10-09 Tambet Ingo <tambet@gmail.com> · 24adbe3f
      Tambet Ingo authored
              * src/NetworkManagerUtils.c
              (nm_utils_same_ssid): Remove. These functions are copied and
      pasted in a 
              lot of places, so they belong to libnm-utils instead.
              Now with 100% less compiler warnings:
              * libnm-util/nm-utils.c (nm_dbus_escape_object_path): Remove,
              * unused.
              (nm_dbus_unescape_object_path): Ditto.
              (nm_utils_ssid_to_utf8): Ditto.
              (nm_utils_is_empty_ssid): Move here from
              (nm_utils_escape_ssid): Ditto.
              (nm_utils_same_ssid): Ditto.
              * src/nm-manager.c: Include 'netinet/ether.h' for ether_aton_r.
              (add_one_connection_element): Remove an unused variable.
              (impl_manager_get_active_connections): Ditto.
              * src/NetworkManagerPolicy.c (get_device_connection): Remove an
              * unused
              * src/nm-dbus-manager.c (nm_dbus_manager_start_service): Remove
              * a leftover
              from the previous commit.
              * src/nm-device-802-11-wireless.c (set_current_ap): Remove
              * unused variable.
              (real_act_stage1_prepare): Ditto.
              (activation_success_handler): Ditto.
              (get_property): Ditto.
              * src/nm-device-802-3-ethernet.c (real_get_best_connection):
              * Remove unused
              * src/ppp-manager/nm-pppd-plugin.c (nm_ip_up): Remove the check
              * for 'ifname',
              it's always set.
              * src/supplicant-manager/nm-supplicant-config.c 
              (nm_supplicant_config_add_setting_wireless): Cast the
      GByteArray's 'guint8 *'
              to expected "char *".
              (nm_supplicant_config_add_setting_wireless): Ditto.
              (nm_supplicant_config_remove_option): Remove, not used.
              * libnm-glib/libnm-glib-test.c (dump_access_point): Frequency is
              * a guint32,
              not double.
              (test_wireless_enabled): Ifdef out unused function.
              (device_deactivate): Ditto.
              (device_state_changed): Ditto.
              (nm_utils_is_empty_ssid): Remove, it's now in libnm-utils.
              (nm_utils_escape_ssid): Ditto.
              * test/nm-tool.c (nm_utils_escape_ssid): Remove, it's now in
              * libnm-utils.
              (nm_utils_is_empty_ssid): Ditto.
              * libnm-glib/nm-client.c
              * (nm_client_free_active_connection_element): Remove
              unused variable.
              * libnm-util/nm-setting.c (setting_wireless_destroy): Remove
              * unused variable.
              (setting_vpn_properties_update_secrets): Ditto.
              (int_to_gvalue): Ifdef out for now, not used.
              (byte_to_gvalue): Ditto.
              * libnm-util/dbus-dict-helpers.c
              * (_nmu_dbus_add_dict_entry_string_array): 
              Unused, remove.
      git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2960 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
  28. 24 Sep, 2007 1 commit
  29. 12 Sep, 2007 1 commit
    • Tambet Ingo's avatar
      2007-09-12 Tambet Ingo <tambet@gmail.com> · 326d1e86
      Tambet Ingo authored
              * src/vpn-manager/nm-vpn-connection.[ch]: 
              * src/vpn-manager/nm-vpn-manager.[ch]:
              * src/vpn-manager/nm-vpn-service.[ch]: Rewrite the vpn handling
              * code. Using 
              dbus-glib, GObjects, signals etc.
              * libnm-glib/nm-vpn-manager.[ch]: 
              * libnm-glib/nm-vpn-connection.[ch]: Now that the NM
              * implementation changed
              so much, rewrite these too.
              * libnm-glib/Makefile.am: Add new files to build, build new
              * binding files for
              the new introspection files.
              * libnm-glib/nm-client.[ch]: Remove all VPN related stuff from
              * here.
              * libnm-glib/nm-dbus-utils.[ch]: Renamed from nm-utils.[ch] that
              * was shadowing
              the header with the same name from libnm-utils.
              * libnm-glib/nm-vpn-plugin.[ch]: Implement.
              * libnm-util/Makefile.am: Add nm-utils.[ch] to build.
              * introspection/nm-vpn-plugin.xml: Implement.
              * introspection/nm-vpn-connection.xml: Implement.
              * introspection/nm-vpn-manager.xml: Implement.
              * src/NetworkManagerSystem.c
              * (nm_system_vpn_device_set_from_ip4_config): Remove
              the named manager argument, it can just as easily get it as the
              (nm_system_vpn_device_unset_from_ip4_config): Ditto.
              * src/vpn-manager/nm-dbus-vpn.[ch]: Remove.
              * src/nm-dbus-manager.h: Fix up the name_owner signal signature.
              * src/dhcp-manager/nm-dhcp-manager.c (garray_to_string): Remove,
              * use one from
              * libnm-util/nm-connection.c: Ditto.
              * src/NetworkManagerMain.h: Remove, it's finally empty.
              * configure.in: Remove utils/ from build.
              * include/NetworkManagerVPN.h: Add some more defines to reduce
              * the amount
              of hard-coded strings.
              * utils/: Move it over to libnm-util.
              * test/Makefile.am: Link against libnm-util now that util/ is
              * gone.
              * dispatcher-daemon/Makefile.am: Ditto.
              * src/Makefile.am: Ditto.
      git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2798 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
  30. 28 Aug, 2007 1 commit
    • Dan Williams's avatar
      2007-08-28 Dan Williams <dcbw@redhat.com> · 7a8f33aa
      Dan Williams authored
      	Remove NMAPSecurity objects, they are replaced with flags on the APs for
      	each AP's capabilities, and by NMConnection/NMSettings objects for user
      	defined connections.
      	* include/NetworkManager.h
      		- Redefine 802.11 security properties.  There are now device capabilities
      			and AP flags and AP security flags.  It was way to unclear before.
      	* src/Makefile.am
      		- Removed, to be replaced with NMConnection/NMSettings objects
      	* src/nm-dbus-nmi.c
      		- Removed, to be replaced by code that talks to the new info daemon
      			interface and gets NMConnection/NMSettings objects
      	* src/backends/NetworkManagerSuSE.c
      		- Remove usage of NMAPSecurity; should be replaced by a system-level
      			info-daemon that does the same thing but talks the new info-daemon
      			D-Bus interface
      	* src/NetworkManagerAP.h
      		- Remove usage of NMAPSecurity objects and adjust to new flags for
      	* libnm-glib/nm-access-point.c
      		- Adjust to new flags for AP security
      	* utils/nm-utils.c
      		- Remove D-Bus pending call stuff from nm-utils and put it in the VPN
      			stuff which is the only place it's used
      	* src/nm-device-interface.c
      		- Add a new 'specific_object' argument that hints to NM what actual
      			AP or other device-specific thing the connection should apply to.
      			NMConnection objects can apply to more than one actual device/AP.
      	* libnm-util/nm-connection.c
      	* libnm-util/nm-connection.h
      		- Add 'have_secrets" call stubs
      	* libnm-util/cipher.h
      		- Move NM_AUTH_TYPE_* defines here for now
      	* src/nm-device-802-11-wireless.c
      		- Remove usage of NMAPSecurity, to be replaced with NMConnection/
      			NMSettings objects
      	* src/NetworkManagerDbus.c
      	* src/NetworkManagerPolicy.c
      		- Remove usage of update_allowed_networks, should be pushing data in
      			a different manner
      git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@2738 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
  31. 27 Jun, 2007 1 commit
  32. 02 Oct, 2006 1 commit
  33. 07 Aug, 2006 1 commit
  34. 24 Jan, 2006 1 commit
    • Dan Williams's avatar
      2006-01-23 Dan Williams <dcbw@redhat.com> · 0498d9b4
      Dan Williams authored
      	* src/NetworkManagerAP.[ch]
      		- (nm_ap_new_from_ap): copy original essid too
      		- (nm_ap_unref): free original essid
      		- (nm_ap_get_orig_essid): new function
      		- (nm_ap_set_essid): Convert essid to UTF-8 for display and dbus,
      			but keep original essid around too
      	* src/nm-device-802-11-wireless.c
      		- (supplicant_send_network_config): send wpa_supplicant the
      			_original_ essid, and not as a string, but in hex.  Should
      			allow us to connect to more APs that use wierd character
      			encodings for their essids
      	* utils/nm-utils.[ch]
      		- (nm_utils_essid_to_utf8): make a best-effort to convert the essid
      			to UTF-8.  If it's not already valid UTF-8, we check LANG and
      			use the current locale as a hint for what encoding the essid
      			might be in.  Obviously not 100% accurate, but the idea here is
      			that if a user's locale is ex. ja_JP, they are more likely than
      			not to be in Japan, where access points will likely be in some
      			Japanese encoding.
      git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@1385 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
  35. 16 Jan, 2006 1 commit
  36. 26 Mar, 2005 1 commit
    • Dan Williams's avatar
      2005-03-25 Dan Williams <dcbw@redhat.com> · 4acd2f31
      Dan Williams authored
      	* panel-applet/NMWirelessApplet.c
      		- (nmwa_about_cb): Add some more contributors
      		- (nmwa_update_state): show the applet when there's no connection
      		- Enable the "Stop/Resume all wireless devices" option in the
      			context menu
      		- New "no connection" icon
      	* src/NetworkManager.c
      		- (nm_poll_and_update_wireless_link_state): don't do anything if
      			wireless is disabled or we're asleep
      	* src/NetworkManagerDHCP.c
      		- Remove trailing "\n" on debug messages
      	* src/NetworkManagerDbus.c
      		- (nm_dbus_network_status_from_data): new state "asleep"
      	* src/NetworkManagerDevice.c
      		- Merge most of Peter Jones' "completion" patch that greatly reduces
      			latency and wait times for most operations
      		- (nm_device_wireless_scan): Don't scan when asleep
      	* src/NetworkManagerPolicy.c
      		- (nm_policy_get_best_device): return no device when asleep
      		- (nm_policy_allowed_ap_list_update): From Bill Moss: merge properties
      			for all wireless devices on update, not just active device
      	* src/NetworkManagerUtils.c
      		- Merge Peter Jones' "completion" patch
      	* src/nm-dbus-nm.c
      		- (nm_dbus_nm_set_wireless_enabled): bring down wireless devices when
      			we're told to disable them
      		- (nm_dbus_nm_sleep, nm_dbus_nm_wake): new functions for sleep/wake
      	* utils/nm-utils.h
      		- New variants of the warn/info/error/debug print functions that can take
      			variables rather than static strings
      git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@510 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
  37. 15 Mar, 2005 1 commit
    • Ray Strode's avatar
      2005-03-14 Ray Strode <rstrode@redhat.com> · 278e500f
      Ray Strode authored
      	Fourth (probably working) cut at porting to
      	dbus 0.30 api and new hal. This cut adds
      	some new logging macros to make debugging
      	* dispatcher-daemon/NetworkManagerDispatcher.c:
      	* info-daemon/NetworkmanagerInfo.c:
      	* info-daemon/NetworkManagerInfoPassphraseDialog.c:
      	* info-daemon/NetworkManagerInfoVPN.c:
      	* src/NetworkManager.c:
      	* src/NetworkManagerAP.c:
      	* src/NetworkManagerAPList.c:
      	* src/NetworkManagerDHCP.c:
      	* src/NetworkManagerDbus.c:
      	* src/NetworkManagerDevice.c:
      	* src/NetworkManagerPolicy.c:
      	* src/NetworkManagerSystem.c:
      	* src/NetworkManagerUtils.c:
      	* src/NetworkManagerWireless.c:
      	* src/autoip.c:
      	* src/nm-dbus-nm.c:
      	* src/backends/NetworkManagerDebian.c:
      	* src/backends/NetworkManagerGentoo.c:
      	* src/backends/NetworkManagerRedHat.c:
      	* src/backends/NetworkManagerSlackware.c:
      	use new logging macros.
      	* dispatcher-daemon/NetworkManagerDispatcher.c:
      	(nmd_dbus_filter): s/dbus_free/g_free/
      	* info-daemon/Makefile.am: link in utils library.
      	* info-daemon/NetworkmanagerInfo.c: use new logging
      	(nmi_dbus_get_network): don't assume enumerations
      	are 32-bit.
      	(nmi_dbus_nmi_message_handler): don't free what
      	doesn't belong to us.
      	* libnm_glib/libnm_glib.c:
      	(libnm_glib_init): don't free what doesn't
      	belong to us.
      	(libnm_glib_dbus): strdup result, so it doesn't get
      	lost when message is unref'd.
      	* panel-applet/NMWirelessAppletDbus.c:
      	(nmwa_dbus_update_devices): s/dbus_free/g_free/
      	* src/NetworkManager.c:
      	(nm_monitor_wired_link_state): request initial status
      	dump of all cards when we start up, instead of relying
      	on /sys/.../carrier.
      	(nm_info_handler), (nm_set_up_log_handlers):
      	log handlers to specify what syslog priorites
      	the logging macros default to.
      	* src/NetworkManagerAPList.c:
      	* src/NetworkManagerDbus.c:
      	validate d-bus message argument types.
      	Advance message iterator after reading argument,
      	prepend instead of append to GSList.
      	* src/NetworkManagerDevice.c:
      	remove redundant /sys in /sys path. remove wrong
      	contents == NULL means has carrier assumption.
      	* src/nm-netlink-monitor.c
      	(nm_netlink_monitor_request_status): implement
      	function to ask kernel to dump interface link
      	status over netlink socket.
      	* test/*.c: s/dbus_free/g_free/
      	* utils/nm-utils.h:
      	(nm_print_backtrace): new macro to print backtrace.
      	(nm_get_timestamp): new macro to get sub-second precise
      	unix timestamp.
      	(nm_info), (nm_debug), (nm_warning), (nm_error):
      	new logging functions. nm_info just prints,
      	nm_debug includes timestamp and function,
      	nm_warning includes function, nm_error includes
      	backtrace and sigtrap.
      git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@497 4912f4e0-d625-0410-9fb7-b9a5a253dbdc