From e1cac25e632955da0c3aeb2f16f49c5a1687f81c Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Fri, 10 Jul 2015 03:03:23 +0200 Subject: lockdown: Add more error codes --- src/lockdown.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.1-32-gdbae