37 Commits

Author SHA1 Message Date
Nikias Bassen 82c858ed25 Move IDEVICE_ACTIVATION_API to public header 2024-12-02 06:36:29 +01:00
Nikias Bassen 5235448cea Change WIN32 to _WIN32 to check if running on Windows 2024-12-02 06:25:35 +01:00
Nikias Bassen 51c313dda2 Switch to better initializer strategy 2024-12-02 06:18:15 +01:00
Nikias Bassen 75505b7581 Update UserAgent string to use a more recent MobileActivation version 2022-04-05 01:25:18 +02:00
Jacek Roszkowski 8ba05c3dd6 Define strncasecmp function as _strnicmp on Windows. 2021-11-14 01:06:12 +01:00
Jacek Roszkowski 8b692d697f The type, subtype, and parameter name tokens of Content-Type header are case-insensitive.
https://tools.ietf.org/html/rfc7231#section-3.1.1.1
2021-11-14 01:06:12 +01:00
Jacek Roszkowski 89bd4655d0 Header field names are case-insensitive.
https://tools.ietf.org/html/rfc7230#section-3.2
2021-11-14 01:06:12 +01:00
Nikias Bassen 6cc8d697ad Check availability of constructor attribute and use it on Windows in favor of DllMain 2021-09-20 01:06:27 +02:00
Nikias Bassen 7f618a50bc Add API version to library and pkgconfig file for proper linking 2020-06-14 23:39:34 +02:00
Nikias Bassen d82ec1df22 Update libplist and libimobiledevice version requirements 2020-06-09 03:53:33 +02:00
Martin Szulecki 36123e96ac Remove trailing whitespace errors from all files 2020-06-08 23:01:49 +02:00
Martin Szulecki b668fc1e0c Unfold automake variables into multiple lines for maintainability 2020-06-08 21:59:19 +02:00
Nikias Bassen b7deab3aad Updated copyright headers 2019-01-27 05:33:54 +01:00
Nikias Bassen 3100d735cf activation: Make sure to get IMSI and ICCID from lockdownd
For some reason, asking lockdownd for 'InternationalMobileSubscriberIdentity'
sometimes returns "MissingValue", even though ideviceinfo (without passing a
key) shows it.
This commit changes the code to get the whole lockdownd 'NULL domain' info
(equivalent to ideviceinfo without specifying any key) and parse the required
info from there.
2019-01-27 04:42:17 +01:00
Nikias Bassen 7a66710a5c win32: Avoid version numbers in dll names 2019-01-27 04:13:06 +01:00
Nikias Bassen 0a1116c222 win32: Make thread_once() static to silence compiler warning 2019-01-27 04:01:27 +01:00
Nikias Bassen ff37642ad8 activation: Fix parsing of description from buddyml response 2019-01-27 03:00:52 +01:00
Nikias Bassen 4481d1be86 activation: Add API calls to query if an input field is secure and to get its placeholder 2019-01-27 02:39:20 +01:00
Nikias Bassen 7010311d13 activation: Set CURLOPT_FOLLOWLOCATION to handle 302 redirects from Apples activation server 2018-05-17 16:56:17 +02:00
Nikias Bassen 53ace7d7cd activation: Store the response headers and provide helper function to retrieve them 2017-12-07 16:52:58 +07:00
Nikias Bassen 8ea69a6230 activation: Return activation record as PLIST_DATA to keep it exactly as received from the activation server 2017-12-07 16:37:49 +07:00
BALATON Zoltan 260f751a42 activation: Simplify plist_strip_xml() by removing some unnecessary operations 2017-07-14 12:22:52 +02:00
BALATON Zoltan 260eec04d5 activation: Fix wrong argument check of plist_strip_xml()
This also fixes a potential segfault when xmlplist is NULL and adds
check for failing to allocate memory.
2017-07-14 12:22:43 +02:00
BALATON Zoltan a6716658c5 activation: Remove unreachable goto after return 2017-07-13 01:55:56 +02:00
BALATON Zoltan daa8ca483e activation: Simplify very long conditional expressions 2017-07-13 01:53:16 +02:00
BALATON Zoltan ae905b1809 activation: Improve code readability by removing unnecessary conditionals 2017-07-13 01:51:09 +02:00
Nikias Bassen 1535df6c22 activation: Also print HTTP body data when communication debugging is requested 2017-07-10 02:59:27 +02:00
Nikias Bassen b546ef8938 activation: Close connection after completing request 2017-07-10 02:58:45 +02:00
Nikias Bassen 13ebed1f1f activation: Add support for drmHandshake requests 2017-07-04 04:11:02 +02:00
Nikias Bassen 5a8f9e40ac activation: Add sanity checks for input parameters of API 2017-07-04 04:06:26 +02:00
Nikias Bassen 4cebc98967 activation: Make sure response content is 0-terminated 2017-07-04 03:40:47 +02:00
Nikias Bassen b7e78e276b Make sure to only globally init/deinit libcurl upon library load/unload
Up until now libcurl was initialized/deinitialized every time a request
was sent. However curl_global_cleanup() also affects other libraries'
code so that e.g. OpenSSL-related functions could fail.
2017-07-04 03:33:11 +02:00
Nikias Bassen 441773dd71 activation: Fix logical not vs. value comparison, silencing compiler warning 2016-07-01 02:00:54 +02:00
Martin Szulecki e489021628 Move pkg-config file into src directory 2015-01-29 14:52:13 +01:00
Martin Szulecki 14a1c08bb0 Prevent output of a few error messages that are actually not critical 2014-11-30 17:50:58 +01:00
Martin Szulecki 8978fd090b Avoid exporting non-public symbols 2014-10-03 16:01:38 +02:00
Martin Szulecki b3853fb76f Initial commit for version 0.9.0 2014-06-30 19:25:13 +02:00