summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2014-03-21 20:07:41 +0100
committerGravatar Martin Szulecki2014-03-21 20:07:41 +0100
commit982bc6a5ec6395151501175be2e16d5c056e166d (patch)
tree3347ef27d96f3c88dda822a962cf998c51904fb0 /src
parente5d357356bef1804d4bc57cfc7176da803114b3c (diff)
downloadlibimobiledevice-982bc6a5ec6395151501175be2e16d5c056e166d.tar.gz
libimobiledevice-982bc6a5ec6395151501175be2e16d5c056e166d.tar.bz2
lockdown: Correct a few comments within pair generation code
Diffstat (limited to 'src')
-rw-r--r--src/lockdown.c3
1 files changed, 2 insertions, 1 deletions
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) {