freerasp-react-native 3.6.0 → 3.7.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 (84) hide show
  1. package/CHANGELOG.md +180 -0
  2. package/README.md +35 -1
  3. package/android/build.gradle +1 -1
  4. package/app.plugin.js +1 -0
  5. package/bootstrap.js +29 -0
  6. package/example/package.json +1 -1
  7. package/ios/TalsecRuntime.xcframework/Info.plist +5 -5
  8. package/ios/TalsecRuntime.xcframework/_CodeSignature/CodeDirectory +0 -0
  9. package/ios/TalsecRuntime.xcframework/_CodeSignature/CodeRequirements +0 -0
  10. package/ios/TalsecRuntime.xcframework/_CodeSignature/CodeRequirements-1 +0 -0
  11. package/ios/TalsecRuntime.xcframework/_CodeSignature/CodeResources +923 -0
  12. package/ios/TalsecRuntime.xcframework/_CodeSignature/CodeSignature +0 -0
  13. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/CurlWrapper.h +1 -1
  14. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/TalsecRuntime-Swift.h +1 -1
  15. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/curl.h +369 -165
  16. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/curlver.h +9 -7
  17. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/easy.h +11 -9
  18. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/header.h +74 -0
  19. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/mprintf.h +32 -12
  20. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/multi.h +27 -12
  21. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/options.h +6 -4
  22. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/stdcheaders.h +3 -1
  23. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/system.h +72 -70
  24. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/urlapi.h +29 -4
  25. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Headers/websockets.h +84 -0
  26. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Info.plist +0 -0
  27. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios.abi.json +542 -696
  28. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios.private.swiftinterface +1 -0
  29. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios.swiftinterface +1 -0
  30. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/PrivacyInfo.xcprivacy +69 -0
  31. package/ios/TalsecRuntime.xcframework/ios-arm64/TalsecRuntime.framework/TalsecRuntime +0 -0
  32. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/CurlWrapper.h +1 -1
  33. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/TalsecRuntime-Swift.h +2 -2
  34. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/curl.h +369 -165
  35. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/curlver.h +9 -7
  36. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/easy.h +11 -9
  37. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/header.h +74 -0
  38. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/mprintf.h +32 -12
  39. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/multi.h +27 -12
  40. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/options.h +6 -4
  41. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/stdcheaders.h +3 -1
  42. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/system.h +72 -70
  43. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/urlapi.h +29 -4
  44. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Headers/websockets.h +84 -0
  45. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Info.plist +0 -0
  46. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios-simulator.abi.json +536 -676
  47. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +1 -0
  48. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/arm64-apple-ios-simulator.swiftinterface +1 -0
  49. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/x86_64-apple-ios-simulator.abi.json +536 -676
  50. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +1 -0
  51. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/Modules/TalsecRuntime.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +1 -0
  52. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/PrivacyInfo.xcprivacy +69 -0
  53. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/TalsecRuntime +0 -0
  54. package/ios/TalsecRuntime.xcframework/ios-arm64_x86_64-simulator/TalsecRuntime.framework/_CodeSignature/CodeResources +72 -39
  55. package/lib/commonjs/definitions.js +11 -15
  56. package/lib/commonjs/definitions.js.map +1 -1
  57. package/lib/commonjs/index.js +15 -13
  58. package/lib/commonjs/index.js.map +1 -1
  59. package/lib/commonjs/utils.js.map +1 -1
  60. package/lib/module/definitions.js +11 -15
  61. package/lib/module/definitions.js.map +1 -1
  62. package/lib/module/index.js +14 -11
  63. package/lib/module/index.js.map +1 -1
  64. package/lib/module/utils.js.map +1 -1
  65. package/lib/typescript/plugin/src/index.d.ts +11 -0
  66. package/lib/typescript/plugin/src/index.d.ts.map +1 -0
  67. package/lib/typescript/plugin/src/pluginConfig.d.ts +21 -0
  68. package/lib/typescript/plugin/src/pluginConfig.d.ts.map +1 -0
  69. package/lib/typescript/src/definitions.d.ts.map +1 -0
  70. package/lib/typescript/src/index.d.ts.map +1 -0
  71. package/lib/typescript/src/utils.d.ts.map +1 -0
  72. package/package.json +15 -24
  73. package/plugin/build/index.d.ts +10 -0
  74. package/plugin/build/index.js +63 -0
  75. package/plugin/build/pluginConfig.d.ts +20 -0
  76. package/plugin/build/pluginConfig.js +2 -0
  77. package/src/index.tsx +3 -0
  78. package/example/babel.config.js +0 -17
  79. package/lib/typescript/definitions.d.ts.map +0 -1
  80. package/lib/typescript/index.d.ts.map +0 -1
  81. package/lib/typescript/utils.d.ts.map +0 -1
  82. /package/lib/typescript/{definitions.d.ts → src/definitions.d.ts} +0 -0
  83. /package/lib/typescript/{index.d.ts → src/index.d.ts} +0 -0
  84. /package/lib/typescript/{utils.d.ts → src/utils.d.ts} +0 -0
