summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2015-07-10 03:03:23 +0200
committerGravatar Nikias Bassen2015-07-10 03:03:23 +0200
commite1cac25e632955da0c3aeb2f16f49c5a1687f81c (patch)
tree1ed7931fc3981cd0e3e5a18fa3f4a27d0df4d767 /src
parent65def891530879ffe9b45c1ccee64a6bed1ea93f (diff)
downloadlibimobiledevice-e1cac25e632955da0c3aeb2f16f49c5a1687f81c.tar.gz
libimobiledevice-e1cac25e632955da0c3aeb2f16f49c5a1687f81c.tar.bz2
lockdown: Add more error codes
Diffstat (limited to 'src')
-rw-r--r--src/lockdown.c10
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 @@
* com.apple.mobile.lockdownd service implementation.
*
* Copyright (c) 2009-2015 Martin Szulecki All Rights Reserved.
- * Copyright (c) 2014 Nikias Bassen. All Rights Reserved.
+ * Copyright (c) 2014-2015 Nikias Bassen All Rights Reserved.
* Copyright (c) 2010 Bryan Forbes All Rights Reserved.
* Copyright (c) 2008 Zach C. All Rights Reserved.
*
@@ -122,6 +122,14 @@ static lockdownd_error_t lockdownd_strtoerr(const char* name)
err = LOCKDOWN_E_SERVICE_PROHIBITED;
} else if (strcmp(name, "EscrowLocked") == 0) {
err = LOCKDOWN_E_ESCROW_LOCKED;
+ } else if (strcmp(name, "PairingProhibitedOverThisConnection") == 0) {
+ err = LOCKDOWN_E_PAIRING_PROHIBITED_OVER_THIS_CONNECTION;
+ } else if (strcmp(name, "FMiPProtected") == 0) {
+ err = LOCKDOWN_E_FMIP_PROTECTED;
+ } else if (strcmp(name, "MCProtected") == 0) {
+ err = LOCKDOWN_E_MC_PROTECTED;
+ } else if (strcmp(name, "MCChallengeRequired") == 0) {
+ err = LOCKDOWN_E_MC_CHALLENGE_REQUIRED;
}
return err;