NetworkManager/libnm-util
Dan Williams e2f65ce12a 2008-11-13 Dan Williams <dcbw@redhat.com>
Add support for PKCS#12 private keys (bgo #558982)

	* libnm-util/crypto.c
	  libnm-util/crypto.h
		- (parse_old_openssl_key_file): rename from parse_key_file(); adapt to
			take a GByteArray instead of a filename
		- (file_to_g_byte_array): handle private key files too
		- (decrypt_key): take a GByteArray rather than data + len
		- (crypto_get_private_key_data): refactor crypto_get_private_key() into
			one function that takes a filename, and one that takes raw data;
			detect pkcs#12 files as well
		- (crypto_load_and_verify_certificate): detect file type
		- (crypto_is_pkcs12_data, crypto_is_pkcs12_file): add pkcs#12 detection
			functions

	* libnm-util/crypto_gnutls.c
		- (crypto_decrypt): take GByteArray rather than data + len; fix a bug
			whereby tail padding was incorrectly handled, leading to erroneous
			successes when trying to decrypt the data
		- (crypto_verify_cert): rework somewhat
		- (crypto_verify_pkcs12): validate pkcs#12 keys

	* libnm-util/crypto_nss.c
		- (crypto_init): enable various pkcs#12 ciphers
		- (crypto_decrypt): take a GByteArray rather than data + len
		- (crypto_verify_cert): clean up
		- (crypto_verify_pkcs12): validate pkcs#12 keys

	* libnm-util/test-crypto.c
		- Handle pkcs#12 keys

	* libnm-util/nm-setting-8021x.c
	  libnm-util/nm-setting-8021x.h
	  libnm-util/libnm-util.ver
		- Add two new properties, 'private-key-password' and
			'phase2-private-key-password', to be used in conjunction with
			pkcs#12 keys
		- (nm_setting_802_1x_set_ca_cert_from_file,
		   nm_setting_802_1x_set_client_cert_from_file,
		   nm_setting_802_1x_set_phase2_ca_cert_from_file,
		   nm_setting_802_1x_set_phase2_client_from_file): return certificate
			type
		- (nm_setting_802_1x_get_private_key_password,
		   nm_setting_802_1x_get_phase2_private_key_password): return private
			key passwords
		- (nm_setting_802_1x_set_private_key_from_file,
		   nm_setting_802_1x_set_phase2_private_key_from_file): set the private
			key from a file, and update the private key password at the same time
		- (nm_setting_802_1x_get_private_key_type,
		   nm_setting_802_1x_get_phase2_private_key_type): return the private
			key type

	* src/supplicant-manager/nm-supplicant-settings-verify.c
		- Whitelist private key passwords

	* src/supplicant-manager/nm-supplicant-config.c
		- (nm_supplicant_config_add_setting_8021x): for pkcs#12 private keys,
			add the private key password to the supplicant config, but do not
			add the client certificate (as required by wpa_supplicant)