@@ -7,7 +7,7 @@
7
7
  * | (__| |_| | _ <| |___
8
8
  * \___|\___/|_| \_\_____|
9
9
  *
10
- * Copyright (C) 1998 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al.
10
+ * Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
11
11
  *
12
12
  * This software is licensed as described in the file COPYING, which
13
13
  * you should have received as part of this distribution. The terms
@@ -20,22 +20,24 @@
20
20
  * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
21
21
  * KIND, either express or implied.
22
22
  *
23
+ * SPDX-License-Identifier: curl
24
+ *
23
25
  ***************************************************************************/
24
26
 
25
27
  /* This header file contains nothing but libcurl version info, generated by
26
28
  a script at release-time. This was made its own header file in 7.11.2 */
27
29
 
28
30
  /* This is the global package copyright */
29
- #define LIBCURL_COPYRIGHT "1996 - 2020 Daniel Stenberg, <daniel@haxx.se>."
31
+ #define LIBCURL_COPYRIGHT "Daniel Stenberg, <daniel@haxx.se>."
30
32
 
31
33
  /* This is the version number of the libcurl package from which this header
32
34
  file origins: */
33
- #define LIBCURL_VERSION "7.74.0"
35
+ #define LIBCURL_VERSION "8.5.0"
34
36
 
35
37
  /* The numeric version number is also available "in parts" by using these
36
38
  defines: */
37
- #define LIBCURL_VERSION_MAJOR 7
38
- #define LIBCURL_VERSION_MINOR 74
39
+ #define LIBCURL_VERSION_MAJOR 8
40
+ #define LIBCURL_VERSION_MINOR 5
39
41
  #define LIBCURL_VERSION_PATCH 0
40
42
 
41
43
  /* This is the numeric version of the libcurl version number, meant for easier
@@ -57,7 +59,7 @@
57
59
  CURL_VERSION_BITS() macro since curl's own configure script greps for it
58
60
  and needs it to contain the full number.
59
61
  */
60
- #define LIBCURL_VERSION_NUM 0x074a00
62
+ #define LIBCURL_VERSION_NUM 0x080500
61
63
 
62
64
  /*
63
65
  * This is the date and time when the full source package was created. The
@@ -68,7 +70,7 @@
68
70
  *
69
71
  * "2007-11-23"
70
72
  */
71
- #define LIBCURL_TIMESTAMP "2020-12-09"
73
+ #define LIBCURL_TIMESTAMP "2023-12-06"
72
74
 
73
75
  #define CURL_VERSION_BITS(x,y,z) ((x)<<16|(y)<<8|(z))
74
76
  #define CURL_AT_LEAST_VERSION(x,y,z) \
@@ -7,7 +7,7 @@
7
7
  * | (__| |_| | _ <| |___
8
8
  * \___|\___/|_| \_\_____|
9
9
  *
10
- * Copyright (C) 1998 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al.
10
+ * Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
11
11
  *
12
12
  * This software is licensed as described in the file COPYING, which
13
13
  * you should have received as part of this distribution. The terms
@@ -20,6 +20,8 @@
20
20
  * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
21
21
  * KIND, either express or implied.
22
22
  *
23
+ * SPDX-License-Identifier: curl
24
+ *
23
25
  ***************************************************************************/
24
26
  #ifdef __cplusplus
25
27
  extern "C" {
@@ -46,13 +48,13 @@ CURL_EXTERN void curl_easy_cleanup(CURL *curl);
46
48
  *
47
49
  * DESCRIPTION
48
50
  *
49
- * Request internal information from the curl session with this function. The
50
- * third argument MUST be a pointer to a long, a pointer to a char * or a
51
- * pointer to a double (as the documentation describes elsewhere). The data
52
- * pointed to will be filled in accordingly and can be relied upon only if the
53
- * function returns CURLE_OK. This function is intended to get used *AFTER* a
54
- * performed transfer, all results from this function are undefined until the
55
- * transfer is completed.
51
+ * Request internal information from the curl session with this function.
52
+ * The third argument MUST be pointing to the specific type of the used option
53
+ * which is documented in each man page of the option. The data pointed to
54
+ * will be filled in accordingly and can be relied upon only if the function
55
+ * returns CURLE_OK. This function is intended to get used *AFTER* a performed
56
+ * transfer, all results from this function are undefined until the transfer
57
+ * is completed.
56
58
  */
57
59
  CURL_EXTERN CURLcode curl_easy_getinfo(CURL *curl, CURLINFO info, ...);
58
60
 
@@ -117,7 +119,7 @@ CURL_EXTERN CURLcode curl_easy_send(CURL *curl, const void *buffer,
117
119
  CURL_EXTERN CURLcode curl_easy_upkeep(CURL *curl);
118
120
 
119
121
  #ifdef __cplusplus
120
- }
122
+ } /* end of extern "C" */
121
123
  #endif
122
124
 
123
125
  #endif
@@ -0,0 +1,74 @@
1
+ #ifndef CURLINC_HEADER_H
2
+ #define CURLINC_HEADER_H
3
+ /***************************************************************************
4
+ * _ _ ____ _
5
+ * Project ___| | | | _ \| |
6
+ * / __| | | | |_) | |
7
+ * | (__| |_| | _ <| |___
8
+ * \___|\___/|_| \_\_____|
9
+ *
10
+ * Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
11
+ *
12
+ * This software is licensed as described in the file COPYING, which
13
+ * you should have received as part of this distribution. The terms
14
+ * are also available at https://curl.se/docs/copyright.html.
15
+ *
16
+ * You may opt to use, copy, modify, merge, publish, distribute and/or sell
17
+ * copies of the Software, and permit persons to whom the Software is
18
+ * furnished to do so, under the terms of the COPYING file.
19
+ *
20
+ * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
21
+ * KIND, either express or implied.
22
+ *
23
+ * SPDX-License-Identifier: curl
24
+ *
25
+ ***************************************************************************/
26
+
27
+ #ifdef __cplusplus
28
+ extern "C" {
29
+ #endif
30
+
31
+ struct curl_header {
32
+ char *name; /* this might not use the same case */
33
+ char *value;
34
+ size_t amount; /* number of headers using this name */
35
+ size_t index; /* ... of this instance, 0 or higher */
36
+ unsigned int origin; /* see bits below */
37
+ void *anchor; /* handle privately used by libcurl */
38
+ };
39
+
40
+ /* 'origin' bits */
41
+ #define CURLH_HEADER (1<<0) /* plain server header */
42
+ #define CURLH_TRAILER (1<<1) /* trailers */
43
+ #define CURLH_CONNECT (1<<2) /* CONNECT headers */
44
+ #define CURLH_1XX (1<<3) /* 1xx headers */
45
+ #define CURLH_PSEUDO (1<<4) /* pseudo headers */
46
+
47
+ typedef enum {
48
+ CURLHE_OK,
49
+ CURLHE_BADINDEX, /* header exists but not with this index */
50
+ CURLHE_MISSING, /* no such header exists */
51
+ CURLHE_NOHEADERS, /* no headers at all exist (yet) */
52
+ CURLHE_NOREQUEST, /* no request with this number was used */
53
+ CURLHE_OUT_OF_MEMORY, /* out of memory while processing */
54
+ CURLHE_BAD_ARGUMENT, /* a function argument was not okay */
55
+ CURLHE_NOT_BUILT_IN /* if API was disabled in the build */
56
+ } CURLHcode;
57
+
58
+ CURL_EXTERN CURLHcode curl_easy_header(CURL *easy,
59
+ const char *name,
60
+ size_t index,
61
+ unsigned int origin,
62
+ int request,
63
+ struct curl_header **hout);
64
+
65
+ CURL_EXTERN struct curl_header *curl_easy_nextheader(CURL *easy,
66
+ unsigned int origin,
67
+ int request,
68
+ struct curl_header *prev);
69
+
70
+ #ifdef __cplusplus
71
+ } /* end of extern "C" */
72
+ #endif
73
+
74
+ #endif /* CURLINC_HEADER_H */
@@ -7,7 +7,7 @@
7
7
  * | (__| |_| | _ <| |___
8
8
  * \___|\___/|_| \_\_____|
9
9
  *
10
- * Copyright (C) 1998 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al.
10
+ * Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
11
11
  *
12
12
  * This software is licensed as described in the file COPYING, which
13
13
  * you should have received as part of this distribution. The terms
@@ -20,6 +20,8 @@
20
20
  * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
21
21
  * KIND, either express or implied.
22
22
  *
23
+ * SPDX-License-Identifier: curl
24
+ *
23
25
  ***************************************************************************/
24
26
 
25
27
  #include <stdarg.h>
@@ -30,21 +32,39 @@
30
32
  extern "C" {
31
33
  #endif
32
34
 
33
- CURL_EXTERN int curl_mprintf(const char *format, ...);
34
- CURL_EXTERN int curl_mfprintf(FILE *fd, const char *format, ...);
35
- CURL_EXTERN int curl_msprintf(char *buffer, const char *format, ...);
35
+ #if (defined(__GNUC__) || defined(__clang__)) && \
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)))
39
+ #else
40
+ #define CURL_TEMP_PRINTF(a,b)
41
+ #endif
42
+
43
+ CURL_EXTERN int curl_mprintf(const char *format, ...) CURL_TEMP_PRINTF(1, 2);
44
+ CURL_EXTERN int curl_mfprintf(FILE *fd, const char *format, ...)
45
+ CURL_TEMP_PRINTF(2, 3);
46
+ CURL_EXTERN int curl_msprintf(char *buffer, const char *format, ...)
47
+ CURL_TEMP_PRINTF(2, 3);
36
48
  CURL_EXTERN int curl_msnprintf(char *buffer, size_t maxlength,
37
- const char *format, ...);
38
- CURL_EXTERN int curl_mvprintf(const char *format, va_list args);
39
- CURL_EXTERN int curl_mvfprintf(FILE *fd, const char *format, va_list args);
40
- CURL_EXTERN int curl_mvsprintf(char *buffer, const char *format, va_list args);
49
+ const char *format, ...) CURL_TEMP_PRINTF(3, 4);
50
+ CURL_EXTERN int curl_mvprintf(const char *format, va_list args)
51
+ CURL_TEMP_PRINTF(1, 0);
52
+ CURL_EXTERN int curl_mvfprintf(FILE *fd, const char *format, va_list args)
53
+ CURL_TEMP_PRINTF(2, 0);
54
+ CURL_EXTERN int curl_mvsprintf(char *buffer, const char *format, va_list args)
55
+ CURL_TEMP_PRINTF(2, 0);
41
56
  CURL_EXTERN int curl_mvsnprintf(char *buffer, size_t maxlength,
42
- const char *format, va_list args);
43
- CURL_EXTERN char *curl_maprintf(const char *format, ...);
44
- CURL_EXTERN char *curl_mvaprintf(const char *format, va_list args);
57
+ const char *format, va_list args)
58
+ CURL_TEMP_PRINTF(3, 0);
59
+ CURL_EXTERN char *curl_maprintf(const char *format, ...)
60
+ CURL_TEMP_PRINTF(1, 2);
61
+ CURL_EXTERN char *curl_mvaprintf(const char *format, va_list args)
62
+ CURL_TEMP_PRINTF(1, 0);
63
+
64
+ #undef CURL_TEMP_PRINTF
45
65
 
