Commit graph

5640 commits

Author SHA1 Message Date
Dan Williams 36740e0182 libnm-glib-vpn: minor soname bump for new nm-vpn-plugin-utils.c functions
1.0.0 -> 1.1.0
2011-03-10 00:49:09 -06:00
Dan Williams 72dac886a7 libnm-util: allow setting-only hashes with nm_connection_update_secrets()
It's easier to be able to pass both a whole hashed connection, or just
a hashed setting to the function, and have it figure out what needs
to be updated based on the given setting_name.

Add some testcases to make sure that all works correctly too.
2011-03-09 09:31:44 -06:00
Dan Williams 4963825d0c todo: update with some stuff people could work on 2011-03-08 15:24:27 -06:00
Dan Williams 62ad893a4a core: bring the state() D-Bus method back
It's a lot easier for app developers to use.
2011-03-08 12:57:35 -06:00
Dan Williams 5c260cfe4a keyfile: trivial whitespace fixes 2011-03-08 10:19:01 -06:00
Dan Williams 9a3d762fdf settings: fix some code that required glib 2.26
Should be compatible with at least glib 2.24 and hopefully earlier.
2011-03-08 10:18:29 -06:00
Ionut Biru 089e2f5847 arch: create /var/run/NetworkManager if doesn't exist in initscripts (bgo #643902) 2011-03-08 14:27:30 +01:00
Jiří Klimeš 757a565792 po: remove useless ' ' for French translation (bgo #644110) 2011-03-08 14:08:31 +01:00
Jiří Klimeš 28cf83fe94 trivial: fix description of nm_connection_get_id() 2011-03-08 13:50:36 +01:00
Jiří Klimeš c207d020f7 core: use nm_connection_get_id() and nm_connection_get_uuid() to simplify code 2011-03-08 13:41:28 +01:00
Jiří Klimeš 78b1260af4 ifcfg-rh: fix testcases now that timestamps are no longer written
Timestamps are no longer written to the connection file itself, but
are kept in a lookaside file in /var to allow for read-only or
stateless /etc and to ease system administration and deployment.
2011-03-08 11:58:00 +01:00
Jiří Klimeš 2e3e171171 ifcfg-rh: get rid of LAST_CONNECT
timestamps are now kept in /var/log/NetworkManager/timestamps
2011-03-08 11:49:49 +01:00
Jiří Klimeš 83d8677963 core: timestamp handling - don't touch /etc when updating timestamps (bgo #637825)
NM updates timestamp for active connections every 5 min. We don't
want to touch files in /etc due to this. This commit solves that
by not updating timestamp in the connection's property. Rather it
updates the timestamp internally. All timestamps are also kept track
of in /var/lib/NetworkManager/timestamps file.
When settings are requested via D-Bus GetSettings(), the proper
timestamp is put in the connection setting before returning.
2011-03-08 10:37:44 +01:00
Dan Williams 580ee0fc27 build: relax glib version requirement to 2.24
We only need newer glib for G_DEFINE_BOXED_TYPE, which is only
required for introspection.  If you don't want introspection, you
don't need that, so allow building on glib 2.24 without.

We may be compatible with even earlier glib versions too, if so
let me know and I'll downgrade the requirement further.
2011-03-07 10:39:08 -06:00
Dan Williams 8b8e3fa605 libnm-util: conditionalize code that requires glib 2.26 or later 2011-03-07 10:30:09 -06:00
Michael Biebl 768f167347 build: fix unresolved symbols when building gtk-doc scanner with GCC 4.5 2011-03-07 10:11:46 -06:00
Michael Biebl f2f406b316 ifupdown: normalize keys using - or _ (debian #609831) 2011-03-07 09:57:05 -06:00
Daniel Trebbien 96044f7d94 ifupdown: use new logging API 2011-03-05 00:02:43 -06:00
Mikhail Efremov 77eeb95233 settings: don't dereference NULL pointer on request removal 2011-03-05 00:01:01 -06:00
Dan Williams ffb9457d55 dnsmasq: remove unused variable 2011-03-04 23:56:19 -06:00
Dan Williams b05b77fa26 dnsmasq: send no config file instead of a bogus one (lp:725041) (debian #615082) 2011-03-04 23:52:44 -06:00
Dan Williams 8ce5459724 release: bump version to 0.8.995 (0.9-beta1) 2011-03-04 14:42:30 -06:00
Dan Williams e05fd1cc47 docs: fix distcheck and ensure spec.html gets put in the right place
gtk-doc removes the 'html' directory as part of the build process
so we need to have spec.html generation depend on the gtk-doc html
target.  Also, fix up the paths to make sure the generated spec.html
gets copied into the final 'html' directory.
2011-03-04 14:38:28 -06:00
Dan Williams 32c262e1ae docs: more migration guide updates 2011-03-04 14:20:40 -06:00
Dan Williams 8bcb053153 libnm-util: fix misspelling in property documentation 2011-03-04 13:49:34 -06:00
Dan Williams 29fa747f69 trivial: fix misspelling 2011-03-04 13:47:28 -06:00
Dan Williams 02d01b7dfd docs: more migration guide updates 2011-03-04 12:51:16 -06:00
Dan Williams 0def159d1f trivial: whitespace fix 2011-03-04 12:51:05 -06:00
Dan Williams 1f770a33ca docs: migration guide updates and additions 2011-03-03 20:45:42 -06:00
Dan Williams db2a1a79c9 trivial: update gitignore 2011-03-03 20:21:17 -06:00
Dan Williams 69f2c75956 api: fix up introspection and header documentation for modem consolidation 2011-03-03 20:16:16 -06:00
Dan Williams 5bce4adfbb ifcfg-rh: clean up temporary testcase certificates files (fixes distcheck) 2011-03-03 19:15:49 -06:00
Dan Williams e9165c0f7d trivial: turn off debug messages in /etc/hosts testcase 2011-03-03 18:51:55 -06:00
Dan Williams 9e45d7c8cb ifcfg-rh: test writing TLS secret flags and reading them back in 2011-03-03 18:37:33 -06:00
Dan Williams e165511ed8 ifcfg-rh: fix handling of private key password secret flags 2011-03-03 17:32:29 -06:00
Dan Williams bc4d3482e1 ifcfg-rh: handle secret flags
Some adjustments need to be made to read and write secret flags, and
to ensure that connections that don't have system-owned secrets are
still parsed as expected.  testcases for 802.1x connections to come
shortly.
2011-03-03 12:29:37 -06:00
Dan Williams ecca85066d keyfile: write certificates and keys in a human-readable manner
Write actual paths, not integer lists.  When given certificate or
key blobs, write those out to files and put the path to that file
into the keyfile.
2011-03-03 00:03:44 -06:00
Dan Williams e3cddc8d9f keyfile: allow paths to be used for certificates and private keys
No reason it should have to be bare byte arrays, ick.
2011-03-02 23:44:27 -06:00
Dan Williams c9246b53ff ifcfg-rh: fix leak writing out certificate blobs 2011-03-02 23:39:42 -06:00
Dan Williams 36294ddbce examples: port system wifi example to NM 0.9 2011-03-02 23:37:22 -06:00
Dan Williams 526b2d0e6d examples: simplify system wifi connection example 2011-03-02 23:36:38 -06:00
Dan Williams 56bbc139bd examples: new example for adding system WPA EAP-TLS wifi connection 2011-03-02 23:36:07 -06:00
Dan Williams 5c7edb67e2 build: fix bug tracker link 2011-03-02 23:34:25 -06:00
Dan Williams eae0e8de61 dhcp: don't quit if we can't find a usable DHCP client (bgo #643575) 2011-03-02 23:33:43 -06:00
Dan Williams 1a590cce13 include: add NM_CHECK_VERSION define 2011-03-02 17:16:27 -06:00
Dan Williams 28e6523b8d libnm-util: rework certificate and private key handling
First, it was not easily possible to set a private key without
also providing a password.  This used to be OK, but now with
secret flags it may be the case that when the connection is read,
there's no private key password.  So functions that set the
private key must account for NULL passwords.

Unfortunately, the crytpo code did not handle this case well.
We need to be able to independently (a) verify that a file looks
like a certificate or private key and (b) that a given password
decrypts a private key.  Previously the crypto code would fail
to verify the file when the password was NULL.

So this change fixes up the crytpo code for a more distinct
split between these two operations, such that if no password is
given, the file is still checked to ensure that it's a private
key or a certificate.  If a password is given, the password is
checked against the private key file.

This commit also changes how private keys and certificates were
handled with the BLOB scheme.  Previously only the first certificate
or first private key was included in the property data, while now
the entire file is encoded in the data.  This is intended to fix
cases where multiple private keys or certificates are present in
a PEM file.  It also allows clients to push certificate data to
NetworkManager for storage in system settings locations, which was
not as flexible before when only part of the certificate or key
was sent as the data.
2011-03-02 12:00:47 -06:00
Dan Williams 02f676c001 libnm-glib: document secret agent request flags 2011-03-02 02:03:12 -06:00
Dan Williams de0101b20f docs: more docs fixups
Include NMSecretAgent too
2011-03-02 02:02:06 -06:00
Dan Williams 97053ccb8c ifcfg-rh: consolidate variable definition 2011-02-28 17:51:52 -06:00
Dan Williams 781ea63209 ifcfg-rh: clean up EAP-TLS reading 2011-02-28 17:50:32 -06:00