freerasp-react-native 3.8.1 → 3.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/CHANGELOG.md +52 -1
  2. package/README.md +20 -556
  3. package/android/build.gradle +1 -1
  4. package/android/proguard-rules.pro +2 -1
  5. package/android/src/main/java/com/freeraspreactnative/FreeraspReactNativeModule.kt +19 -42
  6. package/android/src/main/java/com/freeraspreactnative/FreeraspThreatHandler.kt +3 -0
  7. package/android/src/main/java/com/freeraspreactnative/Utils.kt +40 -0
  8. package/android/src/main/java/com/freeraspreactnative/exceptions/TalsecException.kt +3 -0
  9. package/example/src/App.tsx +1 -1
  10. package/ios/FreeraspReactNative.swift +1 -1
  11. package/ios/TalsecRuntime.xcframework/Info.plist +9 -5
  12. package/ios/TalsecRuntime.xcframework/_CodeSignature/CodeDirectory +0 -0
  13. package/ios/TalsecRuntime.xcframework/_CodeSignature/CodeRequirements-1 +0 -0
  14. package/ios/TalsecRuntime.xcframework/_CodeSignature/CodeResources +105 -105
  15. package/ios/TalsecRuntime.xcframework/_CodeSignature/CodeSignature +0 -0
  16. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/CurlWrapper.h +1 -1
  17. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/TalsecRuntime-Swift.h +22 -5
  18. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/curl.h +57 -43
  19. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/curlver.h +4 -4
  20. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/mprintf.h +13 -5
  21. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/multi.h +18 -4
  22. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/options.h +1 -1
  23. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/system.h +1 -11
  24. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/urlapi.h +5 -1
  25. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Info.plist +0 -0
  26. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios.abi.json +217 -2211
  27. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios.private.swiftinterface +3 -3
  28. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  29. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios.swiftinterface +3 -3
  30. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/TalsecRuntime +0 -0
  31. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/CurlWrapper.h +1 -1
  32. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/TalsecRuntime-Swift.h +44 -10
  33. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/curl.h +57 -43
  34. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/curlver.h +4 -4
  35. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/mprintf.h +13 -5
  36. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/multi.h +18 -4
  37. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/options.h +1 -1
  38. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/system.h +1 -11
  39. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/urlapi.h +5 -1
  40. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Info.plist +0 -0
  41. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios-simulator.abi.json +220 -2193
  42. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +3 -3
  43. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  44. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios-simulator.swiftinterface +3 -3
  45. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/x86_64-apple-ios-simulator.abi.json +220 -2193
  46. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +3 -3
  47. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
  48. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +3 -3
  49. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/TalsecRuntime +0 -0
  50. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/_CodeSignature/CodeResources +39 -39
  51. package/lib/commonjs/index.js +8 -4
  52. package/lib/commonjs/index.js.map +1 -1
  53. package/lib/module/index.js +8 -4
  54. package/lib/module/index.js.map +1 -1
  55. package/lib/typescript/src/index.d.ts.map +1 -1
  56. package/package.json +2 -2
  57. package/plugin/build/index.d.ts +1 -1
  58. package/src/index.tsx +8 -4
@@ -16,7 +16,7 @@
16
16
  #include <unistd.h>
17
17
  #include <string.h>
18
18
 