46
66
  #ifdef __cplusplus
47
- }
67
+ } /* end of extern "C" */
48
68
  #endif
49
69
 
50
70
  #endif /* CURLINC_MPRINTF_H */
@@ -7,7 +7,7 @@
7
7
  * | (__| |_| | _ <| |___
8
8
  * \___|\___/|_| \_\_____|
9
9
  *
10
- * Copyright (C) 1998 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al.
10
+ * Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
11
11
  *
12
12
  * This software is licensed as described in the file COPYING, which
13
13
  * you should have received as part of this distribution. The terms
@@ -20,6 +20,8 @@
20
20
  * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
21
21
  * KIND, either express or implied.
22
22
  *
23
+ * SPDX-License-Identifier: curl
24
+ *
23
25
  ***************************************************************************/
24
26
  /*
25
27
  This is an "external" header file. Don't give away any internals here!
@@ -73,7 +75,9 @@ typedef enum {
73
75
  CURLM_RECURSIVE_API_CALL, /* an api function was called from inside a
74
76
  callback */
75
77
  CURLM_WAKEUP_FAILURE, /* wakeup is unavailable or failed */
76
- CURLM_BAD_FUNCTION_ARGUMENT, /* function called with a bad parameter */
78
+ CURLM_BAD_FUNCTION_ARGUMENT, /* function called with a bad parameter */
79
+ CURLM_ABORTED_BY_CALLBACK,
80
+ CURLM_UNRECOVERABLE_POLL,
77
81
  CURLM_LAST
78
82
  } CURLMcode;
