summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2014-03-21 17:32:29 +0100
committerGravatar Nikias Bassen2014-03-21 17:32:29 +0100
commit623615d1faa1006d20cf2aee3d34c07d1eeb3239 (patch)
treeb90af1e9df1b5f64483bf5936a534410428080a0 /common
parentdd981981c2b262e8939dd96dbcb93c5d1c520622 (diff)
downloadlibimobiledevice-623615d1faa1006d20cf2aee3d34c07d1eeb3239.tar.gz
libimobiledevice-623615d1faa1006d20cf2aee3d34c07d1eeb3239.tar.bz2
userpref: fix mixed up root/host certificate storage
Diffstat (limited to 'common')
-rw-r--r--common/userpref.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/userpref.c b/common/userpref.c
index 4209e96..5a00d28 100644
--- a/common/userpref.c
+++ b/common/userpref.c
@@ -615,9 +615,9 @@ userpref_error_t pair_record_generate_keys_and_certs(plist_t pair_record)
/* now set keys and certificates */
pair_record_set_item_from_key_data(pair_record, USERPREF_HOST_PRIVATE_KEY_KEY, &host_key_pem);
- pair_record_set_item_from_key_data(pair_record, USERPREF_HOST_CERTIFICATE_KEY, &root_cert_pem);
+ pair_record_set_item_from_key_data(pair_record, USERPREF_HOST_CERTIFICATE_KEY, &host_cert_pem);
pair_record_set_item_from_key_data(pair_record, USERPREF_ROOT_PRIVATE_KEY_KEY, &root_key_pem);
- pair_record_set_item_from_key_data(pair_record, USERPREF_ROOT_CERTIFICATE_KEY, &host_cert_pem);
+ pair_record_set_item_from_key_data(pair_record, USERPREF_ROOT_CERTIFICATE_KEY, &root_cert_pem);
if (root_key_pem.data)
free(root_key_pem.data);