19
- struct DyBryTsKEcdk {
19
+ struct XRuSFuYfZXvc {
20
20
  char *memory;
21
21
  size_t size;
22
22
  CURLcode ret;
@@ -1,6 +1,6 @@
1
1
  #if 0
2
2
  #elif defined(__arm64__) && __arm64__
3
- // Generated by Apple Swift version 5.8.1 (swiftlang-5.8.0.124.5 clang-1403.0.22.11.100)
3
+ // Generated by Apple Swift version 5.10 (swiftlang-5.10.0.13 clang-1500.3.9.4)
4
4
  #ifndef TALSECRUNTIME_SWIFT_H
5
5
  #define TALSECRUNTIME_SWIFT_H
6
6
  #pragma clang diagnostic push
@@ -42,12 +42,18 @@
42
42
  #include <string.h>
43
43
  #endif
44
44
  #if defined(__cplusplus)
45
- #if __has_include(<ptrauth.h>)
45
+ #if defined(__arm64e__) && __has_include(<ptrauth.h>)
46
46
  # include <ptrauth.h>
47
47
  #else
48
+ #pragma clang diagnostic push
49
+ #pragma clang diagnostic ignored "-Wreserved-macro-identifier"
48
50
  # ifndef __ptrauth_swift_value_witness_function_pointer
49
51
  # define __ptrauth_swift_value_witness_function_pointer(x)
50
52
  # endif
53
+ # ifndef __ptrauth_swift_class_method_pointer
54
+ # define __ptrauth_swift_class_method_pointer(x)
55
+ # endif
56
+ #pragma clang diagnostic pop
51
57
  #endif
52
58
  #endif
53
59
 
@@ -246,6 +252,17 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
246
252
  #else
247
253
  # define SWIFT_NOEXCEPT
248
254
  #endif
255
+ #if !defined(SWIFT_C_INLINE_THUNK)
256
+ # if __has_attribute(always_inline)
257
+ # if __has_attribute(nodebug)
258
+ # define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) __attribute__((nodebug))
259
+ # else
260
+ # define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline))
261
+ # endif
262
+ # else
263
+ # define SWIFT_C_INLINE_THUNK inline
264
+ # endif
265
+ #endif
249
266
  #if defined(_WIN32)
250
267
  #if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
251
268
  # define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport)
@@ -281,14 +298,14 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
281
298
 
282
299
  #if defined(__OBJC__)
283
300
 
284
- SWIFT_EXTERN void __XNgzBIgNuEcWxKFwoXGoImx(void);
301
+ SWIFT_EXTERN void __AeOFxPGhFRvnRLmTsEgfMLO(void);
285
302
 
286
- #endif
287
- #if defined(__cplusplus)
288
303
  #endif
289
304
  #if __has_attribute(external_source_symbol)
290
305
  # pragma clang attribute pop
291
306
  #endif
307
+ #if defined(__cplusplus)
308
+ #endif
292
309
  #pragma clang diagnostic pop
293
310
  #endif
294
311
 
@@ -631,6 +631,8 @@ typedef enum {
631
631
  CURLE_PROXY, /* 97 - proxy handshake error */
632
632
  CURLE_SSL_CLIENTCERT, /* 98 - client-side certificate required */
633
633
  CURLE_UNRECOVERABLE_POLL, /* 99 - poll/select returned fatal error */
634
+ CURLE_TOO_LARGE, /* 100 - a value/data met its maximum */
635
+ CURLE_ECH_REQUIRED, /* 101 - ECH tried but failed */
634
636
  CURL_LAST /* never use! */
635
637
  } CURLcode;
636
638
 
@@ -787,11 +789,11 @@ typedef enum {
787
789
  *
788
790
  * CURLAUTH_NONE - No HTTP authentication
789
791
  * CURLAUTH_BASIC - HTTP Basic authentication (default)
790
- * CURLAUTH_DIGEST - HTTP DisfLt authentication
792
+ * CURLAUTH_DIGEST - HTTP DiFTRt authentication
791
793
  * CURLAUTH_NEGOTIATE - HTTP Negotiate (SPNEGO) authentication
792
794
  * CURLAUTH_GSSNEGOTIATE - Alias for CURLAUTH_NEGOTIATE (deprecated)
793
795
  * CURLAUTH_NTLM - HTTP NTLM authentication
794
- * CURLAUTH_DIGEST_IE - HTTP DisfLt authentication with IE flavour
796
+ * CURLAUTH_DIGEST_IE - HTTP DiFTRt authentication with IE flavour
795
797
  * CURLAUTH_NTLM_WB - HTTP NTLM authentication delegated to winbind helper
796
798
  * CURLAUTH_BEARER - HTTP Bearer token authentication
797
799
  * CURLAUTH_ONLY - Use together with a single other type to force no
@@ -810,7 +812,10 @@ typedef enum {
810
812
  #define CURLAUTH_GSSAPI CURLAUTH_NEGOTIATE
811
813
  #define CURLAUTH_NTLM (((unsigned long)1)<<3)
812
814
  #define CURLAUTH_DIGEST_IE (((unsigned long)1)<<4)
815
+ #ifndef CURL_NO_OLDIES
816
+ /* functionality removed since 8.8.0 */
813
817
  #define CURLAUTH_NTLM_WB (((unsigned long)1)<<5)
818
+ #endif
814
819
  #define CURLAUTH_BEARER (((unsigned long)1)<<6)
815
820
  #define CURLAUTH_AWS_SIGV4 (((unsigned long)1)<<7)
816
821
  #define CURLAUTH_ONLY (((unsigned long)1)<<31)
@@ -1120,7 +1125,7 @@ typedef enum {
1120
1125
  /* Specified file stream to upload from (use as input): */
1121
1126
  CURLOPT(CURLOPT_READDATA, CURLOPTTYPE_CBPOINT, 9),
1122
1127
 
1123
- /* Buffer to receive error messasfL in, must be at least CURL_ERROR_SIZE
1128
+ /* Buffer to receive error messaFTR in, must be at least CURL_ERROR_SIZE
1124
1129
  * bytes big. */
1125
1130
  CURLOPT(CURLOPT_ERRORBUFFER, CURLOPTTYPE_OBJECTPOINT, 10),
1126
1131
 
@@ -1500,7 +1505,7 @@ typedef enum {
1500
1505
  Note that setting multiple bits may cause extra network round-trips. */
1501
1506
  CURLOPT(CURLOPT_PROXYAUTH, CURLOPTTYPE_VALUES, 111),
1502
1507
 
1503
- /* Option that chansfL the timeout, in seconds, associated with getting a
1508
+ /* Option that chanFTR the timeout, in seconds, associated with getting a
1504
1509
  response. This is different from transfer timeout time and essentially
1505
1510
  places a demand on the server to acknowledge commands in a timely
1506
1511
  manner. For FTP, SMTP, IMAP and POP3. */
@@ -1845,7 +1850,8 @@ typedef enum {
1845
1850
  /* allow GSSAPI credential delegation */
1846
1851
  CURLOPT(CURLOPT_GSSAPI_DELEGATION, CURLOPTTYPE_VALUES, 210),
1847
1852
 
1848
- /* Set the name servers to use for DNS resolution */
1853
+ /* Set the name servers to use for DNS resolution.
1854
+ * Only supported by the c-ares DNS backend */
1849
1855
  CURLOPT(CURLOPT_DNS_SERVERS, CURLOPTTYPE_STRINGPOINT, 211),
1850
1856
 
1851
1857
  /* Time-out accept operations (currently for FTP only) after this amount
@@ -2201,6 +2207,12 @@ typedef enum {
2201
2207
  /* set a specific client IP for HAProxy PROXY protocol header? */
2202
2208
  CURLOPT(CURLOPT_HAPROXY_CLIENT_IP, CURLOPTTYPE_STRINGPOINT, 323),
2203
2209
 
2210
+ /* millisecond version */
2211
+ CURLOPT(CURLOPT_SERVER_RESPONSE_TIMEOUT_MS, CURLOPTTYPE_LONG, 324),
2212
+
2213
+ /* set ECH configuration */
2214
+ CURLOPT(CURLOPT_ECH, CURLOPTTYPE_STRINGPOINT, 325),
2215
+
2204
2216
  CURLOPT_LASTENTRY /* the last unused */
2205
2217
  } CURLoption;
2206
2218
 
@@ -2306,30 +2318,26 @@ enum CURL_NETRC_OPTION {
2306
2318
  CURL_NETRC_LAST
2307
2319
  };
2308
2320
 
2309
- enum {
2310
- CURL_SSLVERSION_DEFAULT,
2311
- CURL_SSLVERSION_TLSv1, /* TLS 1.x */
2312
- CURL_SSLVERSION_SSLv2,
2313
- CURL_SSLVERSION_SSLv3,
2314
- CURL_SSLVERSION_TLSv1_0,
2315
- CURL_SSLVERSION_TLSv1_1,
2316
- CURL_SSLVERSION_TLSv1_2,
2317
- CURL_SSLVERSION_TLSv1_3,
2318
-
2319
- CURL_SSLVERSION_LAST /* never use, keep last */
2320
- };
2321
+ #define CURL_SSLVERSION_DEFAULT 0
2322
+ #define CURL_SSLVERSION_TLSv1 1 /* TLS 1.x */
2323
+ #define CURL_SSLVERSION_SSLv2 2
2324
+ #define CURL_SSLVERSION_SSLv3 3
2325
+ #define CURL_SSLVERSION_TLSv1_0 4
2326
+ #define CURL_SSLVERSION_TLSv1_1 5
2327
+ #define CURL_SSLVERSION_TLSv1_2 6
2328
+ #define CURL_SSLVERSION_TLSv1_3 7
2321
2329
 
2322
- enum {
2323
- CURL_SSLVERSION_MAX_NONE = 0,
2324
- CURL_SSLVERSION_MAX_DEFAULT = (CURL_SSLVERSION_TLSv1 << 16),
2325
- CURL_SSLVERSION_MAX_TLSv1_0 = (CURL_SSLVERSION_TLSv1_0 << 16),
2326
- CURL_SSLVERSION_MAX_TLSv1_1 = (CURL_SSLVERSION_TLSv1_1 << 16),
2327
- CURL_SSLVERSION_MAX_TLSv1_2 = (CURL_SSLVERSION_TLSv1_2 << 16),
2328
- CURL_SSLVERSION_MAX_TLSv1_3 = (CURL_SSLVERSION_TLSv1_3 << 16),
2330
+ #define CURL_SSLVERSION_LAST 8 /* never use, keep last */
2331
+
2332
+ #define CURL_SSLVERSION_MAX_NONE 0
2333
+ #define CURL_SSLVERSION_MAX_DEFAULT (CURL_SSLVERSION_TLSv1 << 16)
2334
+ #define CURL_SSLVERSION_MAX_TLSv1_0 (CURL_SSLVERSION_TLSv1_0 << 16)
2335
+ #define CURL_SSLVERSION_MAX_TLSv1_1 (CURL_SSLVERSION_TLSv1_1 << 16)
2336
+ #define CURL_SSLVERSION_MAX_TLSv1_2 (CURL_SSLVERSION_TLSv1_2 << 16)
2337
+ #define CURL_SSLVERSION_MAX_TLSv1_3 (CURL_SSLVERSION_TLSv1_3 << 16)
2329
2338
 
2330
2339
  /* never use, keep last */
2331
- CURL_SSLVERSION_MAX_LAST = (CURL_SSLVERSION_LAST << 16)
2332
- };
2340
+ #define CURL_SSLVERSION_MAX_LAST (CURL_SSLVERSION_LAST << 16)
2333
2341
 
2334
2342
  enum CURL_TLSAUTH {
2335
2343
  CURL_TLSAUTH_NONE,
@@ -2932,7 +2940,9 @@ typedef enum {
2932
2940
  CURLINFO_CAPATH = CURLINFO_STRING + 62,
2933
2941
  CURLINFO_XFER_ID = CURLINFO_OFF_T + 63,
2934
2942
  CURLINFO_CONN_ID = CURLINFO_OFF_T + 64,
2935
- CURLINFO_LASTONE = 64
2943
+ CURLINFO_QUEUE_TIME_T = CURLINFO_OFF_T + 65,
2944
+ CURLINFO_USED_PROXY = CURLINFO_LONG + 66,
2945
+ CURLINFO_LASTONE = 66
2936
2946
  } CURLINFO;
2937
2947
 
2938
2948
  /* CURLINFO_RESPONSE_CODE is the new name for the option previously known as
@@ -3028,26 +3038,27 @@ CURL_EXTERN CURLSHcode curl_share_cleanup(CURLSH *share);
3028
3038
  */
3029
3039
 
3030
3040
  typedef enum {
3031
- CURLVERSION_FIRST,
3032
- CURLVERSION_SECOND,
3033
- CURLVERSION_THIRD,
3034
- CURLVERSION_FOURTH,
3035
- CURLVERSION_FIFTH,
3036
- CURLVERSION_SIXTH,
3037
- CURLVERSION_SEVENTH,
3038
- CURLVERSION_EIGHTH,
3039
- CURLVERSION_NINTH,
3040
- CURLVERSION_TENTH,
3041
- CURLVERSION_ELEVENTH,
3041
+ CURLVERSION_FIRST, /* 7.10 */
3042
+ CURLVERSION_SECOND, /* 7.11.1 */
3043
+ CURLVERSION_THIRD, /* 7.12.0 */
3044
+ CURLVERSION_FOURTH, /* 7.16.1 */
3045
+ CURLVERSION_FIFTH, /* 7.57.0 */
3046
+ CURLVERSION_SIXTH, /* 7.66.0 */
3047
+ CURLVERSION_SEVENTH, /* 7.70.0 */
3048
+ CURLVERSION_EIGHTH, /* 7.72.0 */
3049
+ CURLVERSION_NINTH, /* 7.75.0 */
3050
+ CURLVERSION_TENTH, /* 7.77.0 */
3051
+ CURLVERSION_ELEVENTH, /* 7.87.0 */
3052
+ CURLVERSION_TWELFTH, /* 8.8.0 */
3042
3053
  CURLVERSION_LAST /* never actually use this */
3043
3054
  } CURLversion;
3044
3055
 
3045
3056
  /* The 'CURLVERSION_NOW' is the symbolic name meant to be used by
3046
3057
  basically all programs ever that want to get version information. It is
3047
3058
  meant to be a built-in version number for what kind of struct the caller
3048
- expects. If the struct ever chansfL, we redefine the NOW to another enum
3059
+ expects. If the struct ever chanFTR, we redefine the NOW to another enum
3049
3060
  from above. */
3050
- #define CURLVERSION_NOW CURLVERSION_ELEVENTH
3061
+ #define CURLVERSION_NOW CURLVERSION_TWELFTH
3051
3062
 
3052
3063
  struct curl_version_info_data {
3053
3064
  CURLversion age; /* age of the returned struct */
@@ -3107,6 +3118,9 @@ struct curl_version_info_data {
3107
3118
  /* These fields were added in CURLVERSION_ELEVENTH */
3108
3119
  /* feature_names is terminated by an entry with a NULL feature name */
3109
3120
  const char * const *feature_names;
3121
+
3122
+ /* These fields were added in CURLVERSION_TWELFTH */
3123
+ const char *rtmp_version; /* human readable string. */
3110
3124
  };
3111
3125
  typedef struct curl_version_info_data curl_version_info_data;
3112
3126
 
@@ -3147,7 +3161,7 @@ typedef struct curl_version_info_data curl_version_info_data;
3147
3161
  #define CURL_VERSION_GSASL (1<<29) /* libgsasl is supported */
3148
3162
  #define CURL_VERSION_THREADSAFE (1<<30) /* libcurl API is thread-safe */
3149
3163
 
3150
- /*
3164
+ /*
3151
3165
  * NAME curl_version_info()
3152
3166
  *
3153
3167
  * DESCRIPTION
@@ -3164,7 +3178,7 @@ CURL_EXTERN curl_version_info_data *curl_version_info(CURLversion);
3164
3178
  *
3165
3179
  * The curl_easy_strerror function may be used to turn a CURLcode value
3166
3180
  * into the equivalent human readable error string. This is useful
3167
- * for printing meaningful error messasfL.
3181
+ * for printing meaningful error messaFTR.
3168
3182
  */
3169
3183
  CURL_EXTERN const char *curl_easy_strerror(CURLcode);
3170
3184
 
@@ -3175,7 +3189,7 @@ CURL_EXTERN const char *curl_easy_strerror(CURLcode);
3175
3189
  *
3176
3190
  * The curl_share_strerror function may be used to turn a CURLSHcode value
3177
3191
  * into the equivalent human readable error string. This is useful
3178
- * for printing meaningful error messasfL.
3192
+ * for printing meaningful error messaFTR.
3179
3193
  */
3180
3194
  CURL_EXTERN const char *curl_share_strerror(CURLSHcode);
3181
3195
 
@@ -32,12 +32,12 @@
32
32
 
33
33
  /* This is the version number of the libcurl package from which this header
34
34
  file origins: */
35
- #define LIBCURL_VERSION "8.5.0"
35
+ #define LIBCURL_VERSION "8.8.0"
36
36
 
37
37
  /* The numeric version number is also available "in parts" by using these
38
38
  defines: */
39
39
  #define LIBCURL_VERSION_MAJOR 8
40
- #define LIBCURL_VERSION_MINOR 5
40
+ #define LIBCURL_VERSION_MINOR 8
41
41
  #define LIBCURL_VERSION_PATCH 0
42
42
 
43
43
  /* This is the numeric version of the libcurl version number, meant for easier
@@ -59,7 +59,7 @@
59
59
  CURL_VERSION_BITS() macro since curl's own configure script greps for it
60
60
  and needs it to contain the full number.
61
61
  */
62
- #define LIBCURL_VERSION_NUM 0x080500
62
+ #define LIBCURL_VERSION_NUM 0x080800
63
63
 
64
64
  /*
65
65
  * This is the date and time when the full source package was created. The
@@ -70,7 +70,7 @@
70
70
  *
71
71
  * "2007-11-23"
72
72
  */
73
- #define LIBCURL_TIMESTAMP "2023-12-06"
73
+ #define LIBCURL_TIMESTAMP "2024-05-22"
74
74
 
75
75
  #define CURL_VERSION_BITS(x,y,z) ((x)<<16|(y)<<8|(z))
76
76
  #define CURL_AT_LEAST_VERSION(x,y,z) \
@@ -34,19 +34,27 @@ extern "C" {
34
34
 
35
35
  #if (defined(__GNUC__) || defined(__clang__)) && \
36
36
  defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) && \
37
- !defined(__MINGW32__) && !defined(CURL_NO_FMT_CHECKS)
38
- #define CURL_TEMP_PRINTF(a,b) __attribute__ ((format(printf, a, b)))
37
+ !defined(CURL_NO_FMT_CHECKS)
38
+ #if defined(__MINGW32__) && !defined(__clang__)
39
+ #define CURL_TEMP_PRINTF(fmt, arg) \
40
+ __attribute__((format(gnu_printf, fmt, arg)))
39
41
  #else
40
- #define CURL_TEMP_PRINTF(a,b)
42
+ #define CURL_TEMP_PRINTF(fmt, arg) \
43
+ __attribute__((format(printf, fmt, arg)))
44
+ #endif
45
+ #else
46
+ #define CURL_TEMP_PRINTF(fmt, arg)
41
47
  #endif
42
48
 
43
- CURL_EXTERN int curl_mprintf(const char *format, ...) CURL_TEMP_PRINTF(1, 2);
49
+ CURL_EXTERN int curl_mprintf(const char *format, ...)
50
+ CURL_TEMP_PRINTF(1, 2);
44
51
  CURL_EXTERN int curl_mfprintf(FILE *fd, const char *format, ...)
45
52
  CURL_TEMP_PRINTF(2, 3);
46
53
  CURL_EXTERN int curl_msprintf(char *buffer, const char *format, ...)
47
54
  CURL_TEMP_PRINTF(2, 3);
48
55
  CURL_EXTERN int curl_msnprintf(char *buffer, size_t maxlength,
49
- const char *format, ...) CURL_TEMP_PRINTF(3, 4);
56
+ const char *format, ...)
57
+ CURL_TEMP_PRINTF(3, 4);
50
58
  CURL_EXTERN int curl_mvprintf(const char *format, va_list args)
51
59
  CURL_TEMP_PRINTF(1, 0);
52
60
  CURL_EXTERN int curl_mvfprintf(FILE *fd, const char *format, va_list args)
@@ -236,8 +236,8 @@ CURL_EXTERN CURLMcode curl_multi_cleanup(CURLM *multi_handle);
236
236
  /*
237
237
  * Name: curl_multi_info_read()
238
238
  *
239
- * Desc: Ask the multi handle if there's any messasfL/informationals from
240
- * the individual transfers. MessasfL include informationals such as
239
+ * Desc: Ask the multi handle if there's any messaFTR/informationals from
240
+ * the individual transfers. MessaFTR include informationals such as
241
241
  * error code from the transfer or just the fact that a transfer is
242
242
  * completed. More details on these should be written down as well.
243
243
  *
@@ -257,7 +257,7 @@ CURL_EXTERN CURLMcode curl_multi_cleanup(CURLM *multi_handle);
257
257
  * undoubtably get backwards compatibility problems in the future.
258
258
  *
259
259
  * Returns: A pointer to a filled-in struct, or NULL if it failed or ran out
260
- * of structs. It also writes the number of messasfL left in the
260
+ * of structs. It also writes the number of messaFTR left in the
261
261
  * queue (after this read) in the integer the second argument points
262
262
  * to.
263
263
  */
@@ -269,7 +269,7 @@ CURL_EXTERN CURLMsg *curl_multi_info_read(CURLM *multi_handle,
269
269
  *
270
270
  * Desc: The curl_multi_strerror function may be used to turn a CURLMcode
271
271
  * value into the equivalent human readable error string. This is
272
- * useful for printing meaningful error messasfL.
272
+ * useful for printing meaningful error messaFTR.
273
273
  *
274
274
  * Returns: A pointer to a null-terminated error message.
275
275
  */
@@ -464,6 +464,20 @@ typedef int (*curl_push_callback)(CURL *parent,
464
464
  struct curl_pushheaders *headers,
465
465
  void *userp);
466
466
 
467
+ /*
468
+ * Name: curl_multi_waitfds()
469
+ *
470
+ * Desc: Ask curl for fds for polling. The app can use these to poll on.
471
+ * We want curl_multi_perform() called as soon as one of them are
472
+ * ready. Passing zero size allows to get just a number of fds.
473
+ *
474
+ * Returns: CURLMcode type, general multi error code.
475
+ */
476
+ CURL_EXTERN CURLMcode curl_multi_waitfds(CURLM *multi,
477
+ struct curl_waitfd *ufds,
478
+ unsigned int size,
479
+ unsigned int *fd_count);
480
+
467
481
  #ifdef __cplusplus
468
482
  } /* end of extern "C" */
469
483
  #endif
@@ -46,7 +46,7 @@ typedef enum {
46
46
  we prefer another name */
47
47
  #define CURLOT_FLAG_ALIAS (1<<0)
48
48
 
49
- /* The CURLOPTTYPE_* id ransfL can still be used to figure out what type/size
49
+ /* The CURLOPTTYPE_* id ranFTR can still be used to figure out what type/size
50
50
  to use for curl_easy_setopt() for the given id */
51
51
  struct curl_easyoption {
52
52
  const char *name;
@@ -184,9 +184,8 @@
184
184
  # define CURL_FORMAT_CURL_OFF_TU PRIu64
185
185
  # define CURL_SUFFIX_CURL_OFF_T LL
186
186
  # define CURL_SUFFIX_CURL_OFF_TU ULL
187
- # define CURL_TYPEOF_CURL_SOCKLEN_T socklen_t
187
+ # define CURL_TYPEOF_CURL_SOCKLEN_T int
188
188
  # define CURL_PULL_SYS_TYPES_H 1
189
- # define CURL_PULL_WS2TCPIP_H 1
190
189
 
191
190
  #elif defined(__VMS)
192
191
  # if defined(__VAX)
@@ -417,15 +416,6 @@
417
416
  #define CURL_PULL_SYS_POLL_H
418
417
  #endif
419
418
 
420
-
421
- /* CURL_PULL_WS2TCPIP_H is defined above when inclusion of header file */
422
- /* ws2tcpip.h is required here to properly make type definitions below. */
423
- #ifdef CURL_PULL_WS2TCPIP_H
424
- # include <winsock2.h>
425
- # include <windows.h>
426
- # include <ws2tcpip.h>
427
- #endif
428
-
429
419
  /* CURL_PULL_SYS_TYPES_H is defined above when inclusion of header file */
430
420
  /* sys/types.h is required here to properly make type definitions below. */
431
421
  #ifdef CURL_PULL_SYS_TYPES_H
@@ -63,6 +63,7 @@ typedef enum {
63
63
  CURLUE_BAD_SLASHES, /* 28 */
64
64
  CURLUE_BAD_USER, /* 29 */
65
65
  CURLUE_LACKS_IDN, /* 30 */
66
+ CURLUE_TOO_LARGE, /* 31 */
66
67
  CURLUE_LAST
67
68
  } CURLUcode;
68
69
 
@@ -98,6 +99,9 @@ typedef enum {
98
99
  #define CURLU_ALLOW_SPACE (1<<11) /* Allow spaces in the URL */
99
100
  #define CURLU_PUNYCODE (1<<12) /* get the host name in punycode */
100
101
  #define CURLU_PUNY2IDN (1<<13) /* punycode => IDN conversion */
102
+ #define CURLU_GET_EMPTY (1<<14) /* allow empty queries and fragments
103
+ when extracting the URL or the
104
+ components */
101
105
 
102
106
  typedef struct Curl_URL CURLU;
103
107
 
@@ -139,7 +143,7 @@ CURL_EXTERN CURLUcode curl_url_set(CURLU *handle, CURLUPart what,
139
143
  /*
140
144
  * curl_url_strerror() turns a CURLUcode value into the equivalent human
141
145
  * readable error string. This is useful for printing meaningful error
142
- * messasfL.
146
+ * messaFTR.
143
147
  */
144
148
  CURL_EXTERN const char *curl_url_strerror(CURLUcode);
145
149