79
83
 
@@ -114,13 +118,13 @@ typedef struct CURLMsg CURLMsg;
114
118
  struct curl_waitfd {
115
119
  curl_socket_t fd;
116
120
  short events;
117
- short revents; /* not supported yet */
121
+ short revents;
118
122
  };
119
123
 
120
124
  /*
121
125
  * Name: curl_multi_init()
122
126
  *
123
- * Desc: inititalize multi-style curl usage
127
+ * Desc: initialize multi-style curl usage
124
128
  *
125
129
  * Returns: a new CURLM handle to use in all 'curl_multi' functions.
126
130
  */
@@ -232,8 +236,8 @@ CURL_EXTERN CURLMcode curl_multi_cleanup(CURLM *multi_handle);
232
236
  /*
233
237
  * Name: curl_multi_info_read()
234
238
  *
235
- * Desc: Ask the multi handle if there's any messages/informationals from
236
- * the individual transfers. Messages include informationals such as
239
+ * Desc: Ask the multi handle if there's any messaMMy/informationals from
240
+ * the individual transfers. MessaMMy include informationals such as
237
241
  * error code from the transfer or just the fact that a transfer is
238
242
  * completed. More details on these should be written down as well.
239
243
  *
@@ -253,7 +257,7 @@ CURL_EXTERN CURLMcode curl_multi_cleanup(CURLM *multi_handle);
253
257
  * undoubtably get backwards compatibility problems in the future.
254
258
  *
255
259
  * Returns: A pointer to a filled-in struct, or NULL if it failed or ran out
256
- * of structs. It also writes the number of messages left in the
260
+ * of structs. It also writes the number of messaMMy left in the
257
261
  * queue (after this read) in the integer the second argument points
258
262
  * to.
259
263
  */
