From 982bc6a5ec6395151501175be2e16d5c056e166d Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Fri, 21 Mar 2014 20:07:41 +0100 Subject: lockdown: Correct a few comments within pair generation code --- src/lockdown.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lockdown.c b/src/lockdown.c index 844169a..3c8fb80 100644 --- a/src/lockdown.c +++ b/src/lockdown.c @@ -846,7 +846,7 @@ static lockdownd_error_t pair_record_generate(lockdownd_client_t client, plist_t char* host_id = NULL; char* system_buid = NULL; - /* generate new certificates if needed */ + /* retrieve device public key */ ret = lockdownd_get_device_public_key_as_key_data(client, &public_key); if (ret != LOCKDOWN_E_SUCCESS) { debug_info("device refused to send public key."); @@ -856,6 +856,7 @@ static lockdownd_error_t pair_record_generate(lockdownd_client_t client, plist_t *pair_record = plist_new_dict(); + /* generate keys and certificates into pair record */ userpref_error_t uret = USERPREF_E_SUCCESS; uret = pair_record_generate_keys_and_certs(*pair_record, public_key); switch(uret) { -- cgit v1.1-32-gdbae