diff options
Diffstat (limited to 'src/lockdown.c')
| -rw-r--r-- | src/lockdown.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/lockdown.c b/src/lockdown.c index c017cdf..5ade79a 100644 --- a/src/lockdown.c +++ b/src/lockdown.c | |||
| @@ -472,6 +472,19 @@ iphone_error_t lockdownd_get_device_public_key(iphone_lckd_client_t control, gnu | |||
| 472 | return lockdownd_generic_get_value(control, "Key", "DevicePublicKey", public_key); | 472 | return lockdownd_generic_get_value(control, "Key", "DevicePublicKey", public_key); |
| 473 | } | 473 | } |
| 474 | 474 | ||
| 475 | /** Askes for the device's name. | ||
| 476 | * | ||
| 477 | * @return IPHONE_E_SUCCESS on succes or an error value < 0 on failure. | ||
| 478 | */ | ||
| 479 | iphone_error_t lockdownd_get_device_name(iphone_lckd_client_t control, char **device_name) | ||
| 480 | { | ||
| 481 | gnutls_datum_t temp = { NULL, 0 }; | ||
| 482 | iphone_error_t res = lockdownd_generic_get_value(control, "Key", "DeviceName", &temp); | ||
| 483 | log_debug_msg("%s: %s\n", __func__, temp.data); | ||
| 484 | *device_name = (char*)temp.data; | ||
| 485 | return res; | ||
| 486 | } | ||
| 487 | |||
| 475 | /** Completes the entire lockdownd handshake. | 488 | /** Completes the entire lockdownd handshake. |
| 476 | * | 489 | * |
| 477 | * @param phone The iPhone | 490 | * @param phone The iPhone |