@@ -265,7 +269,7 @@ CURL_EXTERN CURLMsg *curl_multi_info_read(CURLM *multi_handle,
265
269
  *
266
270
  * Desc: The curl_multi_strerror function may be used to turn a CURLMcode
267
271
  * value into the equivalent human readable error string. This is
268
- * useful for printing meaningful error messages.
272
+ * useful for printing meaningful error messaMMy.
269
273
  *
270
274
  * Returns: A pointer to a null-terminated error message.
271
275
  */
@@ -314,16 +318,16 @@ typedef int (*curl_multi_timer_callback)(CURLM *multi, /* multi handle */
314
318
  void *userp); /* private callback
315
319
  pointer */
316
320
 
317
- CURL_EXTERN CURLMcode curl_multi_socket(CURLM *multi_handle, curl_socket_t s,
318
- int *running_handles);
321
+ CURL_EXTERN CURLMcode CURL_DEPRECATED(7.19.5, "Use curl_multi_socket_action()")
322
+ curl_multi_socket(CURLM *multi_handle, curl_socket_t s, int *running_handles);
319
323
 
320
324
  CURL_EXTERN CURLMcode curl_multi_socket_action(CURLM *multi_handle,
321
325
  curl_socket_t s,
322
326
  int ev_bitmask,
323
327
  int *running_handles);
324
328
 
325
- CURL_EXTERN CURLMcode curl_multi_socket_all(CURLM *multi_handle,
326
- int *running_handles);
329
+ CURL_EXTERN CURLMcode CURL_DEPRECATED(7.19.5, "Use curl_multi_socket_action()")
330
+ curl_multi_socket_all(CURLM *multi_handle, int *running_handles);
327
331
 
328
332
  #ifndef CURL_ALLOW_OLD_MULTI_SOCKET
329
333
  /* This macro below was added in 7.16.3 to push users who recompile to use
@@ -422,6 +426,17 @@ CURL_EXTERN CURLMcode curl_multi_setopt(CURLM *multi_handle,
422
426
  CURL_EXTERN CURLMcode curl_multi_assign(CURLM *multi_handle,
423
427
  curl_socket_t sockfd, void *sockp);
424
428
 
429
+ /*
430
+ * Name: curl_multi_get_handles()
431
+ *
432
+ * Desc: Returns an allocated array holding all handles currently added to
433
+ * the multi handle. Marks the final entry with a NULL pointer. If
434
+ * there is no easy handle added to the multi handle, this function
435
+ * returns an array with the first entry as a NULL pointer.
436
+ *
437
+ * Returns: NULL on failure, otherwise a CURL **array pointer
438
+ */
439
+ CURL_EXTERN CURL **curl_multi_get_handles(CURLM *multi_handle);
425
440
 
426
441
  /*
427
442
  * Name: curl_push_callback
@@ -7,7 +7,7 @@
7
7
  * | (__| |_| | _ <| |___
8
8
  * \___|\___/|_| \_\_____|
9
9
  *
10
- * Copyright (C) 2018 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al.
10
+ * Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
11
11
  *
12
12
  * This software is licensed as described in the file COPYING, which
13
13
  * you should have received as part of this distribution. The terms
@@ -20,6 +20,8 @@
20
20
  * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
21
21
  * KIND, either express or implied.
22
22
  *
23
+ * SPDX-License-Identifier: curl
24
+ *
23
25
  ***************************************************************************/
24
26
 
25
27
  #ifdef __cplusplus
@@ -31,7 +33,7 @@ typedef enum {
31
33
  CURLOT_VALUES, /* (a defined set or bitmask) */
32
34
  CURLOT_OFF_T, /* curl_off_t (a range of values) */
33
35
  CURLOT_OBJECT, /* pointer (void *) */
34
- CURLOT_STRING, /* (char * to zero terminated buffer) */
36
+ CURLOT_STRING, /* (char * to null-terminated buffer) */
35
37
  CURLOT_SLIST, /* (struct curl_slist *) */
36
38
  CURLOT_CBPTR, /* (void * passed as-is to a callback) */
37
39
  CURLOT_BLOB, /* blob (struct curl_blob *) */
@@ -44,7 +46,7 @@ typedef enum {
44
46
  we prefer another name */
45
47
  #define CURLOT_FLAG_ALIAS (1<<0)
46
48
 
47
- /* The CURLOPTTYPE_* id ranges can still be used to figure out what type/size
49
+ /* The CURLOPTTYPE_* id ranMMy can still be used to figure out what type/size
48
50
  to use for curl_easy_setopt() for the given id */
49
51
  struct curl_easyoption {
50
52
  const char *name;
@@ -57,7 +59,7 @@ CURL_EXTERN const struct curl_easyoption *
57
59
  curl_easy_option_by_name(const char *name);
58
60
 
59
61
  CURL_EXTERN const struct curl_easyoption *
60
- curl_easy_option_by_id (CURLoption id);
62
+ curl_easy_option_by_id(CURLoption id);
61
63
 
62
64
  CURL_EXTERN const struct curl_easyoption *
63
65
  curl_easy_option_next(const struct curl_easyoption *prev);
@@ -7,7 +7,7 @@
7
7
  * | (__| |_| | _ <| |___
8
8
  * \___|\___/|_| \_\_____|
9
9
  *
10
- * Copyright (C) 1998 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al.
10
+ * Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
11
11
  *
12
12
  * This software is licensed as described in the file COPYING, which
13
13
  * you should have received as part of this distribution. The terms
@@ -20,6 +20,8 @@
20
20
  * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
21
21
  * KIND, either express or implied.
22
22
  *
23
+ * SPDX-License-Identifier: curl
24
+ *
23
25
  ***************************************************************************/
24
26
 
25
27
  #include <sys/types.h>
@@ -7,7 +7,7 @@
7
7
  * | (__| |_| | _ <| |___
8
8
  * \___|\___/|_| \_\_____|
9
9
  *
10
- * Copyright (C) 1998 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al.
10
+ * Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
11
11
  *
12
12
  * This software is licensed as described in the file COPYING, which
13
13
  * you should have received as part of this distribution. The terms
@@ -20,6 +20,8 @@
20
20
  * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
21
21
  * KIND, either express or implied.
22
22
  *
23
+ * SPDX-License-Identifier: curl
24
+ *
23
25
  ***************************************************************************/
24
26
 
25
27
  /*
@@ -98,22 +100,6 @@
98
100
  # define CURL_SUFFIX_CURL_OFF_TU UL
99
101
  # define CURL_TYPEOF_CURL_SOCKLEN_T int
100
102
 
101
- #elif defined(__WATCOMC__)
102
- # if defined(__386__)
103
- # define CURL_TYPEOF_CURL_OFF_T __int64
104
- # define CURL_FORMAT_CURL_OFF_T "I64d"
105
- # define CURL_FORMAT_CURL_OFF_TU "I64u"
106
- # define CURL_SUFFIX_CURL_OFF_T i64
107
- # define CURL_SUFFIX_CURL_OFF_TU ui64
108
- # else
109
- # define CURL_TYPEOF_CURL_OFF_T long
110
- # define CURL_FORMAT_CURL_OFF_T "ld"
111
- # define CURL_FORMAT_CURL_OFF_TU "lu"
112
- # define CURL_SUFFIX_CURL_OFF_T L
113
- # define CURL_SUFFIX_CURL_OFF_TU UL
114
- # endif
115
- # define CURL_TYPEOF_CURL_SOCKLEN_T int
116
-
117
103
  #elif defined(__POCC__)
118
104
  # if (__POCC__ < 280)
119
105
  # define CURL_TYPEOF_CURL_OFF_T long
@@ -137,7 +123,7 @@
137
123
  # define CURL_TYPEOF_CURL_SOCKLEN_T int
138
124
 
139
125
  #elif defined(__LCC__)
140
- # if defined(__e2k__) /* MCST eLbrus C Compiler */
126
+ # if defined(__MCST__) /* MCST eLbrus Compiler Collection */
141
127
  # define CURL_TYPEOF_CURL_OFF_T long
142
128
  # define CURL_FORMAT_CURL_OFF_T "ld"
143
129
  # define CURL_FORMAT_CURL_OFF_TU "lu"
@@ -155,36 +141,33 @@
155
141
  # define CURL_TYPEOF_CURL_SOCKLEN_T int
156
142
  # endif
157
143
 
158
- #elif defined(__SYMBIAN32__)
159
- # if defined(__EABI__) /* Treat all ARM compilers equally */
144
+ #elif defined(macintosh)
145
+ # include <ConditionalMacros.h>
146
+ # if TYPE_LONGLONG
160
147
  # define CURL_TYPEOF_CURL_OFF_T long long
161
148
  # define CURL_FORMAT_CURL_OFF_T "lld"
162
149
  # define CURL_FORMAT_CURL_OFF_TU "llu"
163
150
  # define CURL_SUFFIX_CURL_OFF_T LL
164
151
  # define CURL_SUFFIX_CURL_OFF_TU ULL
165
- # elif defined(__CW32__)
166
- # pragma longlong on
167
- # define CURL_TYPEOF_CURL_OFF_T long long
168
- # define CURL_FORMAT_CURL_OFF_T "lld"
169
- # define CURL_FORMAT_CURL_OFF_TU "llu"
170
- # define CURL_SUFFIX_CURL_OFF_T LL
171
- # define CURL_SUFFIX_CURL_OFF_TU ULL
172
- # elif defined(__VC32__)
173
- # define CURL_TYPEOF_CURL_OFF_T __int64
174
- # define CURL_FORMAT_CURL_OFF_T "lld"
175
- # define CURL_FORMAT_CURL_OFF_TU "llu"
176
- # define CURL_SUFFIX_CURL_OFF_T LL
177
- # define CURL_SUFFIX_CURL_OFF_TU ULL
152
+ # else
153
+ # define CURL_TYPEOF_CURL_OFF_T long
154
+ # define CURL_FORMAT_CURL_OFF_T "ld"
155
+ # define CURL_FORMAT_CURL_OFF_TU "lu"
156
+ # define CURL_SUFFIX_CURL_OFF_T L
157
+ # define CURL_SUFFIX_CURL_OFF_TU UL
178
158
  # endif
179
159
  # define CURL_TYPEOF_CURL_SOCKLEN_T unsigned int
180
160
 
181
- #elif defined(__MWERKS__)
161
+ #elif defined(__TANDEM)
162
+ # if ! defined(__LP64)
163
+ /* Required for 32-bit NonStop builds only. */
182
164
  # define CURL_TYPEOF_CURL_OFF_T long long
183
165
  # define CURL_FORMAT_CURL_OFF_T "lld"
184
166
  # define CURL_FORMAT_CURL_OFF_TU "llu"
185
167
  # define CURL_SUFFIX_CURL_OFF_T LL
186
168
  # define CURL_SUFFIX_CURL_OFF_TU ULL
187
169
  # define CURL_TYPEOF_CURL_SOCKLEN_T int
170
+ # endif
188
171
 
189
172
  #elif defined(_WIN32_WCE)
190
173
  # define CURL_TYPEOF_CURL_OFF_T __int64
@@ -195,9 +178,10 @@
195
178
  # define CURL_TYPEOF_CURL_SOCKLEN_T int
196
179
 
197
180
  #elif defined(__MINGW32__)
181
+ # include <inttypes.h>
198
182
  # define CURL_TYPEOF_CURL_OFF_T long long
199
- # define CURL_FORMAT_CURL_OFF_T "I64d"
200
- # define CURL_FORMAT_CURL_OFF_TU "I64u"
183
+ # define CURL_FORMAT_CURL_OFF_T PRId64
184
+ # define CURL_FORMAT_CURL_OFF_TU PRIu64
201
185
  # define CURL_SUFFIX_CURL_OFF_T LL
202
186
  # define CURL_SUFFIX_CURL_OFF_TU ULL
203
187
  # define CURL_TYPEOF_CURL_SOCKLEN_T socklen_t
@@ -221,45 +205,38 @@
221
205
  # define CURL_TYPEOF_CURL_SOCKLEN_T unsigned int
222
206
 
223
207
  #elif defined(__OS400__)
224
- # if defined(__ILEC400__)
208
+ # define CURL_TYPEOF_CURL_OFF_T long long
209
+ # define CURL_FORMAT_CURL_OFF_T "lld"
210
+ # define CURL_FORMAT_CURL_OFF_TU "llu"
211
+ # define CURL_SUFFIX_CURL_OFF_T LL
212
+ # define CURL_SUFFIX_CURL_OFF_TU ULL
213
+ # define CURL_TYPEOF_CURL_SOCKLEN_T socklen_t
214
+ # define CURL_PULL_SYS_TYPES_H 1
215
+ # define CURL_PULL_SYS_SOCKET_H 1
216
+
217
+ #elif defined(__MVS__)
218
+ # if defined(_LONG_LONG)
225
219
  # define CURL_TYPEOF_CURL_OFF_T long long
226
220
  # define CURL_FORMAT_CURL_OFF_T "lld"
227
221
  # define CURL_FORMAT_CURL_OFF_TU "llu"
228
222
  # define CURL_SUFFIX_CURL_OFF_T LL
229
223
  # define CURL_SUFFIX_CURL_OFF_TU ULL
230
- # define CURL_TYPEOF_CURL_SOCKLEN_T socklen_t
231
- # define CURL_PULL_SYS_TYPES_H 1
232
- # define CURL_PULL_SYS_SOCKET_H 1
233
- # endif
234
-
235
- #elif defined(__MVS__)
236
- # if defined(__IBMC__) || defined(__IBMCPP__)
237
- # if defined(_ILP32)
238
- # elif defined(_LP64)
239
- # endif
240
- # if defined(_LONG_LONG)
241
- # define CURL_TYPEOF_CURL_OFF_T long long
242
- # define CURL_FORMAT_CURL_OFF_T "lld"
243
- # define CURL_FORMAT_CURL_OFF_TU "llu"
244
- # define CURL_SUFFIX_CURL_OFF_T LL
245
- # define CURL_SUFFIX_CURL_OFF_TU ULL
246
- # elif defined(_LP64)
247
- # define CURL_TYPEOF_CURL_OFF_T long
248
- # define CURL_FORMAT_CURL_OFF_T "ld"
249
- # define CURL_FORMAT_CURL_OFF_TU "lu"
250
- # define CURL_SUFFIX_CURL_OFF_T L
251
- # define CURL_SUFFIX_CURL_OFF_TU UL
252
- # else
253
- # define CURL_TYPEOF_CURL_OFF_T long
254
- # define CURL_FORMAT_CURL_OFF_T "ld"
255
- # define CURL_FORMAT_CURL_OFF_TU "lu"
256
- # define CURL_SUFFIX_CURL_OFF_T L
257
- # define CURL_SUFFIX_CURL_OFF_TU UL
258
- # endif
259
- # define CURL_TYPEOF_CURL_SOCKLEN_T socklen_t
260
- # define CURL_PULL_SYS_TYPES_H 1
261
- # define CURL_PULL_SYS_SOCKET_H 1
224
+ # elif defined(_LP64)
225
+ # define CURL_TYPEOF_CURL_OFF_T long
226
+ # define CURL_FORMAT_CURL_OFF_T "ld"
227
+ # define CURL_FORMAT_CURL_OFF_TU "lu"
228
+ # define CURL_SUFFIX_CURL_OFF_T L
229
+ # define CURL_SUFFIX_CURL_OFF_TU UL
230
+ # else
231
+ # define CURL_TYPEOF_CURL_OFF_T long
232
+ # define CURL_FORMAT_CURL_OFF_T "ld"
233
+ # define CURL_FORMAT_CURL_OFF_TU "lu"
234
+ # define CURL_SUFFIX_CURL_OFF_T L
235
+ # define CURL_SUFFIX_CURL_OFF_TU UL
262
236
  # endif
237
+ # define CURL_TYPEOF_CURL_SOCKLEN_T socklen_t
238
+ # define CURL_PULL_SYS_TYPES_H 1
239
+ # define CURL_PULL_SYS_SOCKET_H 1
263
240
 
264
241
  #elif defined(__370__)
265
242
  # if defined(__IBMC__) || defined(__IBMCPP__)
@@ -348,12 +325,37 @@
348
325
  # define CURL_PULL_SYS_TYPES_H 1
349
326
  # define CURL_PULL_SYS_SOCKET_H 1
350
327
 
328
+ #elif defined(__hpux) /* HP aCC compiler */
329
+ # if !defined(_LP64)
330
+ # define CURL_TYPEOF_CURL_OFF_T long long
331
+ # define CURL_FORMAT_CURL_OFF_T "lld"
332
+ # define CURL_FORMAT_CURL_OFF_TU "llu"
333
+ # define CURL_SUFFIX_CURL_OFF_T LL
334
+ # define CURL_SUFFIX_CURL_OFF_TU ULL
335
+ # else
336
+ # define CURL_TYPEOF_CURL_OFF_T long
337
+ # define CURL_FORMAT_CURL_OFF_T "ld"
338
+ # define CURL_FORMAT_CURL_OFF_TU "lu"
339
+ # define CURL_SUFFIX_CURL_OFF_T L
340
+ # define CURL_SUFFIX_CURL_OFF_TU UL
341
+ # endif
342
+ # define CURL_TYPEOF_CURL_SOCKLEN_T socklen_t
343
+ # define CURL_PULL_SYS_TYPES_H 1
344
+ # define CURL_PULL_SYS_SOCKET_H 1
345
+
351
346
  /* ===================================== */
352
347
  /* KEEP MSVC THE PENULTIMATE ENTRY */
353
348
  /* ===================================== */
354
349
 
355
350
  #elif defined(_MSC_VER)
356
- # if (_MSC_VER >= 900) && (_INTEGRAL_MAX_BITS >= 64)
351
+ # if (_MSC_VER >= 1800)
352
+ # include <inttypes.h>
353
+ # define CURL_TYPEOF_CURL_OFF_T __int64
354
+ # define CURL_FORMAT_CURL_OFF_T PRId64
355
+ # define CURL_FORMAT_CURL_OFF_TU PRIu64
356
+ # define CURL_SUFFIX_CURL_OFF_T i64
357
+ # define CURL_SUFFIX_CURL_OFF_TU ui64
358
+ # elif (_MSC_VER >= 900) && (_INTEGRAL_MAX_BITS >= 64)
357
359
  # define CURL_TYPEOF_CURL_OFF_T __int64
358
360
  # define CURL_FORMAT_CURL_OFF_T "I64d"
359
361
  # define CURL_FORMAT_CURL_OFF_TU "I64u"