summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Updated to use latest libplist API changesNikias Bassen2023-04-211-1/+1
|
* installation_proxy: Handle BundleIDs in instproxy_client_options_addNikias Bassen2023-03-231-1/+1
| | | | | BundleIDs are passed as an array so we need to make sure it gets added as such. In fact though we just copy the node from the va_arg :)
* reverse_proxy: Fix use-after-freeNikias Bassen2023-02-211-1/+2
|
* idevice: Use more reliable version check macro for OpenSSL 3 specific thingsNikias Bassen2023-01-111-1/+1
| | | | OpenSSL versions pre 3.0 do not define OPENSSL_VERSION_MAJOR etc.
* idevice: Fix connections to <= iOS 5 devices with OpenSSL 3Nikias Bassen2023-01-111-1/+10
| | | | Thanks @tihmstar for pointing this out.
* idevice: Simplify TLS version selection code for older devicesNikias Bassen2023-01-111-6/+4
| | | | | Turns out that SSL_CTX_set_options does *not* clear options that have been set before.
* lockdown: Fix error parsing for older iOS versionsNikias Bassen2022-10-041-35/+19
| | | | | | A logical bug did prevent parsing the 'Error' node since the code path is never reached when a 'Result' node is found first. This is mitigated by always checking for the 'Error' node first.
* mobilebackup: Fix version check to allow operability with really old iOS ↵Nikias Bassen2022-10-041-2/+18
| | | | versions
* restore: Remove incorrect invocation of free() in restored_get_valueNikias Bassen2022-09-141-1/+1
| | | | | | | The free would cause a use-after-free when the plist is later freed, which eventually ends up in a crash. Thanks @TrungNguyen1909 for catching this.
* Fix iOS SDK buildKabir Oberai2022-09-041-1/+2
|
* idevice: Fix OpenSSL 3.0 internal error on read timeoutRuipu Ma2022-07-031-0/+12
|
* idevice: Restore original behavior for idevice_event_unsubscribe()Nikias Bassen2022-05-101-0/+1
| | | | | | | | | | Due to an implementation detail from the past, a call to idevice_event_unsubscribe would not cause the callback function to be called with IDEVICE_DEVICE_REMOVE events, even though originally it was planned to be that way. Due to the internal changes for the newer idevice_events_subscribe/unsubscribe API, that behavior changed and it would call the callback. Now to not break current software implementations depending on the original behavior we modify the old API to behave the same as before the change.
* instproxy: Use synchronous mode when callbacks are NULL, as documentedMarc Prud'hommeaux2022-05-091-6/+6
| | | | | | Synchronous modes for `instproxy_install`, `instproxy_upgrade`, `instproxy_uninstall`, `instproxy_archive`, `instproxy_restore`, and `instproxy_remove_archive` appear to be ignoring the documented behavior that “If NULL is passed, this function will run synchronously”. This commit fixes the advertised behavior.
* Add new idevice_events_subscribe/unsubscribe API with contextNikias Bassen2022-05-091-10/+49
| | | | | | | | The older API idevice_event_subscribe/unsubscribe can only be used by a single instance. With the addition of a context, is is now possible to register multiple callback functions in different threads. For backwards compatibility the old API will still be available for a while before being removed in a future release.
* idevicebtlogger: update for libimobiledevice-glueMatthias Ringwald2022-05-051-1/+1
|
* idevicebtlogger: Minor cleanupGeoffrey Kruse2022-05-052-1/+2
|
* idevicebtlogger: Cleanup warnings, todos and magic numbersGeoffrey Kruse2022-05-052-21/+16
|
* Initial commit of working packet logger (idevicebtlogger)Geoffrey Kruse2022-05-053-1/+273
|
* idevice: Fix sign issue in idevice_get_device_list_extendedСемён Марьясин2022-05-021-1/+1
| | | | | | In sync with idevice_from_mux_device, line 384. Without this fix, data size 128 (the common value) is treated as -128, resulting in incorrect allocation. Related to #1248 but doesn't fully fix it.
* lockdownd: Fix memory leaks in error conditionsSami Kortelainen2022-05-021-0/+3
|
* [clang-tidy] Do not use else after returnRosen Penev2022-04-309-94/+93
| | | | Signed-off-by: Rosen Penev <rosenp@gmail.com>
* [clang-tidy] Fix bugprone string compareRosen Penev2022-04-226-9/+9
| | | | | | Found with bugprone-suspicious-string-compare Signed-off-by: Rosen Penev <rosenp@gmail.com>
* [clang-tidy] add parentheses to macrosRosen Penev2022-04-223-6/+6
| | | | | | Found with bugprone-macro-parentheses Signed-off-by: Rosen Penev <rosenp@gmail.com>
* [clang-tidy] use const pointer parameterRosen Penev2022-04-221-1/+1
| | | | | | Found with readability-non-const-parameter Signed-off-by: Rosen Penev <rosenp@gmail.com>
* Fix a few inconsistent declarationsNikias Bassen2022-04-221-7/+4
|
* idevice: Fix mistreatment of 0-byte sent casesLi Beinan2022-04-221-1/+4
| | | | | | | Currently if 0 byte gets sent, it is treated as not-enough-data. This is wrong, because with TCP, 0-byte-sent usually means the receiver end is closed. We must set a new case for this and must not normalize the sent-bytes to 0 in general.
* Add property_list_client_get_service_client() and service_get_connection() ↵Nikias Bassen2022-04-122-0/+14
| | | | | | | functions This allows for custom service implementations to easier switch to non-plist communication after the service has been started.
* idevice: Fix debug message showing function name twiceNikias Bassen2022-03-291-1/+1
|
* Remove buggy and redundant debug outputBen Wagner2022-03-291-2/+0
|
* Handle connection failures in debugserver_client_receive_response; also ↵Ben Wagner2022-03-291-92/+85
| | | | simplify the code
* FormatBen Wagner2022-03-291-6/+7
|
* Fix compileBen Wagner2022-03-291-1/+1
|
* Add timeout and interrupt handling to debugserver. Fix ↵Ben Wagner2022-03-292-3/+24
| | | | debugserver_client_handle_response
* debugserver: Check return value of asprintf to eliminate compiler warningsBaodong Chen2022-03-291-6/+14
|
* reverse_proxy: Add asprintf.h include to make sure vasprintf is available on ↵Nikias Bassen2022-03-291-0/+1
| | | | Windows
* reverse_proxy: Make sure ECONNRESET and ETIMEDOUT are definedNikias Bassen2022-03-291-1/+7
|
* idevice: win32: Add winsock2.h include for struct sockaddr_storageNikias Bassen2022-03-291-4/+5
|
* idevice: Make sure ECONNREFUSED is definedNikias Bassen2022-03-291-0/+4
|
* afc: Some minor code polishingNikias Bassen2022-03-251-24/+25
|
* diagnostics_relay: Check for errors after sending requests to service connection怯花颜2022-03-011-0/+9
|
* Add support for wireless pairingNikias Bassen2022-02-095-3/+1219
|
* companion_proxy: Fix invalid argument passed to plist_dict_mergeNikias Bassen2022-02-091-1/+1
|
* service: Silence compiler warning when configured without --enable-debugNikias Bassen2022-02-041-1/+1
|
* tools: Print meaningful error messages when service startup failsNikias Bassen2022-02-041-2/+2
|
* Add Reverse Proxy implementationNikias Bassen2021-11-243-0/+850
|
* idevice: Add IDEVICE_E_CONNREFUSED and have idevice_connect() return ↵Nikias Bassen2021-10-121-2/+17
| | | | | | | | meaningful error codes This allows clients to properly detect that a connection to the requested port failed because it is not open on the device, instead of just returning an "unknown error"
* Check availability of constructor attribute and use it on Windows in favor ↵Nikias Bassen2021-09-131-10/+18
| | | | of DllMain
* pkgconfig: Fix libimobiledevice-glue dependency in .pc fileNikias Bassen2021-09-061-1/+1
|
* Updated pkg-config file with libimobiledevice-glue dependencyNikias Bassen2021-09-011-1/+1
|
* Remove common code in favor of new libimobiledevice-glueNikias Bassen2021-09-0113-13/+16
|