diff options
Diffstat (limited to 'src/lockdown-cu.c')
| -rw-r--r-- | src/lockdown-cu.c | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/src/lockdown-cu.c b/src/lockdown-cu.c index 9fbd2c8..30eec99 100644 --- a/src/lockdown-cu.c +++ b/src/lockdown-cu.c | |||
| @@ -509,7 +509,7 @@ lockdownd_error_t lockdownd_cu_pairing_create(lockdownd_client_t client, lockdow | |||
| 509 | char *s_version = NULL; | 509 | char *s_version = NULL; | 
| 510 | plist_get_string_val(p_version, &s_version); | 510 | plist_get_string_val(p_version, &s_version); | 
| 511 | if (s_version && sscanf(s_version, "%d.%d.%d", &vers[0], &vers[1], &vers[2]) >= 2) { | 511 | if (s_version && sscanf(s_version, "%d.%d.%d", &vers[0], &vers[1], &vers[2]) >= 2) { | 
| 512 | client->device->version = DEVICE_VERSION(vers[0], vers[1], vers[2]); | 512 | client->device->version = IDEVICE_DEVICE_VERSION(vers[0], vers[1], vers[2]); | 
| 513 | } | 513 | } | 
| 514 | free(s_version); | 514 | free(s_version); | 
| 515 | } | 515 | } | 
| @@ -962,7 +962,7 @@ lockdownd_error_t lockdownd_cu_send_request_and_get_reply(lockdownd_client_t cli | |||
| 962 | 962 | ||
| 963 | // Starting with iOS/tvOS 11.2 and WatchOS 4.2, this nonce is random and sent along with the request. Before, the request doesn't have a nonce and it uses hardcoded nonce "sendone01234". | 963 | // Starting with iOS/tvOS 11.2 and WatchOS 4.2, this nonce is random and sent along with the request. Before, the request doesn't have a nonce and it uses hardcoded nonce "sendone01234". | 
| 964 | unsigned char cu_nonce[12] = "sendone01234"; // guaranteed to be random by fair dice troll | 964 | unsigned char cu_nonce[12] = "sendone01234"; // guaranteed to be random by fair dice troll | 
| 965 | if (client->device->version >= DEVICE_VERSION(11,2,0)) { | 965 | if (client->device->version >= IDEVICE_DEVICE_VERSION(11,2,0)) { | 
| 966 | #if defined(HAVE_OPENSSL) | 966 | #if defined(HAVE_OPENSSL) | 
| 967 | RAND_bytes(cu_nonce, sizeof(cu_nonce)); | 967 | RAND_bytes(cu_nonce, sizeof(cu_nonce)); | 
| 968 | #elif defined(HAVE_GCRYPT) | 968 | #elif defined(HAVE_GCRYPT) | 
