From 623615d1faa1006d20cf2aee3d34c07d1eeb3239 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Fri, 21 Mar 2014 17:32:29 +0100 Subject: userpref: fix mixed up root/host certificate storage --- common/userpref.c | 4 ++-- 1 file 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); -- cgit v1.1-32-gdbae