1. 03 Apr, 2013 1 commit
  2. 13 Mar, 2013 1 commit
  3. 07 Mar, 2013 1 commit
  4. 29 Oct, 2012 1 commit
    • Dan Williams's avatar
      libnm-util: clean up setting registration · 38e3819b
      Dan Williams authored
      Make setting type registration less icky; instead of having the
      connection register all the settings, have the settings themselves
      register that information at library load time.  Putting this sort
      of thing in G_DEFINE_TYPE_WITH_CODE is apparently more standard
      than the home-rolled stuff we had before.  Also document the
      priority stuff so when adding new settings, people know what
      priority to use.
      
      (cleanups by jklimes)
      38e3819b
  5. 15 Feb, 2012 1 commit
    • Dan Winship's avatar
      Use glib-mkenums to generate enum types · 839eab55
      Dan Winship authored
      Rather than generating enum classes by hand (and complaining in each
      file that "this should really be standard"), use glib-mkenums.
      
      Unfortunately, we need a very new version of glib-mkenums in order to
      deal with NM's naming conventions and to fix a few other bugs, so just
      import that into the source tree temporarily.
      
      Also, to simplify the use of glib-mkenums, import Makefile.glib from
      https://bugzilla.gnome.org/654395.
      
      To avoid having to run glib-mkenums for every subdirectory of src/,
      add a new "generated" directory, and put the generated enums files
      there.
      
      Finally, use Makefile.glib for marshallers too, and generate separate
      ones for libnm-glib and NetworkManager.
      839eab55
  6. 01 Feb, 2012 1 commit
  7. 05 Jan, 2012 2 commits
  8. 16 Aug, 2011 1 commit
    • Dan Williams's avatar
      settings: preserve agent secrets the right way · 2b2404bb
      Dan Williams authored
      What we want to do here is keep separate caches of system and
      agent secrets.  For system secrets, we cache them because NM
      periodically clears secrets using nm_connection_clear_secrets() to
      ensure they don't stay around in memory, and that transient secrets
      get requested again when they are needed.  For agent secrets, we
      only want them during activation, but a connection read from disk
      will not include agent secrets becuase by definition they aren't
      stored in system settings along with the connection.  Thus we need
      to keep the agent/transient secrets somewhere for the duration of
      the activation to ensure they don't get deleted.
      
      This removes the copy-back hack in update_auth_cb() which copied
      agent/transient secrets back into the connection over top of the
      transient secrets that had been copied back in
      nm_settings_connection_replace_settings().  No reason to copy
      them twice if we keep an agent/transient secrets hash and do
      the right thing with it.
      2b2404bb
  9. 12 Aug, 2011 1 commit
  10. 19 Jul, 2011 2 commits
  11. 07 Jun, 2011 1 commit
    • Dan Williams's avatar
      libnm-util: add new compare flags for ignoring various types of secrets · 864db9f9
      Dan Williams authored
      It turns out we need a way to ignore transient (agent-owned or unsaved)
      secrets during connection comparison.  For example, if the user is
      connecting to a network where the password is not saved, other
      changes could trigger a writeout of that connection to disk when
      connecting, which would the connection back in due to inotify, and the
      re-read connection would then no longer be recognized as the same as
      the in-memory connection due to the transient secret which obviously
      wasn't read in from disk.
      
      Adding these compare flags allows the code to not bother writing the
      connection out to disk when the only difference between the on-disk
      and in-memory connections are secrets that shouldn't get written to
      disk anyway.
      864db9f9
  12. 27 May, 2011 1 commit
  13. 20 May, 2011 1 commit
  14. 18 May, 2011 1 commit
  15. 10 Mar, 2011 1 commit
  16. 13 Feb, 2011 2 commits
  17. 09 Feb, 2011 2 commits
    • Dan Williams's avatar
      libnm-util: assume VPN connections need secrets · b04d9e46
      Dan Williams authored
      Because most of the time they will.  They need special handling all
      around anyway because only the VPN plugin itself knows whether the
      connection needs secrets.
      b04d9e46
    • Dan Williams's avatar
      libnm-util: fix VPN update_one_secret() · d7a86ffd
      Dan Williams authored
      The old function took a string value, which wasn't really correct as
      the property type is a GHashTable of string:string.  For whatever
      reason this is how nm-applet passed VPN secrets back to NM in the return
      from the GetSecrets() D-Bus call.  This was probably easier or
      something but it was a special case that's magic and quite unclear.
      
      Since we use nm_connection_update_secrets() more these days, and we
      depend on the GValue types we pass into it matching the property
      types of the setting property the secret is for, we need to fix that
      up for VPN connections.  But keep the old code for backwards
      compatibility.
      
      In the future secret agents should pass back VPN secrets in the same
      form as the VPN setting specifies them for the "secrets" property:
      a GHashTable of string:string.  But the old mechanism of just dumping
      the key/value pairs into the returned VPN hash as string:string will
      still work.
      d7a86ffd
  18. 07 Feb, 2011 1 commit
  19. 01 Feb, 2011 1 commit
  20. 31 Jan, 2011 2 commits
  21. 29 Jan, 2011 1 commit
    • Dan Williams's avatar
      libnm-util: add secret flags for each secret describing how the secret is stored · 5a7cf39a
      Dan Williams authored
      This allows the necessary flexibility when handling secrets; otherwise
      it wouldn't be known when NM should save secrets returned from agents
      to backing storage, or when the agents should store the secrets. We
      can't simply use lack of a secret in persistent storage as the indicator
      of this, as (for example) when creating a new connection without
      secrets the storage method would be abmiguous.
      
      At the same time, fold in "always ask" functionality for OTP tokens
      so user agents don't have to store that attribute themselves out-of-band.
      5a7cf39a
  22. 21 Jan, 2011 1 commit
  23. 28 Jun, 2010 1 commit
  24. 11 Nov, 2009 1 commit
  25. 02 Nov, 2009 1 commit
  26. 20 Nov, 2008 1 commit
    • Dan Williams's avatar
      2008-11-20 Dan Williams <dcbw@redhat.com> · 320c3f37
      Dan Williams authored
      	* libnm-util/libnm-util.ver
      	  libnm-util/nm-setting.c
      	  libnm-util/nm-setting.h
      		- Add NMSetting errors
      		- (nm_setting_update_secrets): return errors
      
      	* libnm-util/nm-connection.c
      	  libnm-util/nm-connection.h
      		- (nm_connection_update_secrets): return errors
      
      	* libnm-util/nm-setting-vpn.c
      	  src/nm-activation-request.c
      	  src/vpn-manager/nm-vpn-connection.c
      		- Handle update secrets errors
      
      
      
      git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4314 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
      320c3f37
  27. 29 Oct, 2008 1 commit
    • Tambet Ingo's avatar
      2008-10-29 Tambet Ingo <tambet@gmail.com> · 8f6eb995
      Tambet Ingo authored
      	Half of it by Dan Williams <dcbw@redhat.com>
      
      	* libnm-util/libnm-util.ver
      	libnm-util/nm-setting-vpn.c
      	libnm-util/nm-setting-vpn.h
      		- Make properties private and add accessor functions.
      
      	* src/vpn-manager/nm-vpn-connection.c
      	src/vpn-manager/nm-vpn-manager.c
      	system-settings/plugins/keyfile/reader.c
      	vpn-daemons/openvpn/properties/auth-helpers.c
      	vpn-daemons/openvpn/properties/import-export.c
      	vpn-daemons/openvpn/properties/nm-openvpn.c
      	vpn-daemons/openvpn/src/nm-openvpn-service.c
      	vpn-daemons/pptp/auth-dialog/main.c
      	vpn-daemons/pptp/properties/advanced-dialog.c
      	vpn-daemons/pptp/properties/nm-pptp.c
      	vpn-daemons/pptp/src/nm-pptp-service.c
      	vpn-daemons/vpnc/properties/nm-vpnc.c
      	vpn-daemons/vpnc/src/nm-vpnc-service.c
      		- Use VPN setting accessors.
      
      git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4232 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
      8f6eb995
  28. 27 Oct, 2008 1 commit
    • Dan Williams's avatar
      2008-10-27 Dan Williams <dcbw@redhat.com> · c4383261
      Dan Williams authored
      	Patch from Tambet Ingo <tambet@gmail.com>
      
      	* libnm-util/nm-setting.h
      	  libnm-util/nm-setting.c
      		- Make properties private and add accessor functions
      
      	* libnm-util/nm-connection.c
      	  libnm-util/nm-setting-8021x.c
      	  libnm-util/nm-setting-cdma.c
      	  libnm-util/nm-setting-connection.c
      	  libnm-util/nm-setting-gsm.c
      	  libnm-util/nm-setting-ip4-config.c
      	  libnm-util/nm-setting-ip6-config.c
      	  libnm-util/nm-setting-ppp.c
      	  libnm-util/nm-setting-pppoe.c
      	  libnm-util/nm-setting-serial.c
      	  libnm-util/nm-setting-template.c
      	  libnm-util/nm-setting-vpn.c
      	  libnm-util/nm-setting-wired.c
      	  libnm-util/nm-setting-wireless-security.c
      	  libnm-util/nm-setting-wireless.c
      	  system-settings/plugins/keyfile/reader.c
      	  system-settings/plugins/keyfile/writer.c
      		- Use setting accessors
      
      
      
      git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4228 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
      c4383261
  29. 04 Sep, 2008 1 commit
    • Dan Williams's avatar
      2008-09-04 Dan Williams <dcbw@redhat.com> · ba15ee5f
      Dan Williams authored
      	* libnm-util/nm-setting-vpn.c
      	  libnm-util/nm-setting-vpn.h
      		- Split VPN secrets from VPN data so that settings services can actually
      			figure out that they are secrets and store them accordingly
      
      	* system-settings/plugins/keyfile/nm-keyfile-connection.c
      	  system-settings/plugins/keyfile/reader.c
      	  system-settings/plugins/keyfile/reader.h
      	  system-settings/plugins/keyfile/writer.c
      		- Store VPN secrets separately from VPN data so that they can be fetched
      			on demand
      		- Implement the get_secrets() call so that (a) secrets don't leak out
      			to unprivileged callers, and (b) secrets can be sent to privileged
      			callers when needed
      
      	* vpn-daemons/vpnc/src/nm-vpnc-service.c
      		- Handle split VPN secrets
      
      
      
      git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4031 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
      ba15ee5f
  30. 26 Aug, 2008 1 commit
  31. 11 Aug, 2008 1 commit
  32. 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
      	  libnm-glib/nm-ip4-config.h
      		- Add 'routes' property
      
      	* libnm-util/nm-setting-vpn.c
      	  libnm-util/nm-setting-vpn.h
      		- Remove 'routes' property
      
      	* libnm-util/nm-setting-ip4-config.c
      	  libnm-util/nm-setting-ip4-config.h
      		- '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
      	  libnm-util/nm-utils.h
      		- Add helpers for marshalling IP4 routes
      
      	* src/NetworkManagerUtils.c
      		- (nm_utils_merge_ip4_config): handle property renames and new route
      			structure
      
      	* 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
      	  system-settings/plugins/ifcfg-fedora/writer.c
      		- Handle routes separately from addresses now that routes have a different
      			format
      
      	* introspection/nm-ip4-config.xml
      	  src/nm-ip4-config.c
      	  src/nm-ip4-config.h
      		- 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
      2c31b549
  33. 27 Jul, 2008 1 commit
  34. 12 Jun, 2008 1 commit
  35. 29 Mar, 2008 1 commit
    • Dan Williams's avatar
      2008-03-29 Dan Williams <dcbw@redhat.com> · 6fc5e814
      Dan Williams authored
      	* libnm-util/nm-setting-8021x.c
      	  libnm-util/nm-setting-ip4-config.c
      	  libnm-util/nm-setting-vpn-properties.c
      	  libnm-util/nm-setting-vpn.c
      	  libnm-util/nm-setting-wireless-security.c
      	  libnm-util/nm-setting-wireless.c
      	  libnm-util/nm-utils.c
      	  src/dhcp-manager/nm-dhcp-manager.c
      	  src/nm-activation-request.c
      	  src/nm-ip4-config.c
      	  src/nm-manager.c
      	  src/nm-properties-changed-signal.c
      	  src/ppp-manager/nm-pppd-plugin.c
      	  src/supplicant-manager/nm-supplicant-interface.c
      	  src/vpn-manager/nm-vpn-connection.c
      		- consistently use nm-dbus-glib-types.h
      
      
      
      git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3514 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
      6fc5e814