Commit Graph

1021 Commits

Author SHA1 Message Date
Dan Williams
7a594f2bdc crypto: de-init NSS after calling PR_GetError()
PR_Cleanup() can clear out the error, and we don't want to
loose it.
2010-01-21 12:57:31 -08:00
Dan Williams
e21885e764 Merge commit 'origin/master' into dhcp6 2010-01-20 16:54:12 -08:00
Dan Williams
8720a74c2e build: pkg-config file fixes 2010-01-20 16:53:04 -08:00
Dan Williams
69790deedd libnm-util: add IPv6 method 'dhcp' 2010-01-08 14:57:46 -08:00
Dan Williams
2ef7ea02b3 test: enable IPv6 setting defaults test 2010-01-08 14:57:23 -08:00
Jirka Klimes
3b0255f73c libnm-util: add IPv6 comparison functions 2010-01-05 18:51:53 -06:00
Tambet Ingo
ac0f32537e Merge branch 'master' into wimax 2009-12-29 11:25:37 +02:00
Dan Williams
c0d7c2579e libnm-util: fix potential crash when encrypting fails 2009-12-23 11:08:26 -08:00
Dan Williams
e2b9e401ca libnm-util: remove unused variable 2009-12-23 11:07:50 -08:00
Tambet Ingo
75c734f1a9 wimax: Implement WiMAX support 2009-12-18 15:41:27 +02:00
Dan Williams
4274edf47d libnm-util: client certificate should not be required to set private key (bgo #585570)
Not sure what I was thinking originally; there's no way this was
correct in the first place.
2009-12-08 16:52:24 -08:00
Dan Williams
15497fd10f libnm-util: handle PEM files without an ending newline (rh #507315)
Due to an off-by-one bug if the ending PEM tag was the last thing
in the file, it would get missed.  Add some testcases for that too.
2009-11-18 16:29:48 -08:00
Dan Williams
198f8f48cf doc: document NMSettingIP6Config 2009-11-16 13:53:23 -08:00
Dan Williams
f790fb38c1 doc: use consistent wording in the IP4Config documentation 2009-11-16 13:37:35 -08:00
Dan Williams
960bcb6dfa doc: document the IP4Config setting 2009-11-16 12:33:27 -08:00
Dan Williams
943a85b2d7 doc: fix up 802.1x setting documentation 2009-11-16 11:24:53 -08:00
Dan Williams
a943ed93a6 doc: document wireless setting properties 2009-11-11 14:09:50 -08:00
Dan Williams
54775f6a64 doc: document wireless-security setting properties 2009-11-11 14:08:15 -08:00
Dan Williams
0539c2b6d2 doc: document wired setting properties 2009-11-11 14:07:42 -08:00
Dan Williams
7f3f5bfef3 doc: document vpn setting properties 2009-11-11 14:07:25 -08:00
Dan Williams
9a9e833af6 doc: document serial setting properties 2009-11-11 14:07:14 -08:00
Dan Williams
963dde80a4 doc: document pppoe setting properties 2009-11-11 14:07:02 -08:00
Dan Williams
158ef1cf97 doc: document ppp setting properties 2009-11-11 14:06:48 -08:00
Dan Williams
9a5e3bd0b6 doc: document gsm setting properties 2009-11-11 14:06:33 -08:00
Dan Williams
3f2ff06969 doc: document cdma setting properties 2009-11-11 14:06:14 -08:00
Dan Williams
b71a320e14 doc: document olpc-mesh setting properties 2009-11-11 13:50:19 -08:00
Dan Williams
8624db249a doc: document bluetooth setting properties 2009-11-11 13:50:01 -08:00
Dan Williams
14089e8b26 doc: update some setting properties descriptions 2009-11-10 12:36:20 -08:00
Dan Williams
cfec3f3a6d libnm-util: add missing nm_setting_olpc_mesh_new() 2009-11-10 12:22:45 -08:00
Dan Williams
df32cfbfd8 libnm-util: don't allow blank or NULL VPN items or secrets (rh #532084)
Weren't supposed to be allowed anyway; fix that and add a testcase for it.
2009-11-02 10:57:31 -08:00
Dan Williams
40c91efa21 libnm-util: fix checking for TLS and TTLS phase2 secrets
Two errors here; first, need_secrets_tls() was not updated correctly
for the certificate paths changes that landed recently, and would
have incorrectly returned "no secrets required" for the PATH scheme.

Second, an incorrect strcmp() comparison in need_secrets_phase2()
meant that the wrong TTLS phase2 method would get asked if it
required secrets.
2009-10-18 23:45:26 -07:00
Dan Williams
a770a14fd2 libnm-util: ensure GSM setting default values
Broken by 00f945e54e.
2009-10-18 22:51:43 -07:00
Dan Williams
00f945e54e gsm: correct GSM band implementation and settings
NM didn't pass it to MM anyway, so it was mainly unused, but the band settings
were still wrong.  Fix that (and still preserve ABI) by adding a new property
for allowed bands that can actually hold all the bands instead of limiting
to 16-bits.  Clean up some of the deprecation stuff at the same time to make
it clearer what's deprecated and what to do about it.
2009-10-07 12:18:57 -07:00
Dan Williams
12aa505d3c libnm-util: fix distcheck after 7a8611e0ad 2009-10-02 17:20:38 -07:00
Dan Williams
7a8611e0ad libnm-util: fix NSS padding checking and add testcase 2009-10-02 13:29:43 -07:00
Dan Williams
0596068561 libnm-util: add class padding for future expansion 2009-09-30 09:21:32 -07:00
Alexander Sack
dec1773694 libnm-util: fix build with gcc 4.4 - pass string format to g_set_error 2009-09-30 16:01:16 +02:00
Dan Williams
66251aedab doc: 802-1x doc fixes 2009-09-28 16:55:52 -07:00
Dan Williams
f75a6754ad libnm-util: doc fixes 2009-09-28 16:00:30 -07:00
Dan Williams
e6dfbaebf7 libnm-util: bump soname minor component (1.0.0 -> 1.1.0) for API additions 2009-09-26 15:45:45 -07:00
Dan Williams
0190ac21a4 Revert "libnm-util: bump soname for certificate changes"
This reverts commit 5b90df0737.

Since commit 71219015ea adds all the
0.7.x certificate and key functions back, we can revert the soname
change and preserve API/ABI.
2009-09-25 16:01:23 -07:00
Dan Williams
71219015ea libnm-util: add 0.7 cert/key functions back
Since there's a more or less direct mapping between the 0.7.x and
the 0.8.x certificate and key operations, we might as well just
deprecate them instead of removing them entirely.
2009-09-25 16:00:19 -07:00
Dan Williams
73a504a1e6 Merge commit 'origin/master' into cert-paths 2009-09-21 10:59:53 -07:00
Dan Williams
d548fc9a61 libnm-util: silence some of the GSM PUK warnings 2009-09-21 10:59:19 -07:00
Dan Williams
5b90df0737 libnm-util: bump soname for certificate changes 2009-09-21 10:57:52 -07:00
Dan Williams
cde6af87a8 Merge commit 'origin/master' into cert-paths 2009-09-19 07:01:49 -07:00
Dan Williams
e4ed9764b5 libnm-util: deprecate GSM PUK property
Unused anyway, and PUK is dangerous enough that it should be handled
by the client explicitly and not by NM.
2009-09-18 17:08:30 -07:00
Dan Williams
7e7cfbd946 libnm-util: verify private keys with passwords; pkcs#12 crash fix
For private keys, don't just verify that the key can be read; try to
decrypt it to ensure that the password is actually valid.

Also fix a stupid {} mistake that caused crashes when setting pkcs#12
certificates because the check for PATH scheme wouldn't happen and
the private key would be NULL when trying to set the client cert to
the same data as the private key.
2009-09-16 12:42:52 -07:00
Dan Williams
9f8f2a2dd9 libnm-util: clarify certificate/key path argument usage
In the future we'll allow cert/key IDs too, so don't lock ourselves
into filenames, but use the 'scheme' argument to specify what 'value'
means.
2009-09-16 10:30:31 -07:00
Dan Williams
8c35e96b60 libnm-util: add nm_utils_rsa_key_encrypt() and fix crypto padding mixups
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.
2009-09-15 16:01:50 -07:00