1. 01 Aug, 2014 3 commits
    • Dan Winship's avatar
      libnm: fix up class struct reserved slots · 2fc55941
      Dan Winship authored
      Add reserved slots to those classes that were missing them (or had run
      out), and sync up the number of slots across classes:
        - 8 slots for "important" classes, abstract base classes, and
          classes we expect we might need to add new virtual methods or
          signals to later.
        - 4 for everything else
      Also, rearrange the class elements in a few places into standard order
      (signals first, then methods).
    • Dan Winship's avatar
      libnm: remove Since tags and NM_AVAILABLE_IN_* attributes · b4ae6eae
      Dan Winship authored
      Everything currently in libnm has always been there.
    • Dan Winship's avatar
      libnm: add libnm/libnm-core (part 1) · d595f784
      Dan Winship authored
      This commit begins creating the new "libnm", which will replace
      libnm-util and libnm-glib.
      The main reason for the libnm-util/libnm-glib split is that the daemon
      needs to link to libnm-util (to get NMSettings, NMConnection, etc),
      but can't link to libnm-glib (because it uses many of the same type
      names as the NetworkManager daemon. eg, NMDevice). So the daemon links
      to only libnm-util, but basically all clients link to both.
      With libnm, there will be only a single client-visible library, and
      NetworkManager will internally link against a private "libnm-core"
      containing the parts that used to be in libnm-util.
      (The "libnm-core" parts still need to be in their own directory so
      that the daemon can see those header files without also seeing the
      ones in libnm/ that conflict with its own headers.)
      [This commit just copies the source code from libnm-util/ to
      libnm-core/, and libnm-glib/ to libnm/:
        mkdir -p libnm-core/tests/
        mkdir -p libnm/tests/
        cp libnm-util/*.[ch] libnm-util/nm-version.h.in libnm-core/
        rm -f libnm-core/nm-version.h libnm-core/nm-setting-template.[ch] libnm-core/nm-utils-enum-types.[ch]
        cp libnm-util/tests/*.[ch] libnm-core/tests/
        cp libnm-glib/*.[ch] libnm/
        rm -f libnm/libnm_glib.[ch] libnm/libnm-glib-test.c libnm/nm-glib-enum-types.[ch]
        cp libnm-glib/tests/*.[ch] libnm/tests/
  2. 15 Jul, 2014 1 commit
    • Dan Winship's avatar
      libnm-util, libnm-glib: standardize copyright/license headers · cb7e1893
      Dan Winship authored
      - Remove list of authors from files that had them; these serve no
        purpose except to quickly get out of date (and were only used in
        libnm-util and not libnm-glib anyway).
      - Just say "Copyright", not "(C) Copyright" or "Copyright (C)"
      - Put copyright statement after the license, not before
      - Remove "NetworkManager - Network link manager" from the few files
        that contained it, and "libnm_glib -- Access network status &
        information from glib applications" from the many files that
        contained it.
      - Remove vim modeline from nm-device-olpc-mesh.[ch], add emacs modeline
        to files that were missing it.
  3. 28 Feb, 2014 2 commits
  4. 27 Jul, 2012 1 commit
  5. 12 Mar, 2012 1 commit
    • Dan Winship's avatar
      Fix names of error enum values · 54ef8f32
      Dan Winship authored
      When NM was registering all of its enum types by hand, it was using
      NamesLikeThis rather than the default names-like-this for the "nick"
      values. When we switched to using glib-mkenums, this resulted in
      dbus-glib using different strings for the D-Bus error names, causing
      compatibility problems.
      Fix this by using glib-mkenums annotations to manually fix all the
      enum values back to what they were before. (This can't be done in a
      more automated way, because the old names aren't 100% consistent. Eg,
      "UNKNOWN" frequently becomes "UnknownError" rather than just
  6. 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
      To avoid having to run glib-mkenums for every subdirectory of src/,
      add a new "generated" directory, and put the generated enums files
      Finally, use Makefile.glib for marshallers too, and generate separate
      ones for libnm-glib and NetworkManager.
  7. 05 Jul, 2011 1 commit
  8. 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.
  9. 30 Sep, 2009 1 commit
  10. 10 May, 2009 1 commit
  11. 30 Oct, 2008 1 commit
    • Dan Williams's avatar
      2008-10-30 Dan Williams <dcbw@redhat.com> · 0d7b8051
      Dan Williams authored
      	* libnm-util/libnm-util.ver
      		- Make properties private and add accessor functions
      	* libnm-util/nm-setting-wireless.c
      		- Use wireless security accessors
      git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4237 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
  12. 27 Jul, 2008 1 commit
  13. 12 Jun, 2008 1 commit
  14. 18 Mar, 2008 1 commit
  15. 17 Mar, 2008 1 commit
    • Dan Williams's avatar
      2008-03-17 Dan Williams <dcbw@redhat.com> · 70e79d60
      Dan Williams authored
      	Split the 802.1x bits out of the wireless-security setting so they are
      	generalized enough for wired 802.1x to use too.
      	* introspection/nm-exported-connection.xml
      		- GetSecrets now returns 'a{sa{sv}}' (a hash of settings hashes) instead
      			of just a hash of the secrets for one setting
      	* libnm-util/nm-setting-wireless-security.c
      		- Remove 802.1x-specific stuff
      		- Added leap-username and leap-password properties for old-school LEAP
      	* src/nm-device.c
      		- (connection_secrets_updated_cb): take a list of updated settings names,
      			not just one
      	* src/supplicant-manager/nm-supplicant-config.c
      		- (nm_supplicant_config_add_setting_wireless_security): remove 802.1x
      			specific stuff; fix for updated LEAP bits; punt 802.1x stuff
      			to nm_supplicant_config_add_setting_8021x()
      		- (nm_supplicant_config_add_setting_8021x): add an 802-1x setting to
      			the supplicant config
      	* src/nm-device-802-11-wireless.c
      		- (build_supplicant_config): pass in the 802.1x setting too, if any
      		- (real_connection_secrets_updated): take a list of updated settings
      			names, not just one
      	* src/nm-device-802-3-ethernet.c
      		- (real_connection_secrets_updated_cb): take a list of updated settings
      			names, not just one
      	* src/nm-activation-request.c
      		- (nm_act_request_class_init): the 'connection-secrets-updated' signal
      			now passes a list of updated settings names, not just one
      		- (update_one_setting): new function; handle one updated setting
      		- (get_secrets_cb): handle multiple settings returned from the
      			settings service; have to be careful of ordering here as there are
      			some dependencies between settings (ex. wireless-security and 802.1x
      			in some cases)
      	* src/marshallers/nm-marshal.list
      		- new marshaller for connection-secrets-updated signal
      	* libnm-util/nm-setting-8021x.c
      		- Add back the 'pin' and 'psk' settings, for EAP-SIM and EAP-PSK auth
      		- (verify): a valid 'eap' property is now required
      	* libnm-util/nm-connection.c
      		- (register_default_settings): add priorities to settings; there are
      			some dependencies between settings, and during the need_secrets
      			calls this priority needs to be respected.  For example, only the
      			wireless-security setting knows whether or not the connection is
      			going to use 802.1x or now, so it must be asked for secrets before
      			any existing 802.1x setting is
      		- (nm_connection_lookup_setting_type): expose
      	* libnm-util/nm-setting-wireless.c
      		- (verify): should verify even if all_settings is NULL; otherwise won't
      			catch the case where there is missing security
      	* libnm-util/nm-setting-wireless-security.c
      		- Remove everything to do with 802.1x
      		- Add old-school LEAP specific properties for username and password
      		- (need_secrets): rework LEAP secrets checking
      		- (verify): rework for LEAP and 802.1x verification
      git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3470 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
  16. 13 Nov, 2007 1 commit
    • Dan Williams's avatar
      2007-11-12 Dan Williams <dcbw@redhat.com> · 40360167
      Dan Williams authored
      	Make certs actually work.  The private key is now a secret, and should be
      	decrypted when requested by NM.  The private key and phase2 private key
      	passwords are no longer interesting to NM because they should be used by
      	the settings service to decrypt the private key itself before passing it
      	to NM, and hence have been removed as fields.
      	* libnm-util/nm-setting-wireless-security.h
      		- Remove private-key-passwd and phase2-private-key-passwd from
      		- (need_secrets_password, need_secrets_eappsk, need_secrets_sim,
      		   need_secrets): use property #defines instead strings to keep things
      		- (need_secrets_tls): if a client certificate is present but no
      			private key, request the private key
      		- (set_property, get_property, nm_setting_wireless_security_class_init):
      			remove private key password stuff, mark private keys as secret
      	* src/supplicant-manager/nm-supplicant-settings-verify.c
      		- Remove private_key_passwd and private_key2_passwd from opt_table
      git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3080 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
  17. 09 Nov, 2007 1 commit
  18. 08 Nov, 2007 1 commit
    • Dan Williams's avatar
      2007-11-08 Dan Williams <dcbw@redhat.com> · 46cac7cf
      Dan Williams authored
      	* libnm-util/nm-setting-wireless-security.h
      		- Add 'private-key-decrypted' and 'phase2-private-key-decrypted'
      			members to 802-11-wireless-security structure.  This should be used
      			to indicate that the values in private-key and phase2-private-key
      			are already decrypted by the user agent, and that no
      			private-key-passwd or phase2-private-key-passwd should be expected.
      			It is not meant to be a stored configuration value, but meant to
      			be set when the conneciton is sent to NM over dbus.
      git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@3073 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
  19. 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