diff options
author | Nikias Bassen | 2019-09-27 12:52:03 +0200 |
---|---|---|
committer | Nikias Bassen | 2019-09-27 12:52:03 +0200 |
commit | 8f96c52de2f9f35f361d29095190fc673db7d1c1 (patch) | |
tree | 991b5f37ed8c504b2f77a8d0afc22182afbd340c /src/mobilebackup2.c | |
parent | acf0a76be3c81a8ce69817af2b16a546a08f7ecb (diff) | |
download | libimobiledevice-8f96c52de2f9f35f361d29095190fc673db7d1c1.tar.gz libimobiledevice-8f96c52de2f9f35f361d29095190fc673db7d1c1.tar.bz2 |
Make sure to handle timeout errors in device link service and all depending services
Diffstat (limited to 'src/mobilebackup2.c')
-rw-r--r-- | src/mobilebackup2.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mobilebackup2.c b/src/mobilebackup2.c index 08ce22b..e7cc581 100644 --- a/src/mobilebackup2.c +++ b/src/mobilebackup2.c @@ -2,7 +2,7 @@ * mobilebackup2.c * Contains functions for the built-in MobileBackup2 client (iOS4+ only) * - * Copyright (c) 2010 Nikias Bassen All Rights Reserved. + * Copyright (c) 2010-2019 Nikias Bassen, All Rights Reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -53,6 +53,10 @@ static mobilebackup2_error_t mobilebackup2_error(device_link_service_error_t err return MOBILEBACKUP2_E_PLIST_ERROR; case DEVICE_LINK_SERVICE_E_MUX_ERROR: return MOBILEBACKUP2_E_MUX_ERROR; + case DEVICE_LINK_SERVICE_E_SSL_ERROR: + return MOBILEBACKUP2_E_SSL_ERROR; + case DEVICE_LINK_SERVICE_E_RECEIVE_TIMEOUT: + return MOBILEBACKUP2_E_RECEIVE_TIMEOUT; case DEVICE_LINK_SERVICE_E_BAD_VERSION: return MOBILEBACKUP2_E_BAD_VERSION; default: |