diff options
| -rw-r--r-- | cython/lockdown.pxi | 8 | ||||
| -rw-r--r-- | include/libimobiledevice/lockdown.h | 4 | ||||
| -rw-r--r-- | src/lockdown.c | 10 |
3 files changed, 21 insertions, 1 deletions
diff --git a/cython/lockdown.pxi b/cython/lockdown.pxi index 7d903d6..c8d511e 100644 --- a/cython/lockdown.pxi +++ b/cython/lockdown.pxi | |||
| @@ -38,6 +38,10 @@ cdef extern from "libimobiledevice/lockdown.h": | |||
| 38 | LOCKDOWN_E_MISSING_ACTIVATION_RECORD | 38 | LOCKDOWN_E_MISSING_ACTIVATION_RECORD |
| 39 | LOCKDOWN_E_SERVICE_PROHIBITED | 39 | LOCKDOWN_E_SERVICE_PROHIBITED |
| 40 | LOCKDOWN_E_ESCROW_LOCKED | 40 | LOCKDOWN_E_ESCROW_LOCKED |
| 41 | LOCKDOWN_E_PAIRING_PROHIBITED_OVER_THIS_CONNECTION | ||
| 42 | LOCKDOWN_E_FMIP_PROTECTED | ||
| 43 | LOCKDOWN_E_MC_PROTECTED | ||
| 44 | LOCKDOWN_E_MC_CHALLENGE_REQUIRED | ||
| 41 | LOCKDOWN_E_UNKNOWN_ERROR | 45 | LOCKDOWN_E_UNKNOWN_ERROR |
| 42 | 46 | ||
| 43 | lockdownd_error_t lockdownd_client_new(idevice_t device, lockdownd_client_t *client, char *label) | 47 | lockdownd_error_t lockdownd_client_new(idevice_t device, lockdownd_client_t *client, char *label) |
| @@ -103,6 +107,10 @@ cdef class LockdownError(BaseError): | |||
| 103 | LOCKDOWN_E_MISSING_ACTIVATION_RECORD: "Missing activation record", | 107 | LOCKDOWN_E_MISSING_ACTIVATION_RECORD: "Missing activation record", |
| 104 | LOCKDOWN_E_SERVICE_PROHIBITED: "Service prohibited", | 108 | LOCKDOWN_E_SERVICE_PROHIBITED: "Service prohibited", |
| 105 | LOCKDOWN_E_ESCROW_LOCKED: "Escrow locked", | 109 | LOCKDOWN_E_ESCROW_LOCKED: "Escrow locked", |
| 110 | LOCKDOWN_E_PAIRING_PROHIBITED_OVER_THIS_CONNECTION: "Pairing prohibited over this connection", | ||
| 111 | LOCKDOWN_E_FMIP_PROTECTED: "Find My iPhone/iPod/iPad protected", | ||
| 112 | LOCKDOWN_E_MC_PROTECTED: "MC protected", | ||
| 113 | LOCKDOWN_E_MC_CHALLENGE_REQUIRED: "MC challenge required", | ||
| 106 | LOCKDOWN_E_UNKNOWN_ERROR: "Unknown error" | 114 | LOCKDOWN_E_UNKNOWN_ERROR: "Unknown error" |
| 107 | } | 115 | } |
| 108 | BaseError.__init__(self, *args, **kwargs) | 116 | BaseError.__init__(self, *args, **kwargs) |
diff --git a/include/libimobiledevice/lockdown.h b/include/libimobiledevice/lockdown.h index 076fa9d..46792a6 100644 --- a/include/libimobiledevice/lockdown.h +++ b/include/libimobiledevice/lockdown.h | |||
| @@ -73,6 +73,10 @@ typedef enum { | |||
| 73 | LOCKDOWN_E_MISSING_ACTIVATION_RECORD = -33, | 73 | LOCKDOWN_E_MISSING_ACTIVATION_RECORD = -33, |
| 74 | LOCKDOWN_E_SERVICE_PROHIBITED = -34, | 74 | LOCKDOWN_E_SERVICE_PROHIBITED = -34, |
| 75 | LOCKDOWN_E_ESCROW_LOCKED = -35, | 75 | LOCKDOWN_E_ESCROW_LOCKED = -35, |
| 76 | LOCKDOWN_E_PAIRING_PROHIBITED_OVER_THIS_CONNECTION = -36, | ||
| 77 | LOCKDOWN_E_FMIP_PROTECTED = -37, | ||
| 78 | LOCKDOWN_E_MC_PROTECTED = -38, | ||
| 79 | LOCKDOWN_E_MC_CHALLENGE_REQUIRED = -39, | ||
| 76 | LOCKDOWN_E_UNKNOWN_ERROR = -256 | 80 | LOCKDOWN_E_UNKNOWN_ERROR = -256 |
| 77 | } lockdownd_error_t; | 81 | } lockdownd_error_t; |
| 78 | 82 | ||
diff --git a/src/lockdown.c b/src/lockdown.c index 7cb3091..026d1d1 100644 --- a/src/lockdown.c +++ b/src/lockdown.c | |||
| @@ -3,7 +3,7 @@ | |||
| 3 | * com.apple.mobile.lockdownd service implementation. | 3 | * com.apple.mobile.lockdownd service implementation. |
| 4 | * | 4 | * |
| 5 | * Copyright (c) 2009-2015 Martin Szulecki All Rights Reserved. | 5 | * Copyright (c) 2009-2015 Martin Szulecki All Rights Reserved. |
| 6 | * Copyright (c) 2014 Nikias Bassen. All Rights Reserved. | 6 | * Copyright (c) 2014-2015 Nikias Bassen All Rights Reserved. |
| 7 | * Copyright (c) 2010 Bryan Forbes All Rights Reserved. | 7 | * Copyright (c) 2010 Bryan Forbes All Rights Reserved. |
| 8 | * Copyright (c) 2008 Zach C. All Rights Reserved. | 8 | * Copyright (c) 2008 Zach C. All Rights Reserved. |
| 9 | * | 9 | * |
| @@ -122,6 +122,14 @@ static lockdownd_error_t lockdownd_strtoerr(const char* name) | |||
| 122 | err = LOCKDOWN_E_SERVICE_PROHIBITED; | 122 | err = LOCKDOWN_E_SERVICE_PROHIBITED; |
| 123 | } else if (strcmp(name, "EscrowLocked") == 0) { | 123 | } else if (strcmp(name, "EscrowLocked") == 0) { |
| 124 | err = LOCKDOWN_E_ESCROW_LOCKED; | 124 | err = LOCKDOWN_E_ESCROW_LOCKED; |
| 125 | } else if (strcmp(name, "PairingProhibitedOverThisConnection") == 0) { | ||
| 126 | err = LOCKDOWN_E_PAIRING_PROHIBITED_OVER_THIS_CONNECTION; | ||
| 127 | } else if (strcmp(name, "FMiPProtected") == 0) { | ||
| 128 | err = LOCKDOWN_E_FMIP_PROTECTED; | ||
| 129 | } else if (strcmp(name, "MCProtected") == 0) { | ||
| 130 | err = LOCKDOWN_E_MC_PROTECTED; | ||
| 131 | } else if (strcmp(name, "MCChallengeRequired") == 0) { | ||
| 132 | err = LOCKDOWN_E_MC_CHALLENGE_REQUIRED; | ||
| 125 | } | 133 | } |
| 126 | 134 | ||
| 127 | return err; | 135 | return err; |