git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@4280 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
2008-11-13 21:19:08 +00:00
..
.cvsignore Add cvsignore file 2005-12-10 02:26:47 +00:00
COPYING Clarify licensing on all files 2008-10-06 18:02:19 +00:00
crypto.c 2008-11-13 Dan Williams <dcbw@redhat.com> 2008-11-13 21:19:08 +00:00
crypto.h 2008-11-13 Dan Williams <dcbw@redhat.com> 2008-11-13 21:19:08 +00:00
crypto_gnutls.c 2008-11-13 Dan Williams <dcbw@redhat.com> 2008-11-13 21:19:08 +00:00
crypto_nss.c 2008-11-13 Dan Williams <dcbw@redhat.com> 2008-11-13 21:19:08 +00:00
libnm-util.pc.in Patch from Timo Hoenig: fix library name for libnm-util 2006-01-09 15:05:19 +00:00
libnm-util.ver 2008-11-13 Dan Williams <dcbw@redhat.com> 2008-11-13 21:19:08 +00:00
Makefile.am 2008-10-30 Dan Williams <dcbw@redhat.com> 2008-10-30 19:39:51 +00:00
nm-connection.c 2008-10-30 Dan Williams <dcbw@redhat.com> 2008-10-30 19:39:51 +00:00
nm-connection.h 2008-08-04 Dan Williams <dcbw@redhat.com> 2008-08-04 22:16:08 +00:00
nm-param-spec-specialized.c 2008-10-01 Dan Williams <dcbw@redhat.com> 2008-10-01 21:38:23 +00:00
nm-param-spec-specialized.h Rename private nm_* functions to _nm_* 2008-08-26 09:34:31 +00:00
nm-setting-8021x.c 2008-11-13 Dan Williams <dcbw@redhat.com> 2008-11-13 21:19:08 +00:00
nm-setting-8021x.h 2008-11-13 Dan Williams <dcbw@redhat.com> 2008-11-13 21:19:08 +00:00
nm-setting-cdma.c 2008-10-27 Dan Williams <dcbw@redhat.com> 2008-10-27 17:36:18 +00:00
nm-setting-cdma.h 2008-10-26 Dan Williams <dcbw@redhat.com> 2008-10-26 17:21:01 +00:00
nm-setting-connection.c 2008-10-27 Dan Williams <dcbw@redhat.com> 2008-10-27 17:36:18 +00:00
nm-setting-connection.h 2008-10-27 Dan Williams <dcbw@redhat.com> 2008-10-27 17:07:42 +00:00
nm-setting-gsm.c 2008-10-27 Dan Williams <dcbw@redhat.com> 2008-10-27 17:36:18 +00:00
nm-setting-gsm.h 2008-10-26 Dan Williams <dcbw@redhat.com> 2008-10-26 17:23:37 +00:00
nm-setting-ip4-config.c 2008-10-29 Dan Williams <dcbw@redhat.com> 2008-10-29 14:35:25 +00:00
nm-setting-ip4-config.h 2008-10-29 Dan Williams <dcbw@redhat.com> 2008-10-29 14:35:25 +00:00
nm-setting-ip6-config.c 2008-10-30 Dan Williams <dcbw@redhat.com> 2008-10-30 19:39:51 +00:00
nm-setting-ip6-config.h 2008-10-30 Dan Williams <dcbw@redhat.com> 2008-10-30 19:39:51 +00:00
nm-setting-ppp.c 2008-10-27 Dan Williams <dcbw@redhat.com> 2008-10-27 17:39:59 +00:00
nm-setting-ppp.h 2008-10-27 Dan Williams <dcbw@redhat.com> 2008-10-27 17:39:59 +00:00
nm-setting-pppoe.c 2008-10-27 Dan Williams <dcbw@redhat.com> 2008-10-27 17:36:18 +00:00
nm-setting-pppoe.h 2008-10-26 Dan Williams <dcbw@redhat.com> 2008-10-26 17:08:58 +00:00
nm-setting-serial.c 2008-10-27 Dan Williams <dcbw@redhat.com> 2008-10-27 17:36:18 +00:00
nm-setting-serial.h 2008-10-26 Dan Williams <dcbw@redhat.com> 2008-10-26 16:54:17 +00:00
nm-setting-template.c 2008-10-27 Dan Williams <dcbw@redhat.com> 2008-10-27 17:36:18 +00:00
nm-setting-template.h 2008-07-27 Dan Williams <dcbw@redhat.com> 2008-07-27 20:03:46 +00:00
nm-setting-vpn.c 2008-10-29 Tambet Ingo <tambet@gmail.com> 2008-10-29 09:13:40 +00:00
nm-setting-vpn.h 2008-10-29 Tambet Ingo <tambet@gmail.com> 2008-10-29 09:13:40 +00:00
nm-setting-wired.c 2008-10-27 Dan Williams <dcbw@redhat.com> 2008-10-27 17:36:18 +00:00
nm-setting-wired.h 2008-10-26 Dan Williams <dcbw@redhat.com> 2008-10-26 17:02:05 +00:00
nm-setting-wireless-security.c 2008-10-30 Dan Williams <dcbw@redhat.com> 2008-10-30 14:45:55 +00:00
nm-setting-wireless-security.h 2008-10-30 Dan Williams <dcbw@redhat.com> 2008-10-30 14:45:55 +00:00
nm-setting-wireless.c 2008-11-07 Dan Williams <dcbw@redhat.com> 2008-11-07 15:55:08 +00:00
nm-setting-wireless.h 2008-10-28 Dan Williams <dcbw@redhat.com> 2008-10-28 19:26:00 +00:00
nm-setting.c 2008-10-27 Dan Williams <dcbw@redhat.com> 2008-10-27 17:36:18 +00:00
nm-setting.h 2008-10-27 Dan Williams <dcbw@redhat.com> 2008-10-27 17:36:18 +00:00
nm-utils.c Fix IPv6 prefix length 2008-10-30 21:02:26 +00:00
nm-utils.h 2008-10-30 Dan Williams <dcbw@redhat.com> 2008-10-30 19:39:51 +00:00
test-crypto.c 2008-11-13 Dan Williams <dcbw@redhat.com> 2008-11-13 21:19:08 +00:00