diff options
| author | 2015-07-10 03:03:23 +0200 | |
|---|---|---|
| committer | 2015-07-10 03:03:23 +0200 | |
| commit | e1cac25e632955da0c3aeb2f16f49c5a1687f81c (patch) | |
| tree | 1ed7931fc3981cd0e3e5a18fa3f4a27d0df4d767 /src/lockdown.c | |
| parent | 65def891530879ffe9b45c1ccee64a6bed1ea93f (diff) | |
| download | libimobiledevice-e1cac25e632955da0c3aeb2f16f49c5a1687f81c.tar.gz libimobiledevice-e1cac25e632955da0c3aeb2f16f49c5a1687f81c.tar.bz2 | |
lockdown: Add more error codes
Diffstat (limited to 'src/lockdown.c')
| -rw-r--r-- | src/lockdown.c | 10 |
1 files changed, 9 insertions, 1 deletions
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; |
