Kitxuuu commited on
Commit
7f1ca8c
·
verified ·
1 Parent(s): 09f51e5

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. local-test-curl-delta-01/afc-curl/CMake/CMakeConfigurableFile.in +24 -0
  2. local-test-curl-delta-01/afc-curl/CMake/CurlSymbolHiding.cmake +66 -0
  3. local-test-curl-delta-01/afc-curl/CMake/CurlTests.c +413 -0
  4. local-test-curl-delta-01/afc-curl/CMake/FindBearSSL.cmake +58 -0
  5. local-test-curl-delta-01/afc-curl/CMake/FindBrotli.cmake +80 -0
  6. local-test-curl-delta-01/afc-curl/CMake/FindCares.cmake +90 -0
  7. local-test-curl-delta-01/afc-curl/CMake/FindGSS.cmake +357 -0
  8. local-test-curl-delta-01/afc-curl/CMake/FindLibgsasl.cmake +79 -0
  9. local-test-curl-delta-01/afc-curl/CMake/FindLibidn2.cmake +79 -0
  10. local-test-curl-delta-01/afc-curl/CMake/FindLibpsl.cmake +80 -0
  11. local-test-curl-delta-01/afc-curl/CMake/FindLibssh.cmake +93 -0
  12. local-test-curl-delta-01/afc-curl/CMake/FindLibssh2.cmake +80 -0
  13. local-test-curl-delta-01/afc-curl/CMake/FindLibuv.cmake +89 -0
  14. local-test-curl-delta-01/afc-curl/CMake/FindMSH3.cmake +69 -0
  15. local-test-curl-delta-01/afc-curl/CMake/FindMbedTLS.cmake +109 -0
  16. local-test-curl-delta-01/afc-curl/CMake/FindNGHTTP2.cmake +80 -0
  17. local-test-curl-delta-01/afc-curl/CMake/FindNGHTTP3.cmake +80 -0
  18. local-test-curl-delta-01/afc-curl/CMake/FindNGTCP2.cmake +122 -0
  19. local-test-curl-delta-01/afc-curl/CMake/FindNettle.cmake +84 -0
  20. local-test-curl-delta-01/afc-curl/CMake/FindQuiche.cmake +67 -0
  21. local-test-curl-delta-01/afc-curl/CMake/FindRustls.cmake +103 -0
  22. local-test-curl-delta-01/afc-curl/CMake/FindWolfSSH.cmake +65 -0
  23. local-test-curl-delta-01/afc-curl/CMake/FindWolfSSL.cmake +96 -0
  24. local-test-curl-delta-01/afc-curl/CMake/FindZstd.cmake +99 -0
  25. local-test-curl-delta-01/afc-curl/CMake/Macros.cmake +82 -0
  26. local-test-curl-delta-01/afc-curl/CMake/OtherTests.cmake +156 -0
  27. local-test-curl-delta-01/afc-curl/CMake/PickyWarnings.cmake +265 -0
  28. local-test-curl-delta-01/afc-curl/CMake/Utilities.cmake +35 -0
  29. local-test-curl-delta-01/afc-curl/CMake/cmake_uninstall.cmake.in +49 -0
  30. local-test-curl-delta-01/afc-curl/CMake/curl-config.cmake.in +51 -0
  31. local-test-curl-delta-01/afc-curl/LICENSES/BSD-3-Clause.txt +11 -0
  32. local-test-curl-delta-01/afc-curl/LICENSES/BSD-4-Clause-UC.txt +15 -0
  33. local-test-curl-delta-01/afc-curl/LICENSES/ISC.txt +12 -0
  34. local-test-curl-delta-01/afc-curl/LICENSES/curl.txt +22 -0
  35. local-test-curl-delta-01/afc-curl/docs/.gitignore +7 -0
  36. local-test-curl-delta-01/afc-curl/docs/ALTSVC.md +43 -0
  37. local-test-curl-delta-01/afc-curl/docs/BINDINGS.md +148 -0
  38. local-test-curl-delta-01/afc-curl/docs/BUG-BOUNTY.md +94 -0
  39. local-test-curl-delta-01/afc-curl/docs/BUGS.md +270 -0
  40. local-test-curl-delta-01/afc-curl/docs/CIPHERS-TLS12.md +336 -0
  41. local-test-curl-delta-01/afc-curl/docs/CIPHERS.md +181 -0
  42. local-test-curl-delta-01/afc-curl/docs/CMakeLists.txt +46 -0
  43. local-test-curl-delta-01/afc-curl/docs/CODE_OF_CONDUCT.md +38 -0
  44. local-test-curl-delta-01/afc-curl/docs/CODE_REVIEW.md +174 -0
  45. local-test-curl-delta-01/afc-curl/docs/CONTRIBUTE.md +307 -0
  46. local-test-curl-delta-01/afc-curl/docs/CURL-DISABLE.md +191 -0
  47. local-test-curl-delta-01/afc-curl/docs/CURLDOWN.md +168 -0
  48. local-test-curl-delta-01/afc-curl/docs/DEPRECATE.md +67 -0
  49. local-test-curl-delta-01/afc-curl/docs/DISTROS.md +286 -0
  50. local-test-curl-delta-01/afc-curl/docs/EARLY-RELEASE.md +73 -0
local-test-curl-delta-01/afc-curl/CMake/CMakeConfigurableFile.in ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #***************************************************************************
2
+ # _ _ ____ _
3
+ # Project ___| | | | _ \| |
4
+ # / __| | | | |_) | |
5
+ # | (__| |_| | _ <| |___
6
+ # \___|\___/|_| \_\_____|
7
+ #
8
+ # Copyright (C) Daniel Stenberg, <[email protected]>, et al.
9
+ #
10
+ # This software is licensed as described in the file COPYING, which
11
+ # you should have received as part of this distribution. The terms
12
+ # are also available at https://curl.se/docs/copyright.html.
13
+ #
14
+ # You may opt to use, copy, modify, merge, publish, distribute and/or sell
15
+ # copies of the Software, and permit persons to whom the Software is
16
+ # furnished to do so, under the terms of the COPYING file.
17
+ #
18
+ # This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19
+ # KIND, either express or implied.
20
+ #
21
+ # SPDX-License-Identifier: curl
22
+ #
23
+ ###########################################################################
24
+ @CMAKE_CONFIGURABLE_FILE_CONTENT@
local-test-curl-delta-01/afc-curl/CMake/CurlSymbolHiding.cmake ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #***************************************************************************
2
+ # _ _ ____ _
3
+ # Project ___| | | | _ \| |
4
+ # / __| | | | |_) | |
5
+ # | (__| |_| | _ <| |___
6
+ # \___|\___/|_| \_\_____|
7
+ #
8
+ # Copyright (C) Daniel Stenberg, <[email protected]>, et al.
9
+ #
10
+ # This software is licensed as described in the file COPYING, which
11
+ # you should have received as part of this distribution. The terms
12
+ # are also available at https://curl.se/docs/copyright.html.
13
+ #
14
+ # You may opt to use, copy, modify, merge, publish, distribute and/or sell
15
+ # copies of the Software, and permit persons to whom the Software is
16
+ # furnished to do so, under the terms of the COPYING file.
17
+ #
18
+ # This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19
+ # KIND, either express or implied.
20
+ #
21
+ # SPDX-License-Identifier: curl
22
+ #
23
+ ###########################################################################
24
+ option(CURL_HIDDEN_SYMBOLS "Hide libcurl internal symbols (=hide all symbols that are not officially external)" ON)
25
+ mark_as_advanced(CURL_HIDDEN_SYMBOLS)
26
+
27
+ if(WIN32 AND (ENABLE_DEBUG OR ENABLE_CURLDEBUG))
28
+ # We need to export internal debug functions,
29
+ # e.g. curl_easy_perform_ev() or curl_dbg_*(),
30
+ # so disable symbol hiding for debug builds and for memory tracking.
31
+ set(CURL_HIDDEN_SYMBOLS OFF)
32
+ endif()
33
+
34
+ set(CURL_HIDES_PRIVATE_SYMBOLS FALSE)
35
+ unset(CURL_EXTERN_SYMBOL)
36
+ unset(CURL_CFLAG_SYMBOLS_HIDE)
37
+
38
+ if(CURL_HIDDEN_SYMBOLS)
39
+ if(CMAKE_C_COMPILER_ID MATCHES "Clang" AND NOT MSVC)
40
+ set(CURL_HIDES_PRIVATE_SYMBOLS TRUE)
41
+ set(CURL_EXTERN_SYMBOL "__attribute__((__visibility__(\"default\")))")
42
+ set(CURL_CFLAG_SYMBOLS_HIDE "-fvisibility=hidden")
43
+ elseif(CMAKE_COMPILER_IS_GNUCC)
44
+ if(NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 3.4)
45
+ # Note: This is considered buggy prior to 4.0 but the autotools do not care, so let us ignore that fact
46
+ set(CURL_HIDES_PRIVATE_SYMBOLS TRUE)
47
+ set(CURL_EXTERN_SYMBOL "__attribute__((__visibility__(\"default\")))")
48
+ set(CURL_CFLAG_SYMBOLS_HIDE "-fvisibility=hidden")
49
+ endif()
50
+ elseif(CMAKE_C_COMPILER_ID MATCHES "SunPro" AND NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 8.0)
51
+ set(CURL_HIDES_PRIVATE_SYMBOLS TRUE)
52
+ set(CURL_EXTERN_SYMBOL "__global")
53
+ set(CURL_CFLAG_SYMBOLS_HIDE "-xldscope=hidden")
54
+ elseif(CMAKE_C_COMPILER_ID MATCHES "Intel" AND NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 9.0) # Requires 9.1.045
55
+ set(CURL_HIDES_PRIVATE_SYMBOLS TRUE)
56
+ set(CURL_EXTERN_SYMBOL "__attribute__((__visibility__(\"default\")))")
57
+ set(CURL_CFLAG_SYMBOLS_HIDE "-fvisibility=hidden")
58
+ elseif(MSVC)
59
+ set(CURL_HIDES_PRIVATE_SYMBOLS TRUE)
60
+ endif()
61
+ else()
62
+ if(MSVC)
63
+ # Note: This option is prone to export non-curl extra symbols.
64
+ set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS TRUE)
65
+ endif()
66
+ endif()
local-test-curl-delta-01/afc-curl/CMake/CurlTests.c ADDED
@@ -0,0 +1,413 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /***************************************************************************
2
+ * _ _ ____ _
3
+ * Project ___| | | | _ \| |
4
+ * / __| | | | |_) | |
5
+ * | (__| |_| | _ <| |___
6
+ * \___|\___/|_| \_\_____|
7
+ *
8
+ * Copyright (C) Daniel Stenberg, <[email protected]>, et al.
9
+ *
10
+ * This software is licensed as described in the file COPYING, which
11
+ * you should have received as part of this distribution. The terms
12
+ * are also available at https://curl.se/docs/copyright.html.
13
+ *
14
+ * You may opt to use, copy, modify, merge, publish, distribute and/or sell
15
+ * copies of the Software, and permit persons to whom the Software is
16
+ * furnished to do so, under the terms of the COPYING file.
17
+ *
18
+ * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19
+ * KIND, either express or implied.
20
+ *
21
+ * SPDX-License-Identifier: curl
22
+ *
23
+ ***************************************************************************/
24
+
25
+ #ifdef HAVE_FCNTL_O_NONBLOCK
26
+ /* headers for FCNTL_O_NONBLOCK test */
27
+ #include <sys/types.h>
28
+ #include <unistd.h>
29
+ #include <fcntl.h>
30
+ /* */
31
+ #if defined(sun) || defined(__sun__) || \
32
+ defined(__SUNPRO_C) || defined(__SUNPRO_CC)
33
+ # if defined(__SVR4) || defined(__srv4__)
34
+ # define PLATFORM_SOLARIS
35
+ # else
36
+ # define PLATFORM_SUNOS4
37
+ # endif
38
+ #endif
39
+ #if (defined(_AIX) || defined(__xlC__)) && !defined(_AIX41)
40
+ # define PLATFORM_AIX_V3
41
+ #endif
42
+ /* */
43
+ #if defined(PLATFORM_SUNOS4) || defined(PLATFORM_AIX_V3)
44
+ #error "O_NONBLOCK does not work on this platform"
45
+ #endif
46
+
47
+ int main(void)
48
+ {
49
+ /* O_NONBLOCK source test */
50
+ int flags = 0;
51
+ if(0 != fcntl(0, F_SETFL, flags | O_NONBLOCK))
52
+ return 1;
53
+ ;
54
+ return 0;
55
+ }
56
+ #endif
57
+
58
+ /* tests for gethostbyname_r */
59
+ #if defined(HAVE_GETHOSTBYNAME_R_3_REENTRANT) || \
60
+ defined(HAVE_GETHOSTBYNAME_R_5_REENTRANT) || \
61
+ defined(HAVE_GETHOSTBYNAME_R_6_REENTRANT)
62
+ # define _REENTRANT
63
+ /* no idea whether _REENTRANT is always set, just invent a new flag */
64
+ # define TEST_GETHOSTBYFOO_REENTRANT
65
+ #endif
66
+ #if defined(HAVE_GETHOSTBYNAME_R_3) || \
67
+ defined(HAVE_GETHOSTBYNAME_R_5) || \
68
+ defined(HAVE_GETHOSTBYNAME_R_6) || \
69
+ defined(TEST_GETHOSTBYFOO_REENTRANT)
70
+ #include <sys/types.h>
71
+ #include <netdb.h>
72
+ int main(void)
73
+ {
74
+ char *address = "example.com";
75
+ int length = 0;
76
+ int type = 0;
77
+ struct hostent h;
78
+ int rc = 0;
79
+ #if defined(HAVE_GETHOSTBYNAME_R_3) || \
80
+ defined(HAVE_GETHOSTBYNAME_R_3_REENTRANT)
81
+ struct hostent_data hdata;
82
+ #elif defined(HAVE_GETHOSTBYNAME_R_5) || \
83
+ defined(HAVE_GETHOSTBYNAME_R_5_REENTRANT) || \
84
+ defined(HAVE_GETHOSTBYNAME_R_6) || \
85
+ defined(HAVE_GETHOSTBYNAME_R_6_REENTRANT)
86
+ char buffer[8192];
87
+ int h_errnop;
88
+ struct hostent *hp;
89
+ #endif
90
+
91
+ #if defined(HAVE_GETHOSTBYNAME_R_3) || \
92
+ defined(HAVE_GETHOSTBYNAME_R_3_REENTRANT)
93
+ rc = gethostbyname_r(address, &h, &hdata);
94
+ #elif defined(HAVE_GETHOSTBYNAME_R_5) || \
95
+ defined(HAVE_GETHOSTBYNAME_R_5_REENTRANT)
96
+ rc = gethostbyname_r(address, &h, buffer, 8192, &h_errnop);
97
+ (void)hp; /* not used for test */
98
+ #elif defined(HAVE_GETHOSTBYNAME_R_6) || \
99
+ defined(HAVE_GETHOSTBYNAME_R_6_REENTRANT)
100
+ rc = gethostbyname_r(address, &h, buffer, 8192, &hp, &h_errnop);
101
+ #endif
102
+
103
+ (void)length;
104
+ (void)type;
105
+ (void)rc;
106
+ return 0;
107
+ }
108
+ #endif
109
+
110
+ #ifdef HAVE_IN_ADDR_T
111
+ #include <sys/types.h>
112
+ #include <sys/socket.h>
113
+ #include <arpa/inet.h>
114
+ int main(void)
115
+ {
116
+ if((in_addr_t *) 0)
117
+ return 0;
118
+ if(sizeof(in_addr_t))
119
+ return 0;
120
+ ;
121
+ return 0;
122
+ }
123
+ #endif
124
+
125
+ #ifdef HAVE_BOOL_T
126
+ #ifdef HAVE_SYS_TYPES_H
127
+ #include <sys/types.h>
128
+ #endif
129
+ #ifdef HAVE_STDBOOL_H
130
+ #include <stdbool.h>
131
+ #endif
132
+ int main(void)
133
+ {
134
+ if(sizeof(bool *))
135
+ return 0;
136
+ ;
137
+ return 0;
138
+ }
139
+ #endif
140
+
141
+ #ifdef STDC_HEADERS
142
+ #include <stdlib.h>
143
+ #include <stdarg.h>
144
+ #include <string.h>
145
+ #include <float.h>
146
+ int main(void) { return 0; }
147
+ #endif
148
+
149
+ #ifdef HAVE_FILE_OFFSET_BITS
150
+ #ifdef _FILE_OFFSET_BITS
151
+ #undef _FILE_OFFSET_BITS
152
+ #endif
153
+ #define _FILE_OFFSET_BITS 64
154
+ #include <sys/types.h>
155
+ /* Check that off_t can represent 2**63 - 1 correctly.
156
+ We cannot simply define LARGE_OFF_T to be 9223372036854775807,
157
+ since some C++ compilers masquerading as C compilers
158
+ incorrectly reject 9223372036854775807. */
159
+ #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
160
+ int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
161
+ && LARGE_OFF_T % 2147483647 == 1)
162
+ ? 1 : -1];
163
+ int main(void) { return 0; }
164
+ #endif
165
+
166
+ #ifdef HAVE_IOCTLSOCKET
167
+ /* includes start */
168
+ #ifdef _WIN32
169
+ # include <winsock2.h>
170
+ #endif
171
+ int main(void)
172
+ {
173
+ /* ioctlsocket source code */
174
+ int socket;
175
+ unsigned long flags = ioctlsocket(socket, FIONBIO, &flags);
176
+ ;
177
+ return 0;
178
+ }
179
+
180
+ #endif
181
+
182
+ #ifdef HAVE_IOCTLSOCKET_CAMEL
183
+ /* includes start */
184
+ #ifdef _WIN32
185
+ # include <winsock2.h>
186
+ #endif
187
+ int main(void)
188
+ {
189
+ /* IoctlSocket source code */
190
+ if(0 != IoctlSocket(0, 0, 0))
191
+ return 1;
192
+ ;
193
+ return 0;
194
+ }
195
+ #endif
196
+
197
+ #ifdef HAVE_IOCTLSOCKET_CAMEL_FIONBIO
198
+ /* includes start */
199
+ #ifdef _WIN32
200
+ # include <winsock2.h>
201
+ #endif
202
+ int main(void)
203
+ {
204
+ /* IoctlSocket source code */
205
+ long flags = 0;
206
+ if(0 != IoctlSocket(0, FIONBIO, &flags))
207
+ return 1;
208
+ ;
209
+ return 0;
210
+ }
211
+ #endif
212
+
213
+ #ifdef HAVE_IOCTLSOCKET_FIONBIO
214
+ /* includes start */
215
+ #ifdef _WIN32
216
+ # include <winsock2.h>
217
+ #endif
218
+ int main(void)
219
+ {
220
+ unsigned long flags = 0;
221
+ if(0 != ioctlsocket(0, FIONBIO, &flags))
222
+ return 1;
223
+ ;
224
+ return 0;
225
+ }
226
+ #endif
227
+
228
+ #ifdef HAVE_IOCTL_FIONBIO
229
+ /* headers for FIONBIO test */
230
+ /* includes start */
231
+ #ifdef HAVE_SYS_TYPES_H
232
+ # include <sys/types.h>
233
+ #endif
234
+ #ifdef HAVE_UNISTD_H
235
+ # include <unistd.h>
236
+ #endif
237
+ #ifdef HAVE_SYS_SOCKET_H
238
+ # include <sys/socket.h>
239
+ #endif
240
+ #ifdef HAVE_SYS_IOCTL_H
241
+ # include <sys/ioctl.h>
242
+ #endif
243
+ #ifdef HAVE_STROPTS_H
244
+ # include <stropts.h>
245
+ #endif
246
+ int main(void)
247
+ {
248
+ int flags = 0;
249
+ if(0 != ioctl(0, FIONBIO, &flags))
250
+ return 1;
251
+ ;
252
+ return 0;
253
+ }
254
+ #endif
255
+
256
+ #ifdef HAVE_IOCTL_SIOCGIFADDR
257
+ /* headers for FIONBIO test */
258
+ /* includes start */
259
+ #ifdef HAVE_SYS_TYPES_H
260
+ # include <sys/types.h>
261
+ #endif
262
+ #ifdef HAVE_UNISTD_H
263
+ # include <unistd.h>
264
+ #endif
265
+ #ifdef HAVE_SYS_SOCKET_H
266
+ # include <sys/socket.h>
267
+ #endif
268
+ #ifdef HAVE_SYS_IOCTL_H
269
+ # include <sys/ioctl.h>
270
+ #endif
271
+ #ifdef HAVE_STROPTS_H
272
+ # include <stropts.h>
273
+ #endif
274
+ #include <net/if.h>
275
+ int main(void)
276
+ {
277
+ struct ifreq ifr;
278
+ if(0 != ioctl(0, SIOCGIFADDR, &ifr))
279
+ return 1;
280
+ ;
281
+ return 0;
282
+ }
283
+ #endif
284
+
285
+ #ifdef HAVE_SETSOCKOPT_SO_NONBLOCK
286
+ /* includes start */
287
+ #ifdef _WIN32
288
+ # include <winsock2.h>
289
+ #endif
290
+ /* includes start */
291
+ #ifdef HAVE_SYS_TYPES_H
292
+ # include <sys/types.h>
293
+ #endif
294
+ #ifdef HAVE_SYS_SOCKET_H
295
+ # include <sys/socket.h>
296
+ #endif
297
+ /* includes end */
298
+ int main(void)
299
+ {
300
+ if(0 != setsockopt(0, SOL_SOCKET, SO_NONBLOCK, 0, 0))
301
+ return 1;
302
+ ;
303
+ return 0;
304
+ }
305
+ #endif
306
+
307
+ #ifdef HAVE_GLIBC_STRERROR_R
308
+ #include <string.h>
309
+ #include <errno.h>
310
+
311
+ void check(char c) {}
312
+
313
+ int main(void)
314
+ {
315
+ char buffer[1024];
316
+ /* This will not compile if strerror_r does not return a char* */
317
+ check(strerror_r(EACCES, buffer, sizeof(buffer))[0]);
318
+ return 0;
319
+ }
320
+ #endif
321
+
322
+ #ifdef HAVE_POSIX_STRERROR_R
323
+ #include <string.h>
324
+ #include <errno.h>
325
+
326
+ /* Float, because a pointer cannot be implicitly cast to float */
327
+ void check(float f) {}
328
+
329
+ int main(void)
330
+ {
331
+ char buffer[1024];
332
+ /* This will not compile if strerror_r does not return an int */
333
+ check(strerror_r(EACCES, buffer, sizeof(buffer)));
334
+ return 0;
335
+ }
336
+ #endif
337
+
338
+ #ifdef HAVE_FSETXATTR_6
339
+ #include <sys/xattr.h> /* header from libc, not from libattr */
340
+ int main(void)
341
+ {
342
+ fsetxattr(0, 0, 0, 0, 0, 0);
343
+ return 0;
344
+ }
345
+ #endif
346
+
347
+ #ifdef HAVE_FSETXATTR_5
348
+ #include <sys/xattr.h> /* header from libc, not from libattr */
349
+ int main(void)
350
+ {
351
+ fsetxattr(0, 0, 0, 0, 0);
352
+ return 0;
353
+ }
354
+ #endif
355
+
356
+ #ifdef HAVE_CLOCK_GETTIME_MONOTONIC
357
+ #include <time.h>
358
+ int main(void)
359
+ {
360
+ struct timespec ts = {0, 0};
361
+ clock_gettime(CLOCK_MONOTONIC, &ts);
362
+ return 0;
363
+ }
364
+ #endif
365
+
366
+ #ifdef HAVE_BUILTIN_AVAILABLE
367
+ int main(void)
368
+ {
369
+ if(__builtin_available(macOS 10.12, iOS 5.0, *)) {}
370
+ return 0;
371
+ }
372
+ #endif
373
+
374
+ #ifdef HAVE_ATOMIC
375
+ /* includes start */
376
+ #ifdef HAVE_SYS_TYPES_H
377
+ # include <sys/types.h>
378
+ #endif
379
+ #ifdef HAVE_UNISTD_H
380
+ # include <unistd.h>
381
+ #endif
382
+ #ifdef HAVE_STDATOMIC_H
383
+ # include <stdatomic.h>
384
+ #endif
385
+ /* includes end */
386
+
387
+ int main(void)
388
+ {
389
+ _Atomic int i = 1;
390
+ i = 0; /* Force an atomic-write operation. */
391
+ return i;
392
+ }
393
+ #endif
394
+
395
+ #ifdef HAVE_WIN32_WINNT
396
+ /* includes start */
397
+ #ifdef _WIN32
398
+ # ifndef NOGDI
399
+ # define NOGDI
400
+ # endif
401
+ # include <windows.h>
402
+ #endif
403
+ /* includes end */
404
+
405
+ #define enquote(x) #x
406
+ #define expand(x) enquote(x)
407
+ #pragma message("_WIN32_WINNT=" expand(_WIN32_WINNT))
408
+
409
+ int main(void)
410
+ {
411
+ return 0;
412
+ }
413
+ #endif
local-test-curl-delta-01/afc-curl/CMake/FindBearSSL.cmake ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #***************************************************************************
2
+ # _ _ ____ _
3
+ # Project ___| | | | _ \| |
4
+ # / __| | | | |_) | |
5
+ # | (__| |_| | _ <| |___
6
+ # \___|\___/|_| \_\_____|
7
+ #
8
+ # Copyright (C) Daniel Stenberg, <[email protected]>, et al.
9
+ #
10
+ # This software is licensed as described in the file COPYING, which
11
+ # you should have received as part of this distribution. The terms
12
+ # are also available at https://curl.se/docs/copyright.html.
13
+ #
14
+ # You may opt to use, copy, modify, merge, publish, distribute and/or sell
15
+ # copies of the Software, and permit persons to whom the Software is
16
+ # furnished to do so, under the terms of the COPYING file.
17
+ #
18
+ # This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19
+ # KIND, either express or implied.
20
+ #
21
+ # SPDX-License-Identifier: curl
22
+ #
23
+ ###########################################################################
24
+ # Find the BearSSL library
25
+ #
26
+ # Input variables:
27
+ #
28
+ # - `BEARSSL_INCLUDE_DIR`: The BearSSL include directory.
29
+ # - `BEARSSL_LIBRARY`: Path to `bearssl` library.
30
+ #
31
+ # Result variables:
32
+ #
33
+ # - `BEARSSL_FOUND`: System has BearSSL.
34
+ # - `BEARSSL_INCLUDE_DIRS`: The BearSSL include directories.
35
+ # - `BEARSSL_LIBRARIES`: The BearSSL library names.
36
+
37
+ if(DEFINED BEARSSL_INCLUDE_DIRS AND NOT DEFINED BEARSSL_INCLUDE_DIR)
38
+ message(WARNING "BEARSSL_INCLUDE_DIRS is deprecated, use BEARSSL_INCLUDE_DIR instead.")
39
+ set(BEARSSL_INCLUDE_DIR "${BEARSSL_INCLUDE_DIRS}")
40
+ unset(BEARSSL_INCLUDE_DIRS)
41
+ endif()
42
+
43
+ find_path(BEARSSL_INCLUDE_DIR NAMES "bearssl.h")
44
+ find_library(BEARSSL_LIBRARY NAMES "bearssl")
45
+
46
+ include(FindPackageHandleStandardArgs)
47
+ find_package_handle_standard_args(BearSSL
48
+ REQUIRED_VARS
49
+ BEARSSL_INCLUDE_DIR
50
+ BEARSSL_LIBRARY
51
+ )
52
+
53
+ if(BEARSSL_FOUND)
54
+ set(BEARSSL_INCLUDE_DIRS ${BEARSSL_INCLUDE_DIR})
55
+ set(BEARSSL_LIBRARIES ${BEARSSL_LIBRARY})
56
+ endif()
57
+
58
+ mark_as_advanced(BEARSSL_INCLUDE_DIR BEARSSL_LIBRARY)
local-test-curl-delta-01/afc-curl/CMake/FindBrotli.cmake ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #***************************************************************************
2
+ # _ _ ____ _
3
+ # Project ___| | | | _ \| |
4
+ # / __| | | | |_) | |
5
+ # | (__| |_| | _ <| |___
6
+ # \___|\___/|_| \_\_____|
7
+ #
8
+ # Copyright (C) Daniel Stenberg, <[email protected]>, et al.
9
+ #
10
+ # This software is licensed as described in the file COPYING, which
11
+ # you should have received as part of this distribution. The terms
12
+ # are also available at https://curl.se/docs/copyright.html.
13
+ #
14
+ # You may opt to use, copy, modify, merge, publish, distribute and/or sell
15
+ # copies of the Software, and permit persons to whom the Software is
16
+ # furnished to do so, under the terms of the COPYING file.
17
+ #
18
+ # This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19
+ # KIND, either express or implied.
20
+ #
21
+ # SPDX-License-Identifier: curl
22
+ #
23
+ ###########################################################################
24
+ # Find the brotli library
25
+ #
26
+ # Input variables:
27
+ #
28
+ # - `BROTLI_INCLUDE_DIR`: The brotli include directory.
29
+ # - `BROTLICOMMON_LIBRARY`: Path to `brotlicommon` library.
30
+ # - `BROTLIDEC_LIBRARY`: Path to `brotlidec` library.
31
+ #
32
+ # Result variables:
33
+ #
34
+ # - `BROTLI_FOUND`: System has brotli.
35
+ # - `BROTLI_INCLUDE_DIRS`: The brotli include directories.
36
+ # - `BROTLI_LIBRARIES`: The brotli library names.
37
+ # - `BROTLI_VERSION`: Version of brotli.
38
+
39
+ if(CURL_USE_PKGCONFIG)
40
+ find_package(PkgConfig QUIET)
41
+ pkg_check_modules(PC_BROTLI "libbrotlidec")
42
+ endif()
43
+
44
+ find_path(BROTLI_INCLUDE_DIR "brotli/decode.h"
45
+ HINTS
46
+ ${PC_BROTLI_INCLUDEDIR}
47
+ ${PC_BROTLI_INCLUDE_DIRS}
48
+ )
49
+
50
+ find_library(BROTLICOMMON_LIBRARY NAMES "brotlicommon"
51
+ HINTS
52
+ ${PC_BROTLI_LIBDIR}
53
+ ${PC_BROTLI_LIBRARY_DIRS}
54
+ )
55
+ find_library(BROTLIDEC_LIBRARY NAMES "brotlidec"
56
+ HINTS
57
+ ${PC_BROTLI_LIBDIR}
58
+ ${PC_BROTLI_LIBRARY_DIRS}
59
+ )
60
+
61
+ if(PC_BROTLI_VERSION)
62
+ set(BROTLI_VERSION ${PC_BROTLI_VERSION})
63
+ endif()
64
+
65
+ include(FindPackageHandleStandardArgs)
66
+ find_package_handle_standard_args(Brotli
67
+ REQUIRED_VARS
68
+ BROTLI_INCLUDE_DIR
69
+ BROTLIDEC_LIBRARY
70
+ BROTLICOMMON_LIBRARY
71
+ VERSION_VAR
72
+ BROTLI_VERSION
73
+ )
74
+
75
+ if(BROTLI_FOUND)
76
+ set(BROTLI_INCLUDE_DIRS ${BROTLI_INCLUDE_DIR})
77
+ set(BROTLI_LIBRARIES ${BROTLIDEC_LIBRARY} ${BROTLICOMMON_LIBRARY})
78
+ endif()
79
+
80
+ mark_as_advanced(BROTLI_INCLUDE_DIR BROTLIDEC_LIBRARY BROTLICOMMON_LIBRARY)
local-test-curl-delta-01/afc-curl/CMake/FindCares.cmake ADDED
@@ -0,0 +1,90 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #***************************************************************************
2
+ # _ _ ____ _
3
+ # Project ___| | | | _ \| |
4
+ # / __| | | | |_) | |
5
+ # | (__| |_| | _ <| |___
6
+ # \___|\___/|_| \_\_____|
7
+ #
8
+ # Copyright (C) Daniel Stenberg, <[email protected]>, et al.
9
+ #
10
+ # This software is licensed as described in the file COPYING, which
11
+ # you should have received as part of this distribution. The terms
12
+ # are also available at https://curl.se/docs/copyright.html.
13
+ #
14
+ # You may opt to use, copy, modify, merge, publish, distribute and/or sell
15
+ # copies of the Software, and permit persons to whom the Software is
16
+ # furnished to do so, under the terms of the COPYING file.
17
+ #
18
+ # This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19
+ # KIND, either express or implied.
20
+ #
21
+ # SPDX-License-Identifier: curl
22
+ #
23
+ ###########################################################################
24
+ # Find the c-ares library
25
+ #
26
+ # Input variables:
27
+ #
28
+ # - `CARES_INCLUDE_DIR`: The c-ares include directory.
29
+ # - `CARES_LIBRARY`: Path to `cares` library.
30
+ #
31
+ # Result variables:
32
+ #
33
+ # - `CARES_FOUND`: System has c-ares.
34
+ # - `CARES_INCLUDE_DIRS`: The c-ares include directories.
35
+ # - `CARES_LIBRARIES`: The c-ares library names.
36
+ # - `CARES_VERSION`: Version of c-ares.
37
+
38
+ if(CURL_USE_PKGCONFIG)
39
+ find_package(PkgConfig QUIET)
40
+ pkg_check_modules(PC_CARES "libcares")
41
+ endif()
42
+
43
+ find_path(CARES_INCLUDE_DIR NAMES "ares.h"
44
+ HINTS
45
+ ${PC_CARES_INCLUDEDIR}
46
+ ${PC_CARES_INCLUDE_DIRS}
47
+ )
48
+
49
+ find_library(CARES_LIBRARY NAMES ${CARES_NAMES} "cares"
50
+ HINTS
51
+ ${PC_CARES_LIBDIR}
52
+ ${PC_CARES_LIBRARY_DIRS}
53
+ )
54
+
55
+ if(PC_CARES_VERSION)
56
+ set(CARES_VERSION ${PC_CARES_VERSION})
57
+ elseif(CARES_INCLUDE_DIR AND EXISTS "${CARES_INCLUDE_DIR}/ares_version.h")
58
+ set(_version_regex1 "#[\t ]*define[\t ]+ARES_VERSION_MAJOR[\t ]+([0-9]+).*")
59
+ set(_version_regex2 "#[\t ]*define[\t ]+ARES_VERSION_MINOR[\t ]+([0-9]+).*")
60
+ set(_version_regex3 "#[\t ]*define[\t ]+ARES_VERSION_PATCH[\t ]+([0-9]+).*")
61
+ file(STRINGS "${CARES_INCLUDE_DIR}/ares_version.h" _version_str1 REGEX "${_version_regex1}")
62
+ file(STRINGS "${CARES_INCLUDE_DIR}/ares_version.h" _version_str2 REGEX "${_version_regex2}")
63
+ file(STRINGS "${CARES_INCLUDE_DIR}/ares_version.h" _version_str3 REGEX "${_version_regex3}")
64
+ string(REGEX REPLACE "${_version_regex1}" "\\1" _version_str1 "${_version_str1}")
65
+ string(REGEX REPLACE "${_version_regex2}" "\\1" _version_str2 "${_version_str2}")
66
+ string(REGEX REPLACE "${_version_regex3}" "\\1" _version_str3 "${_version_str3}")
67
+ set(CARES_VERSION "${_version_str1}.${_version_str2}.${_version_str3}")
68
+ unset(_version_regex1)
69
+ unset(_version_regex2)
70
+ unset(_version_regex3)
71
+ unset(_version_str1)
72
+ unset(_version_str2)
73
+ unset(_version_str3)
74
+ endif()
75
+
76
+ include(FindPackageHandleStandardArgs)
77
+ find_package_handle_standard_args(Cares
78
+ REQUIRED_VARS
79
+ CARES_INCLUDE_DIR
80
+ CARES_LIBRARY
81
+ VERSION_VAR
82
+ CARES_VERSION
83
+ )
84
+
85
+ if(CARES_FOUND)
86
+ set(CARES_INCLUDE_DIRS ${CARES_INCLUDE_DIR})
87
+ set(CARES_LIBRARIES ${CARES_LIBRARY})
88
+ endif()
89
+
90
+ mark_as_advanced(CARES_INCLUDE_DIR CARES_LIBRARY)
local-test-curl-delta-01/afc-curl/CMake/FindGSS.cmake ADDED
@@ -0,0 +1,357 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #***************************************************************************
2
+ # _ _ ____ _
3
+ # Project ___| | | | _ \| |
4
+ # / __| | | | |_) | |
5
+ # | (__| |_| | _ <| |___
6
+ # \___|\___/|_| \_\_____|
7
+ #
8
+ # Copyright (C) Daniel Stenberg, <[email protected]>, et al.
9
+ #
10
+ # This software is licensed as described in the file COPYING, which
11
+ # you should have received as part of this distribution. The terms
12
+ # are also available at https://curl.se/docs/copyright.html.
13
+ #
14
+ # You may opt to use, copy, modify, merge, publish, distribute and/or sell
15
+ # copies of the Software, and permit persons to whom the Software is
16
+ # furnished to do so, under the terms of the COPYING file.
17
+ #
18
+ # This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19
+ # KIND, either express or implied.
20
+ #
21
+ # SPDX-License-Identifier: curl
22
+ #
23
+ ###########################################################################
24
+ # Find the GSS Kerberos library
25
+ #
26
+ # Input variables:
27
+ #
28
+ # - `GSS_ROOT_DIR`: Set this variable to the root installation of GSS. (also supported as environment)
29
+ #
30
+ # Result variables:
31
+ #
32
+ # - `GSS_FOUND`: System has the Heimdal library.
33
+ # - `GSS_FLAVOUR`: "GNU", "MIT" or "Heimdal" if anything found.
34
+ # - `GSS_INCLUDE_DIRS`: The GSS include directories.
35
+ # - `GSS_LIBRARIES`: The GSS library names.
36
+ # - `GSS_LIBRARY_DIRS`: The GSS library directories.
37
+ # - `GSS_PC_REQUIRES`: The GSS pkg-config packages.
38
+ # - `GSS_CFLAGS`: Required compiler flags.
39
+ # - `GSS_VERSION`: This is set to version advertised by pkg-config or read from manifest.
40
+ # In case the library is found but no version info available it is set to "unknown"
41
+
42
+ set(_gnu_modname "gss")
43
+ set(_mit_modname "mit-krb5-gssapi")
44
+ set(_heimdal_modname "heimdal-gssapi")
45
+
46
+ include(CheckIncludeFile)
47
+ include(CheckIncludeFiles)
48
+ include(CheckTypeSize)
49
+
50
+ set(_gss_root_hints
51
+ "${GSS_ROOT_DIR}"
52
+ "$ENV{GSS_ROOT_DIR}"
53
+ )
54
+
55
+ # Try to find library using system pkg-config if user did not specify root dir
56
+ if(NOT GSS_ROOT_DIR AND NOT "$ENV{GSS_ROOT_DIR}")
57
+ if(CURL_USE_PKGCONFIG)
58
+ find_package(PkgConfig QUIET)
59
+ pkg_search_module(_GSS ${_gnu_modname} ${_mit_modname} ${_heimdal_modname})
60
+ list(APPEND _gss_root_hints "${_GSS_PREFIX}")
61
+ endif()
62
+ if(WIN32)
63
+ list(APPEND _gss_root_hints "[HKEY_LOCAL_MACHINE\\SOFTWARE\\MIT\\Kerberos;InstallDir]")
64
+ endif()
65
+ endif()
66
+
67
+ if(NOT _GSS_FOUND) # Not found by pkg-config. Let us take more traditional approach.
68
+ find_file(_gss_configure_script
69
+ NAMES
70
+ "krb5-config"
71
+ HINTS
72
+ ${_gss_root_hints}
73
+ PATH_SUFFIXES
74
+ "bin"
75
+ NO_CMAKE_PATH
76
+ NO_CMAKE_ENVIRONMENT_PATH
77
+ )
78
+
79
+ # If not found in user-supplied directories, maybe system knows better
80
+ find_file(_gss_configure_script
81
+ NAMES
82
+ "krb5-config"
83
+ PATH_SUFFIXES
84
+ "bin"
85
+ )
86
+
87
+ if(_gss_configure_script)
88
+ execute_process(
89
+ COMMAND ${_gss_configure_script} "--cflags" "gssapi"
90
+ OUTPUT_VARIABLE _GSS_CFLAGS
91
+ RESULT_VARIABLE _gss_configure_failed
92
+ OUTPUT_STRIP_TRAILING_WHITESPACE
93
+ )
94
+ message(STATUS "FindGSS krb5-config --cflags: ${_GSS_CFLAGS}")
95
+ if(NOT _gss_configure_failed) # 0 means success
96
+ # Should also work in an odd case when multiple directories are given
97
+ string(STRIP "${_GSS_CFLAGS}" _GSS_CFLAGS)
98
+ string(REGEX REPLACE " +-I" ";" _GSS_CFLAGS "${_GSS_CFLAGS}")
99
+ string(REGEX REPLACE " +-([^I][^ \\t;]*)" ";-\\1" _GSS_CFLAGS "${_GSS_CFLAGS}")
100
+
101
+ foreach(_flag IN LISTS _GSS_CFLAGS)
102
+ if(_flag MATCHES "^-I.*")
103
+ string(REGEX REPLACE "^-I" "" _val "${_flag}")
104
+ list(APPEND _GSS_INCLUDE_DIRS "${_val}")
105
+ else()
106
+ list(APPEND _GSS_CFLAGS "${_flag}")
107
+ endif()
108
+ endforeach()
109
+ endif()
110
+
111
+ execute_process(
112
+ COMMAND ${_gss_configure_script} "--libs" "gssapi"
113
+ OUTPUT_VARIABLE _gss_lib_flags
114
+ RESULT_VARIABLE _gss_configure_failed
115
+ OUTPUT_STRIP_TRAILING_WHITESPACE
116
+ )
117
+ message(STATUS "FindGSS krb5-config --libs: ${_gss_lib_flags}")
118
+
119
+ if(NOT _gss_configure_failed) # 0 means success
120
+ # This script gives us libraries and link directories. Blah. We have to deal with it.
121
+ string(STRIP "${_gss_lib_flags}" _gss_lib_flags)
122
+ string(REGEX REPLACE " +-(L|l)" ";-\\1" _gss_lib_flags "${_gss_lib_flags}")
123
+ string(REGEX REPLACE " +-([^Ll][^ \\t;]*)" ";-\\1" _gss_lib_flags "${_gss_lib_flags}")
124
+
125
+ foreach(_flag IN LISTS _gss_lib_flags)
126
+ if(_flag MATCHES "^-l.*")
127
+ string(REGEX REPLACE "^-l" "" _val "${_flag}")
128
+ list(APPEND _GSS_LIBRARIES "${_val}")
129
+ elseif(_flag MATCHES "^-L.*")
130
+ string(REGEX REPLACE "^-L" "" _val "${_flag}")
131
+ list(APPEND _GSS_LIBRARY_DIRS "${_val}")
132
+ endif()
133
+ endforeach()
134
+ endif()
135
+
136
+ execute_process(
137
+ COMMAND ${_gss_configure_script} "--version"
138
+ OUTPUT_VARIABLE _GSS_VERSION
139
+ RESULT_VARIABLE _gss_configure_failed
140
+ OUTPUT_STRIP_TRAILING_WHITESPACE
141
+ )
142
+
143
+ # Older versions may not have the "--version" parameter. In this case we just do not care.
144
+ if(_gss_configure_failed)
145
+ set(_GSS_VERSION 0)
146
+ endif()
147
+
148
+ execute_process(
149
+ COMMAND ${_gss_configure_script} "--vendor"
150
+ OUTPUT_VARIABLE _gss_vendor
151
+ RESULT_VARIABLE _gss_configure_failed
152
+ OUTPUT_STRIP_TRAILING_WHITESPACE
153
+ )
154
+
155
+ # Older versions may not have the "--vendor" parameter. In this case we just do not care.
156
+ if(_gss_configure_failed)
157
+ set(GSS_FLAVOUR "Heimdal") # most probably, should not really matter
158
+ else()
159
+ if(_gss_vendor MATCHES ".*H|heimdal.*")
160
+ set(GSS_FLAVOUR "Heimdal")
161
+ else()
162
+ set(GSS_FLAVOUR "MIT")
163
+ endif()
164
+ endif()
165
+
166
+ else() # Either there is no config script or we are on a platform that does not provide one (Windows?)
167
+
168
+ find_path(_GSS_INCLUDE_DIRS NAMES "gssapi/gssapi.h"
169
+ HINTS
170
+ ${_gss_root_hints}
171
+ PATH_SUFFIXES
172
+ "include"
173
+ "inc"
174
+ )
175
+
176
+ if(_GSS_INCLUDE_DIRS) # jay, we have found something
177
+ cmake_push_check_state()
178
+ set(CMAKE_REQUIRED_INCLUDES "${_GSS_INCLUDE_DIRS}")
179
+ check_include_files("gssapi/gssapi_generic.h;gssapi/gssapi_krb5.h" _gss_have_mit_headers)
180
+
181
+ if(_gss_have_mit_headers)
182
+ set(GSS_FLAVOUR "MIT")
183
+ else()
184
+ # Prevent compiling the header - just check if we can include it
185
+ list(APPEND CMAKE_REQUIRED_DEFINITIONS "-D__ROKEN_H__")
186
+ check_include_file("roken.h" _gss_have_roken_h)
187
+
188
+ check_include_file("heimdal/roken.h" _gss_have_heimdal_roken_h)
189
+ if(_gss_have_roken_h OR _gss_have_heimdal_roken_h)
190
+ set(GSS_FLAVOUR "Heimdal")
191
+ endif()
192
+ endif()
193
+ cmake_pop_check_state()
194
+ else()
195
+ # I am not convinced if this is the right way but this is what autotools do at the moment
196
+ find_path(_GSS_INCLUDE_DIRS NAMES "gssapi.h"
197
+ HINTS
198
+ ${_gss_root_hints}
199
+ PATH_SUFFIXES
200
+ "include"
201
+ "inc"
202
+ )
203
+
204
+ if(_GSS_INCLUDE_DIRS)
205
+ set(GSS_FLAVOUR "Heimdal")
206
+ else()
207
+ find_path(_GSS_INCLUDE_DIRS NAMES "gss.h"
208
+ HINTS
209
+ ${_gss_root_hints}
210
+ PATH_SUFFIXES
211
+ "include"
212
+ )
213
+
214
+ if(_GSS_INCLUDE_DIRS)
215
+ set(GSS_FLAVOUR "GNU")
216
+ set(GSS_PC_REQUIRES "gss")
217
+ endif()
218
+ endif()
219
+ endif()
220
+
221
+ # If we have headers, check if we can link libraries
222
+ if(GSS_FLAVOUR)
223
+ set(_gss_libdir_suffixes "")
224
+ set(_gss_libdir_hints ${_gss_root_hints})
225
+ get_filename_component(_gss_calculated_potential_root "${_GSS_INCLUDE_DIRS}" DIRECTORY)
226
+ list(APPEND _gss_libdir_hints ${_gss_calculated_potential_root})
227
+
228
+ if(WIN32)
229
+ if(CMAKE_SIZEOF_VOID_P EQUAL 8)
230
+ list(APPEND _gss_libdir_suffixes "lib/AMD64")
231
+ if(GSS_FLAVOUR STREQUAL "GNU")
232
+ set(_gss_libname "gss")
233
+ elseif(GSS_FLAVOUR STREQUAL "MIT")
234
+ set(_gss_libname "gssapi64")
235
+ else()
236
+ set(_gss_libname "libgssapi")
237
+ endif()
238
+ else()
239
+ list(APPEND _gss_libdir_suffixes "lib/i386")
240
+ if(GSS_FLAVOUR STREQUAL "GNU")
241
+ set(_gss_libname "gss")
242
+ elseif(GSS_FLAVOUR STREQUAL "MIT")
243
+ set(_gss_libname "gssapi32")
244
+ else()
245
+ set(_gss_libname "libgssapi")
246
+ endif()
247
+ endif()
248
+ else()
249
+ list(APPEND _gss_libdir_suffixes "lib;lib64") # those suffixes are not checked for HINTS
250
+ if(GSS_FLAVOUR STREQUAL "GNU")
251
+ set(_gss_libname "gss")
252
+ elseif(GSS_FLAVOUR STREQUAL "MIT")
253
+ set(_gss_libname "gssapi_krb5")
254
+ else()
255
+ set(_gss_libname "gssapi")
256
+ endif()
257
+ endif()
258
+
259
+ find_library(_GSS_LIBRARIES NAMES ${_gss_libname}
260
+ HINTS
261
+ ${_gss_libdir_hints}
262
+ PATH_SUFFIXES
263
+ ${_gss_libdir_suffixes}
264
+ )
265
+ endif()
266
+ endif()
267
+ else()
268
+ # _GSS_MODULE_NAME set since CMake 3.16
269
+ if(_GSS_MODULE_NAME STREQUAL _gnu_modname OR _GSS_${_gnu_modname}_VERSION)
270
+ set(GSS_FLAVOUR "GNU")
271
+ set(GSS_PC_REQUIRES "gss")
272
+ if(NOT _GSS_VERSION) # for old CMake versions?
273
+ set(_GSS_VERSION ${_GSS_${_gnu_modname}_VERSION})
274
+ endif()
275
+ elseif(_GSS_MODULE_NAME STREQUAL _mit_modname OR _GSS_${_mit_modname}_VERSION)
276
+ set(GSS_FLAVOUR "MIT")
277
+ set(GSS_PC_REQUIRES "mit-krb5-gssapi")
278
+ if(NOT _GSS_VERSION) # for old CMake versions?
279
+ set(_GSS_VERSION ${_GSS_${_mit_modname}_VERSION})
280
+ endif()
281
+ else()
282
+ set(GSS_FLAVOUR "Heimdal")
283
+ set(GSS_PC_REQUIRES "heimdal-gssapi")
284
+ if(NOT _GSS_VERSION) # for old CMake versions?
285
+ set(_GSS_VERSION ${_GSS_${_heimdal_modname}_VERSION})
286
+ endif()
287
+ endif()
288
+ message(STATUS "Found GSS/${GSS_FLAVOUR} (via pkg-config): ${_GSS_INCLUDE_DIRS} (found version \"${_GSS_VERSION}\")")
289
+ endif()
290
+
291
+ string(REPLACE ";" " " _GSS_CFLAGS "${_GSS_CFLAGS}")
292
+
293
+ set(GSS_INCLUDE_DIRS ${_GSS_INCLUDE_DIRS})
294
+ set(GSS_LIBRARIES ${_GSS_LIBRARIES})
295
+ set(GSS_LIBRARY_DIRS ${_GSS_LIBRARY_DIRS})
296
+ set(GSS_CFLAGS ${_GSS_CFLAGS})
297
+ set(GSS_VERSION ${_GSS_VERSION})
298
+
299
+ if(GSS_FLAVOUR)
300
+ if(NOT GSS_VERSION AND GSS_FLAVOUR STREQUAL "Heimdal")
301
+ if(CMAKE_SIZEOF_VOID_P EQUAL 8)
302
+ set(_heimdal_manifest_file "Heimdal.Application.amd64.manifest")
303
+ else()
304
+ set(_heimdal_manifest_file "Heimdal.Application.x86.manifest")
305
+ endif()
306
+
307
+ if(EXISTS "${GSS_INCLUDE_DIRS}/${_heimdal_manifest_file}")
308
+ file(STRINGS "${GSS_INCLUDE_DIRS}/${_heimdal_manifest_file}" _heimdal_version_str
309
+ REGEX "^.*version=\"[0-9]\\.[^\"]+\".*$")
310
+
311
+ string(REGEX MATCH "[0-9]\\.[^\"]+" GSS_VERSION "${_heimdal_version_str}")
312
+ endif()
313
+
314
+ if(NOT GSS_VERSION)
315
+ set(GSS_VERSION "Heimdal Unknown")
316
+ endif()
317
+ elseif(NOT GSS_VERSION AND GSS_FLAVOUR STREQUAL "MIT")
318
+ get_filename_component(_mit_version "[HKEY_LOCAL_MACHINE\\SOFTWARE\\MIT\\Kerberos\\SDK\\CurrentVersion;VersionString]" NAME
319
+ CACHE)
320
+ if(WIN32 AND _mit_version)
321
+ set(GSS_VERSION "${_mit_version}")
322
+ else()
323
+ set(GSS_VERSION "MIT Unknown")
324
+ endif()
325
+ elseif(NOT GSS_VERSION AND GSS_FLAVOUR STREQUAL "GNU")
326
+ if(GSS_INCLUDE_DIRS AND EXISTS "${GSS_INCLUDE_DIRS}/gss.h")
327
+ set(_version_regex "#[\t ]*define[\t ]+GSS_VERSION[\t ]+\"([^\"]*)\"")
328
+ file(STRINGS "${GSS_INCLUDE_DIRS}/gss.h" _version_str REGEX "${_version_regex}")
329
+ string(REGEX REPLACE "${_version_regex}" "\\1" _version_str "${_version_str}")
330
+ set(GSS_VERSION "${_version_str}")
331
+ unset(_version_regex)
332
+ unset(_version_str)
333
+ endif()
334
+ endif()
335
+ endif()
336
+
337
+ include(FindPackageHandleStandardArgs)
338
+ find_package_handle_standard_args(GSS
339
+ REQUIRED_VARS
340
+ GSS_FLAVOUR
341
+ GSS_LIBRARIES
342
+ VERSION_VAR
343
+ GSS_VERSION
344
+ FAIL_MESSAGE
345
+ "Could NOT find GSS, try to set the path to GSS root folder in the system variable GSS_ROOT_DIR"
346
+ )
347
+
348
+ mark_as_advanced(
349
+ _GSS_CFLAGS
350
+ _GSS_FOUND
351
+ _GSS_INCLUDE_DIRS
352
+ _GSS_LIBRARIES
353
+ _GSS_LIBRARY_DIRS
354
+ _GSS_MODULE_NAME
355
+ _GSS_PREFIX
356
+ _GSS_VERSION
357
+ )
local-test-curl-delta-01/afc-curl/CMake/FindLibgsasl.cmake ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #***************************************************************************
2
+ # _ _ ____ _
3
+ # Project ___| | | | _ \| |
4
+ # / __| | | | |_) | |
5
+ # | (__| |_| | _ <| |___
6
+ # \___|\___/|_| \_\_____|
7
+ #
8
+ # Copyright (C) Daniel Stenberg, <[email protected]>, et al.
9
+ #
10
+ # This software is licensed as described in the file COPYING, which
11
+ # you should have received as part of this distribution. The terms
12
+ # are also available at https://curl.se/docs/copyright.html.
13
+ #
14
+ # You may opt to use, copy, modify, merge, publish, distribute and/or sell
15
+ # copies of the Software, and permit persons to whom the Software is
16
+ # furnished to do so, under the terms of the COPYING file.
17
+ #
18
+ # This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19
+ # KIND, either express or implied.
20
+ #
21
+ # SPDX-License-Identifier: curl
22
+ #
23
+ ###########################################################################
24
+ # Find the libgsasl library
25
+ #
26
+ # Input variables:
27
+ #
28
+ # - `LIBGSASL_INCLUDE_DIR`: The libgsasl include directory.
29
+ # - `LIBGSASL_LIBRARY`: Path to `libgsasl` library.
30
+ #
31
+ # Result variables:
32
+ #
33
+ # - `LIBGSASL_FOUND`: System has libgsasl.
34
+ # - `LIBGSASL_INCLUDE_DIRS`: The libgsasl include directories.
35
+ # - `LIBGSASL_LIBRARIES`: The libgsasl library names.
36
+ # - `LIBGSASL_LIBRARY_DIRS`: The libgsasl library directories.
37
+ # - `LIBGSASL_CFLAGS`: Required compiler flags.
38
+ # - `LIBGSASL_VERSION`: Version of libgsasl.
39
+
40
+ if(CURL_USE_PKGCONFIG AND
41
+ NOT DEFINED LIBGSASL_INCLUDE_DIR AND
42
+ NOT DEFINED LIBGSASL_LIBRARY)
43
+ find_package(PkgConfig QUIET)
44
+ pkg_check_modules(LIBGSASL "libgsasl")
45
+ endif()
46
+
47
+ if(LIBGSASL_FOUND)
48
+ string(REPLACE ";" " " LIBGSASL_CFLAGS "${LIBGSASL_CFLAGS}")
49
+ message(STATUS "Found Libgsasl (via pkg-config): ${LIBGSASL_INCLUDE_DIRS} (found version \"${LIBGSASL_VERSION}\")")
50
+ else()
51
+ find_path(LIBGSASL_INCLUDE_DIR NAMES "gsasl.h")
52
+ find_library(LIBGSASL_LIBRARY NAMES "gsasl" "libgsasl")
53
+
54
+ unset(LIBGSASL_VERSION CACHE)
55
+ if(LIBGSASL_INCLUDE_DIR AND EXISTS "${LIBGSASL_INCLUDE_DIR}/gsasl-version.h")
56
+ set(_version_regex "#[\t ]*define[\t ]+GSASL_VERSION[\t ]+\"([^\"]*)\"")
57
+ file(STRINGS "${LIBGSASL_INCLUDE_DIR}/gsasl-version.h" _version_str REGEX "${_version_regex}")
58
+ string(REGEX REPLACE "${_version_regex}" "\\1" _version_str "${_version_str}")
59
+ set(LIBGSASL_VERSION "${_version_str}")
60
+ unset(_version_regex)
61
+ unset(_version_str)
62
+ endif()
63
+
64
+ include(FindPackageHandleStandardArgs)
65
+ find_package_handle_standard_args(Libgsasl
66
+ REQUIRED_VARS
67
+ LIBGSASL_INCLUDE_DIR
68
+ LIBGSASL_LIBRARY
69
+ VERSION_VAR
70
+ LIBGSASL_VERSION
71
+ )
72
+
73
+ if(LIBGSASL_FOUND)
74
+ set(LIBGSASL_INCLUDE_DIRS ${LIBGSASL_INCLUDE_DIR})
75
+ set(LIBGSASL_LIBRARIES ${LIBGSASL_LIBRARY})
76
+ endif()
77
+
78
+ mark_as_advanced(LIBGSASL_INCLUDE_DIR LIBGSASL_LIBRARY)
79
+ endif()
local-test-curl-delta-01/afc-curl/CMake/FindLibidn2.cmake ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #***************************************************************************
2
+ # _ _ ____ _
3
+ # Project ___| | | | _ \| |
4
+ # / __| | | | |_) | |
5
+ # | (__| |_| | _ <| |___
6
+ # \___|\___/|_| \_\_____|
7
+ #
8
+ # Copyright (C) Daniel Stenberg, <[email protected]>, et al.
9
+ #
10
+ # This software is licensed as described in the file COPYING, which
11
+ # you should have received as part of this distribution. The terms
12
+ # are also available at https://curl.se/docs/copyright.html.
13
+ #
14
+ # You may opt to use, copy, modify, merge, publish, distribute and/or sell
15
+ # copies of the Software, and permit persons to whom the Software is
16
+ # furnished to do so, under the terms of the COPYING file.
17
+ #
18
+ # This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19
+ # KIND, either express or implied.
20
+ #
21
+ # SPDX-License-Identifier: curl
22
+ #
23
+ ###########################################################################
24
+ # Find the libidn2 library
25
+ #
26
+ # Input variables:
27
+ #
28
+ # - `LIBIDN2_INCLUDE_DIR`: The libidn2 include directory.
29
+ # - `LIBIDN2_LIBRARY`: Path to `libidn2` library.
30
+ #
31
+ # Result variables:
32
+ #
33
+ # - `LIBIDN2_FOUND`: System has libidn2.
34
+ # - `LIBIDN2_INCLUDE_DIRS`: The libidn2 include directories.
35
+ # - `LIBIDN2_LIBRARIES`: The libidn2 library names.
36
+ # - `LIBIDN2_LIBRARY_DIRS`: The libidn2 library directories.
37
+ # - `LIBIDN2_CFLAGS`: Required compiler flags.
38
+ # - `LIBIDN2_VERSION`: Version of libidn2.
39
+
40
+ if(CURL_USE_PKGCONFIG AND
41
+ NOT DEFINED LIBIDN2_INCLUDE_DIR AND
42
+ NOT DEFINED LIBIDN2_LIBRARY)
43
+ find_package(PkgConfig QUIET)
44
+ pkg_check_modules(LIBIDN2 "libidn2")
45
+ endif()
46
+
47
+ if(LIBIDN2_FOUND)
48
+ string(REPLACE ";" " " LIBIDN2_CFLAGS "${LIBIDN2_CFLAGS}")
49
+ message(STATUS "Found Libidn2 (via pkg-config): ${LIBIDN2_INCLUDE_DIRS} (found version \"${LIBIDN2_VERSION}\")")
50
+ else()
51
+ find_path(LIBIDN2_INCLUDE_DIR NAMES "idn2.h")
52
+ find_library(LIBIDN2_LIBRARY NAMES "idn2" "libidn2")
53
+
54
+ unset(LIBIDN2_VERSION CACHE)
55
+ if(LIBIDN2_INCLUDE_DIR AND EXISTS "${LIBIDN2_INCLUDE_DIR}/idn2.h")
56
+ set(_version_regex "#[\t ]*define[\t ]+IDN2_VERSION[\t ]+\"([^\"]*)\"")
57
+ file(STRINGS "${LIBIDN2_INCLUDE_DIR}/idn2.h" _version_str REGEX "${_version_regex}")
58
+ string(REGEX REPLACE "${_version_regex}" "\\1" _version_str "${_version_str}")
59
+ set(LIBIDN2_VERSION "${_version_str}")
60
+ unset(_version_regex)
61
+ unset(_version_str)
62
+ endif()
63
+
64
+ include(FindPackageHandleStandardArgs)
65
+ find_package_handle_standard_args(Libidn2
66
+ REQUIRED_VARS
67
+ LIBIDN2_INCLUDE_DIR
68
+ LIBIDN2_LIBRARY
69
+ VERSION_VAR
70
+ LIBIDN2_VERSION
71
+ )
72
+
73
+ if(LIBIDN2_FOUND)
74
+ set(LIBIDN2_INCLUDE_DIRS ${LIBIDN2_INCLUDE_DIR})
75
+ set(LIBIDN2_LIBRARIES ${LIBIDN2_LIBRARY})
76
+ endif()
77
+
78
+ mark_as_advanced(LIBIDN2_INCLUDE_DIR LIBIDN2_LIBRARY)
79
+ endif()
local-test-curl-delta-01/afc-curl/CMake/FindLibpsl.cmake ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #***************************************************************************
2
+ # _ _ ____ _
3
+ # Project ___| | | | _ \| |
4
+ # / __| | | | |_) | |
5
+ # | (__| |_| | _ <| |___
6
+ # \___|\___/|_| \_\_____|
7
+ #
8
+ # Copyright (C) Daniel Stenberg, <[email protected]>, et al.
9
+ #
10
+ # This software is licensed as described in the file COPYING, which
11
+ # you should have received as part of this distribution. The terms
12
+ # are also available at https://curl.se/docs/copyright.html.
13
+ #
14
+ # You may opt to use, copy, modify, merge, publish, distribute and/or sell
15
+ # copies of the Software, and permit persons to whom the Software is
16
+ # furnished to do so, under the terms of the COPYING file.
17
+ #
18
+ # This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19
+ # KIND, either express or implied.
20
+ #
21
+ # SPDX-License-Identifier: curl
22
+ #
23
+ ###########################################################################
24
+ # Find the libpsl library
25
+ #
26
+ # Input variables:
27
+ #
28
+ # - `LIBPSL_INCLUDE_DIR`: The libpsl include directory.
29
+ # - `LIBPSL_LIBRARY`: Path to `libpsl` library.
30
+ #
31
+ # Result variables:
32
+ #
33
+ # - `LIBPSL_FOUND`: System has libpsl.
34
+ # - `LIBPSL_INCLUDE_DIRS`: The libpsl include directories.
35
+ # - `LIBPSL_LIBRARIES`: The libpsl library names.
36
+ # - `LIBPSL_VERSION`: Version of libpsl.
37
+
38
+ if(CURL_USE_PKGCONFIG)
39
+ find_package(PkgConfig QUIET)
40
+ pkg_check_modules(PC_LIBPSL "libpsl")
41
+ endif()
42
+
43
+ find_path(LIBPSL_INCLUDE_DIR NAMES "libpsl.h"
44
+ HINTS
45
+ ${PC_LIBPSL_INCLUDEDIR}
46
+ ${PC_LIBPSL_INCLUDE_DIRS}
47
+ )
48
+
49
+ find_library(LIBPSL_LIBRARY NAMES "psl" "libpsl"
50
+ HINTS
51
+ ${PC_LIBPSL_LIBDIR}
52
+ ${PC_LIBPSL_LIBRARY_DIRS}
53
+ )
54
+
55
+ if(PC_LIBPSL_VERSION)
56
+ set(LIBPSL_VERSION ${PC_LIBPSL_VERSION})
57
+ elseif(LIBPSL_INCLUDE_DIR AND EXISTS "${LIBPSL_INCLUDE_DIR}/libpsl.h")
58
+ set(_version_regex "#[\t ]*define[\t ]+PSL_VERSION[\t ]+\"([^\"]*)\"")
59
+ file(STRINGS "${LIBPSL_INCLUDE_DIR}/libpsl.h" _version_str REGEX "${_version_regex}")
60
+ string(REGEX REPLACE "${_version_regex}" "\\1" _version_str "${_version_str}")
61
+ set(LIBPSL_VERSION "${_version_str}")
62
+ unset(_version_regex)
63
+ unset(_version_str)
64
+ endif()
65
+
66
+ include(FindPackageHandleStandardArgs)
67
+ find_package_handle_standard_args(Libpsl
68
+ REQUIRED_VARS
69
+ LIBPSL_INCLUDE_DIR
70
+ LIBPSL_LIBRARY
71
+ VERSION_VAR
72
+ LIBPSL_VERSION
73
+ )
74
+
75
+ if(LIBPSL_FOUND)
76
+ set(LIBPSL_INCLUDE_DIRS ${LIBPSL_INCLUDE_DIR})
77
+ set(LIBPSL_LIBRARIES ${LIBPSL_LIBRARY})
78
+ endif()
79
+
80
+ mark_as_advanced(LIBPSL_INCLUDE_DIR LIBPSL_LIBRARY)
local-test-curl-delta-01/afc-curl/CMake/FindLibssh.cmake ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #***************************************************************************
2
+ # _ _ ____ _
3
+ # Project ___| | | | _ \| |
4
+ # / __| | | | |_) | |
5
+ # | (__| |_| | _ <| |___
6
+ # \___|\___/|_| \_\_____|
7
+ #
8
+ # Copyright (C) Daniel Stenberg, <[email protected]>, et al.
9
+ #
10
+ # This software is licensed as described in the file COPYING, which
11
+ # you should have received as part of this distribution. The terms
12
+ # are also available at https://curl.se/docs/copyright.html.
13
+ #
14
+ # You may opt to use, copy, modify, merge, publish, distribute and/or sell
15
+ # copies of the Software, and permit persons to whom the Software is
16
+ # furnished to do so, under the terms of the COPYING file.
17
+ #
18
+ # This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19
+ # KIND, either express or implied.
20
+ #
21
+ # SPDX-License-Identifier: curl
22
+ #
23
+ ###########################################################################
24
+ # Find the libssh library
25
+ #
26
+ # Input variables:
27
+ #
28
+ # LIBSSH_INCLUDE_DIR The libssh include directory.
29
+ # LIBSSH_LIBRARY Path to libssh library.
30
+ #
31
+ # Result variables:
32
+ #
33
+ # LIBSSH_FOUND System has libssh.
34
+ # LIBSSH_INCLUDE_DIRS The libssh include directories.
35
+ # LIBSSH_LIBRARIES The libssh library names.
36
+ # LIBSSH_LIBRARY_DIRS The libssh library directories.
37
+ # LIBSSH_CFLAGS Required compiler flags.
38
+ # LIBSSH_VERSION Version of libssh.
39
+
40
+ if(CURL_USE_PKGCONFIG AND
41
+ NOT DEFINED LIBSSH_INCLUDE_DIR AND
42
+ NOT DEFINED LIBSSH_LIBRARY)
43
+ find_package(PkgConfig QUIET)
44
+ pkg_check_modules(LIBSSH "libssh")
45
+ endif()
46
+
47
+ if(LIBSSH_FOUND)
48
+ string(REPLACE ";" " " LIBSSH_CFLAGS "${LIBSSH_CFLAGS}")
49
+ message(STATUS "Found Libssh (via pkg-config): ${LIBSSH_INCLUDE_DIRS} (found version \"${LIBSSH_VERSION}\")")
50
+ else()
51
+ find_path(LIBSSH_INCLUDE_DIR NAMES "libssh/libssh.h")
52
+ find_library(LIBSSH_LIBRARY NAMES "ssh" "libssh")
53
+
54
+ unset(LIBSSH_VERSION CACHE)
55
+ if(LIBSSH_INCLUDE_DIR AND EXISTS "${LIBSSH_INCLUDE_DIR}/libssh/libssh_version.h")
56
+ set(_version_regex1 "#[\t ]*define[\t ]+LIBSSH_VERSION_MAJOR[\t ]+([0-9]+).*")
57
+ set(_version_regex2 "#[\t ]*define[\t ]+LIBSSH_VERSION_MINOR[\t ]+([0-9]+).*")
58
+ set(_version_regex3 "#[\t ]*define[\t ]+LIBSSH_VERSION_MICRO[\t ]+([0-9]+).*")
59
+ file(STRINGS "${LIBSSH_INCLUDE_DIR}/libssh/libssh_version.h" _version_str1 REGEX "${_version_regex1}")
60
+ file(STRINGS "${LIBSSH_INCLUDE_DIR}/libssh/libssh_version.h" _version_str2 REGEX "${_version_regex2}")
61
+ file(STRINGS "${LIBSSH_INCLUDE_DIR}/libssh/libssh_version.h" _version_str3 REGEX "${_version_regex3}")
62
+ string(REGEX REPLACE "${_version_regex1}" "\\1" _version_str1 "${_version_str1}")
63
+ string(REGEX REPLACE "${_version_regex2}" "\\1" _version_str2 "${_version_str2}")
64
+ string(REGEX REPLACE "${_version_regex3}" "\\1" _version_str3 "${_version_str3}")
65
+ set(LIBSSH_VERSION "${_version_str1}.${_version_str2}.${_version_str3}")
66
+ unset(_version_regex1)
67
+ unset(_version_regex2)
68
+ unset(_version_regex3)
69
+ unset(_version_str1)
70
+ unset(_version_str2)
71
+ unset(_version_str3)
72
+ endif()
73
+
74
+ include(FindPackageHandleStandardArgs)
75
+ find_package_handle_standard_args(Libssh
76
+ REQUIRED_VARS
77
+ LIBSSH_INCLUDE_DIR
78
+ LIBSSH_LIBRARY
79
+ VERSION_VAR
80
+ LIBSSH_VERSION
81
+ )
82
+
83
+ if(LIBSSH_FOUND)
84
+ set(LIBSSH_INCLUDE_DIRS ${LIBSSH_INCLUDE_DIR})
85
+ set(LIBSSH_LIBRARIES ${LIBSSH_LIBRARY})
86
+ endif()
87
+
88
+ mark_as_advanced(LIBSSH_INCLUDE_DIR LIBSSH_LIBRARY)
89
+ endif()
90
+
91
+ if(LIBSSH_FOUND AND WIN32)
92
+ list(APPEND LIBSSH_LIBRARIES "iphlpapi") # for if_nametoindex
93
+ endif()
local-test-curl-delta-01/afc-curl/CMake/FindLibssh2.cmake ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #***************************************************************************
2
+ # _ _ ____ _
3
+ # Project ___| | | | _ \| |
4
+ # / __| | | | |_) | |
5
+ # | (__| |_| | _ <| |___
6
+ # \___|\___/|_| \_\_____|
7
+ #
8
+ # Copyright (C) Daniel Stenberg, <[email protected]>, et al.
9
+ #
10
+ # This software is licensed as described in the file COPYING, which
11
+ # you should have received as part of this distribution. The terms
12
+ # are also available at https://curl.se/docs/copyright.html.
13
+ #
14
+ # You may opt to use, copy, modify, merge, publish, distribute and/or sell
15
+ # copies of the Software, and permit persons to whom the Software is
16
+ # furnished to do so, under the terms of the COPYING file.
17
+ #
18
+ # This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19
+ # KIND, either express or implied.
20
+ #
21
+ # SPDX-License-Identifier: curl
22
+ #
23
+ ###########################################################################
24
+ # Find the libssh2 library
25
+ #
26
+ # Input variables:
27
+ #
28
+ # - `LIBSSH2_INCLUDE_DIR`: The libssh2 include directory.
29
+ # - `LIBSSH2_LIBRARY`: Path to `libssh2` library.
30
+ #
31
+ # Result variables:
32
+ #
33
+ # - `LIBSSH2_FOUND`: System has libssh2.
34
+ # - `LIBSSH2_INCLUDE_DIRS`: The libssh2 include directories.
35
+ # - `LIBSSH2_LIBRARIES`: The libssh2 library names.
36
+ # - `LIBSSH2_VERSION`: Version of libssh2.
37
+
38
+ if(CURL_USE_PKGCONFIG)
39
+ find_package(PkgConfig QUIET)
40
+ pkg_check_modules(PC_LIBSSH2 "libssh2")
41
+ endif()
42
+
43
+ find_path(LIBSSH2_INCLUDE_DIR NAMES "libssh2.h"
44
+ HINTS
45
+ ${PC_LIBSSH2_INCLUDEDIR}
46
+ ${PC_LIBSSH2_INCLUDE_DIRS}
47
+ )
48
+
49
+ find_library(LIBSSH2_LIBRARY NAMES "ssh2" "libssh2"
50
+ HINTS
51
+ ${PC_LIBSSH2_LIBDIR}
52
+ ${PC_LIBSSH2_LIBRARY_DIRS}
53
+ )
54
+
55
+ if(PC_LIBSSH2_VERSION)
56
+ set(LIBSSH2_VERSION ${PC_LIBSSH2_VERSION})
57
+ elseif(LIBSSH2_INCLUDE_DIR AND EXISTS "${LIBSSH2_INCLUDE_DIR}/libssh2.h")
58
+ set(_version_regex "#[\t ]*define[\t ]+LIBSSH2_VERSION[\t ]+\"([^\"]*)\"")
59
+ file(STRINGS "${LIBSSH2_INCLUDE_DIR}/libssh2.h" _version_str REGEX "${_version_regex}")
60
+ string(REGEX REPLACE "${_version_regex}" "\\1" _version_str "${_version_str}")
61
+ set(LIBSSH2_VERSION "${_version_str}")
62
+ unset(_version_regex)
63
+ unset(_version_str)
64
+ endif()
65
+
66
+ include(FindPackageHandleStandardArgs)
67
+ find_package_handle_standard_args(Libssh2
68
+ REQUIRED_VARS
69
+ LIBSSH2_INCLUDE_DIR
70
+ LIBSSH2_LIBRARY
71
+ VERSION_VAR
72
+ LIBSSH2_VERSION
73
+ )
74
+
75
+ if(LIBSSH2_FOUND)
76
+ set(LIBSSH2_INCLUDE_DIRS ${LIBSSH2_INCLUDE_DIR})
77
+ set(LIBSSH2_LIBRARIES ${LIBSSH2_LIBRARY})
78
+ endif()
79
+
80
+ mark_as_advanced(LIBSSH2_INCLUDE_DIR LIBSSH2_LIBRARY)
local-test-curl-delta-01/afc-curl/CMake/FindLibuv.cmake ADDED
@@ -0,0 +1,89 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #***************************************************************************
2
+ # _ _ ____ _
3
+ # Project ___| | | | _ \| |
4
+ # / __| | | | |_) | |
5
+ # | (__| |_| | _ <| |___
6
+ # \___|\___/|_| \_\_____|
7
+ #
8
+ # Copyright (C) Daniel Stenberg, <[email protected]>, et al.
9
+ #
10
+ # This software is licensed as described in the file COPYING, which
11
+ # you should have received as part of this distribution. The terms
12
+ # are also available at https://curl.se/docs/copyright.html.
13
+ #
14
+ # You may opt to use, copy, modify, merge, publish, distribute and/or sell
15
+ # copies of the Software, and permit persons to whom the Software is
16
+ # furnished to do so, under the terms of the COPYING file.
17
+ #
18
+ # This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19
+ # KIND, either express or implied.
20
+ #
21
+ # SPDX-License-Identifier: curl
22
+ #
23
+ ###########################################################################
24
+ # Find the libuv library
25
+ #
26
+ # Input variables:
27
+ #
28
+ # - `LIBUV_INCLUDE_DIR`: The libuv include directory.
29
+ # - `LIBUV_LIBRARY`: Path to `libuv` library.
30
+ #
31
+ # Result variables:
32
+ #
33
+ # - `LIBUV_FOUND`: System has libuv.
34
+ # - `LIBUV_INCLUDE_DIRS`: The libuv include directories.
35
+ # - `LIBUV_LIBRARIES`: The libuv library names.
36
+ # - `LIBUV_LIBRARY_DIRS`: The libuv library directories.
37
+ # - `LIBUV_CFLAGS`: Required compiler flags.
38
+ # - `LIBUV_VERSION`: Version of libuv.
39
+
40
+ if(CURL_USE_PKGCONFIG AND
41
+ NOT DEFINED LIBUV_INCLUDE_DIR AND
42
+ NOT DEFINED LIBUV_LIBRARY)
43
+ find_package(PkgConfig QUIET)
44
+ pkg_check_modules(LIBUV "libuv")
45
+ endif()
46
+
47
+ if(LIBUV_FOUND)
48
+ string(REPLACE ";" " " LIBUV_CFLAGS "${LIBUV_CFLAGS}")
49
+ message(STATUS "Found Libuv (via pkg-config): ${LIBUV_INCLUDE_DIRS} (found version \"${LIBUV_VERSION}\")")
50
+ else()
51
+ find_path(LIBUV_INCLUDE_DIR NAMES "uv.h")
52
+ find_library(LIBUV_LIBRARY NAMES "uv" "libuv")
53
+
54
+ unset(LIBUV_VERSION CACHE)
55
+ if(LIBUV_INCLUDE_DIR AND EXISTS "${LIBUV_INCLUDE_DIR}/uv/version.h")
56
+ set(_version_regex1 "#[\t ]*define[\t ]+UV_VERSION_MAJOR[\t ]+([0-9]+).*")
57
+ set(_version_regex2 "#[\t ]*define[\t ]+UV_VERSION_MINOR[\t ]+([0-9]+).*")
58
+ set(_version_regex3 "#[\t ]*define[\t ]+UV_VERSION_PATCH[\t ]+([0-9]+).*")
59
+ file(STRINGS "${LIBUV_INCLUDE_DIR}/uv/version.h" _version_str1 REGEX "${_version_regex1}")
60
+ file(STRINGS "${LIBUV_INCLUDE_DIR}/uv/version.h" _version_str2 REGEX "${_version_regex2}")
61
+ file(STRINGS "${LIBUV_INCLUDE_DIR}/uv/version.h" _version_str3 REGEX "${_version_regex3}")
62
+ string(REGEX REPLACE "${_version_regex1}" "\\1" _version_str1 "${_version_str1}")
63
+ string(REGEX REPLACE "${_version_regex2}" "\\1" _version_str2 "${_version_str2}")
64
+ string(REGEX REPLACE "${_version_regex3}" "\\1" _version_str3 "${_version_str3}")
65
+ set(LIBUV_VERSION "${_version_str1}.${_version_str2}.${_version_str3}")
66
+ unset(_version_regex1)
67
+ unset(_version_regex2)
68
+ unset(_version_regex3)
69
+ unset(_version_str1)
70
+ unset(_version_str2)
71
+ unset(_version_str3)
72
+ endif()
73
+
74
+ include(FindPackageHandleStandardArgs)
75
+ find_package_handle_standard_args(Libuv
76
+ REQUIRED_VARS
77
+ LIBUV_INCLUDE_DIR
78
+ LIBUV_LIBRARY
79
+ VERSION_VAR
80
+ LIBUV_VERSION
81
+ )
82
+
83
+ if(LIBUV_FOUND)
84
+ set(LIBUV_INCLUDE_DIRS ${LIBUV_INCLUDE_DIR})
85
+ set(LIBUV_LIBRARIES ${LIBUV_LIBRARY})
86
+ endif()
87
+
88
+ mark_as_advanced(LIBUV_INCLUDE_DIR LIBUV_LIBRARY)
89
+ endif()
local-test-curl-delta-01/afc-curl/CMake/FindMSH3.cmake ADDED
@@ -0,0 +1,69 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #***************************************************************************
2
+ # _ _ ____ _
3
+ # Project ___| | | | _ \| |
4
+ # / __| | | | |_) | |
5
+ # | (__| |_| | _ <| |___
6
+ # \___|\___/|_| \_\_____|
7
+ #
8
+ # Copyright (C) Daniel Stenberg, <[email protected]>, et al.
9
+ #
10
+ # This software is licensed as described in the file COPYING, which
11
+ # you should have received as part of this distribution. The terms
12
+ # are also available at https://curl.se/docs/copyright.html.
13
+ #
14
+ # You may opt to use, copy, modify, merge, publish, distribute and/or sell
15
+ # copies of the Software, and permit persons to whom the Software is
16
+ # furnished to do so, under the terms of the COPYING file.
17
+ #
18
+ # This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19
+ # KIND, either express or implied.
20
+ #
21
+ # SPDX-License-Identifier: curl
22
+ #
23
+ ###########################################################################
24
+ # Find the msh3 library
25
+ #
26
+ # Input variables:
27
+ #
28
+ # - `MSH3_INCLUDE_DIR`: The msh3 include directory.
29
+ # - `MSH3_LIBRARY`: Path to `msh3` library.
30
+ #
31
+ # Result variables:
32
+ #
33
+ # - `MSH3_FOUND`: System has msh3.
34
+ # - `MSH3_INCLUDE_DIRS`: The msh3 include directories.
35
+ # - `MSH3_LIBRARIES`: The msh3 library names.
36
+ # - `MSH3_LIBRARY_DIRS`: The msh3 library directories.
37
+ # - `MSH3_PC_REQUIRES`: The msh3 pkg-config packages.
38
+ # - `MSH3_CFLAGS`: Required compiler flags.
39
+ # - `MSH3_VERSION`: Version of msh3.
40
+
41
+ if(CURL_USE_PKGCONFIG AND
42
+ NOT DEFINED MSH3_INCLUDE_DIR AND
43
+ NOT DEFINED MSH3_LIBRARY)
44
+ find_package(PkgConfig QUIET)
45
+ pkg_check_modules(MSH3 "libmsh3")
46
+ endif()
47
+
48
+ if(MSH3_FOUND)
49
+ set(MSH3_PC_REQUIRES "libmsh3")
50
+ string(REPLACE ";" " " MSH3_CFLAGS "${MSH3_CFLAGS}")
51
+ message(STATUS "Found MSH3 (via pkg-config): ${MSH3_INCLUDE_DIRS} (found version \"${MSH3_VERSION}\")")
52
+ else()
53
+ find_path(MSH3_INCLUDE_DIR NAMES "msh3.h")
54
+ find_library(MSH3_LIBRARY NAMES "msh3")
55
+
56
+ include(FindPackageHandleStandardArgs)
57
+ find_package_handle_standard_args(MSH3
58
+ REQUIRED_VARS
59
+ MSH3_INCLUDE_DIR
60
+ MSH3_LIBRARY
61
+ )
62
+
63
+ if(MSH3_FOUND)
64
+ set(MSH3_INCLUDE_DIRS ${MSH3_INCLUDE_DIR})
65
+ set(MSH3_LIBRARIES ${MSH3_LIBRARY})
66
+ endif()
67
+
68
+ mark_as_advanced(MSH3_INCLUDE_DIR MSH3_LIBRARY)
69
+ endif()
local-test-curl-delta-01/afc-curl/CMake/FindMbedTLS.cmake ADDED
@@ -0,0 +1,109 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #***************************************************************************
2
+ # _ _ ____ _
3
+ # Project ___| | | | _ \| |
4
+ # / __| | | | |_) | |
5
+ # | (__| |_| | _ <| |___
6
+ # \___|\___/|_| \_\_____|
7
+ #
8
+ # Copyright (C) Daniel Stenberg, <[email protected]>, et al.
9
+ #
10
+ # This software is licensed as described in the file COPYING, which
11
+ # you should have received as part of this distribution. The terms
12
+ # are also available at https://curl.se/docs/copyright.html.
13
+ #
14
+ # You may opt to use, copy, modify, merge, publish, distribute and/or sell
15
+ # copies of the Software, and permit persons to whom the Software is
16
+ # furnished to do so, under the terms of the COPYING file.
17
+ #
18
+ # This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19
+ # KIND, either express or implied.
20
+ #
21
+ # SPDX-License-Identifier: curl
22
+ #
23
+ ###########################################################################
24
+ # Find the mbedTLS library
25
+ #
26
+ # Input variables:
27
+ #
28
+ # - `MBEDTLS_INCLUDE_DIR`: The mbedTLS include directory.
29
+ # - `MBEDTLS_LIBRARY`: Path to `mbedtls` library.
30
+ # - `MBEDX509_LIBRARY`: Path to `mbedx509` library.
31
+ # - `MBEDCRYPTO_LIBRARY`: Path to `mbedcrypto` library.
32
+ #
33
+ # Result variables:
34
+ #
35
+ # - `MBEDTLS_FOUND`: System has mbedTLS.
36
+ # - `MBEDTLS_INCLUDE_DIRS`: The mbedTLS include directories.
37
+ # - `MBEDTLS_LIBRARIES`: The mbedTLS library names.
38
+ # - `MBEDTLS_LIBRARY_DIRS`: The mbedTLS library directories.
39
+ # - `MBEDTLS_PC_REQUIRES`: The mbedTLS pkg-config packages.
40
+ # - `MBEDTLS_CFLAGS`: Required compiler flags.
41
+ # - `MBEDTLS_VERSION`: Version of mbedTLS.
42
+
43
+ if(DEFINED MBEDTLS_INCLUDE_DIRS AND NOT DEFINED MBEDTLS_INCLUDE_DIR)
44
+ message(WARNING "MBEDTLS_INCLUDE_DIRS is deprecated, use MBEDTLS_INCLUDE_DIR instead.")
45
+ set(MBEDTLS_INCLUDE_DIR "${MBEDTLS_INCLUDE_DIRS}")
46
+ unset(MBEDTLS_INCLUDE_DIRS)
47
+ endif()
48
+
49
+ if(CURL_USE_PKGCONFIG AND
50
+ NOT DEFINED MBEDTLS_INCLUDE_DIR AND
51
+ NOT DEFINED MBEDTLS_LIBRARY AND
52
+ NOT DEFINED MBEDX509_LIBRARY AND
53
+ NOT DEFINED MBEDCRYPTO_LIBRARY)
54
+ find_package(PkgConfig QUIET)
55
+ pkg_check_modules(MBEDTLS "mbedtls")
56
+ pkg_check_modules(MBEDX509 "mbedx509")
57
+ pkg_check_modules(MBEDCRYPTO "mbedcrypto")
58
+ endif()
59
+
60
+ if(MBEDTLS_FOUND AND MBEDX509_FOUND AND MBEDCRYPTO_FOUND)
61
+ list(APPEND MBEDTLS_LIBRARIES ${MBEDX509_LIBRARIES} ${MBEDCRYPTO_LIBRARIES})
62
+ list(REMOVE_DUPLICATES MBEDTLS_LIBRARIES)
63
+ set(MBEDTLS_PC_REQUIRES "mbedtls")
64
+ string(REPLACE ";" " " MBEDTLS_CFLAGS "${MBEDTLS_CFLAGS}")
65
+ message(STATUS "Found MbedTLS (via pkg-config): ${MBEDTLS_INCLUDE_DIRS} (found version \"${MBEDTLS_VERSION}\")")
66
+ else()
67
+ find_path(MBEDTLS_INCLUDE_DIR NAMES "mbedtls/ssl.h")
68
+ find_library(MBEDTLS_LIBRARY NAMES "mbedtls" "libmbedtls")
69
+ find_library(MBEDX509_LIBRARY NAMES "mbedx509" "libmbedx509")
70
+ find_library(MBEDCRYPTO_LIBRARY NAMES "mbedcrypto" "libmbedcrypto")
71
+
72
+ unset(MBEDTLS_VERSION CACHE)
73
+ if(MBEDTLS_INCLUDE_DIR)
74
+ if(EXISTS "${MBEDTLS_INCLUDE_DIR}/mbedtls/build_info.h") # 3.x
75
+ set(_version_header "${MBEDTLS_INCLUDE_DIR}/mbedtls/build_info.h")
76
+ elseif(EXISTS "${MBEDTLS_INCLUDE_DIR}/mbedtls/version.h") # 2.x
77
+ set(_version_header "${MBEDTLS_INCLUDE_DIR}/mbedtls/version.h")
78
+ else()
79
+ unset(_version_header)
80
+ endif()
81
+ if(_version_header)
82
+ set(_version_regex "#[\t ]*define[\t ]+MBEDTLS_VERSION_STRING[\t ]+\"([0-9.]+)\"")
83
+ file(STRINGS "${_version_header}" _version_str REGEX "${_version_regex}")
84
+ string(REGEX REPLACE "${_version_regex}" "\\1" _version_str "${_version_str}")
85
+ set(MBEDTLS_VERSION "${_version_str}")
86
+ unset(_version_regex)
87
+ unset(_version_str)
88
+ unset(_version_header)
89
+ endif()
90
+ endif()
91
+
92
+ include(FindPackageHandleStandardArgs)
93
+ find_package_handle_standard_args(MbedTLS
94
+ REQUIRED_VARS
95
+ MBEDTLS_INCLUDE_DIR
96
+ MBEDTLS_LIBRARY
97
+ MBEDX509_LIBRARY
98
+ MBEDCRYPTO_LIBRARY
99
+ VERSION_VAR
100
+ MBEDTLS_VERSION
101
+ )
102
+
103
+ if(MBEDTLS_FOUND)
104
+ set(MBEDTLS_INCLUDE_DIRS ${MBEDTLS_INCLUDE_DIR})
105
+ set(MBEDTLS_LIBRARIES ${MBEDTLS_LIBRARY} ${MBEDX509_LIBRARY} ${MBEDCRYPTO_LIBRARY})
106
+ endif()
107
+
108
+ mark_as_advanced(MBEDTLS_INCLUDE_DIR MBEDTLS_LIBRARY MBEDX509_LIBRARY MBEDCRYPTO_LIBRARY)
109
+ endif()
local-test-curl-delta-01/afc-curl/CMake/FindNGHTTP2.cmake ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #***************************************************************************
2
+ # _ _ ____ _
3
+ # Project ___| | | | _ \| |
4
+ # / __| | | | |_) | |
5
+ # | (__| |_| | _ <| |___
6
+ # \___|\___/|_| \_\_____|
7
+ #
8
+ # Copyright (C) Daniel Stenberg, <[email protected]>, et al.
9
+ #
10
+ # This software is licensed as described in the file COPYING, which
11
+ # you should have received as part of this distribution. The terms
12
+ # are also available at https://curl.se/docs/copyright.html.
13
+ #
14
+ # You may opt to use, copy, modify, merge, publish, distribute and/or sell
15
+ # copies of the Software, and permit persons to whom the Software is
16
+ # furnished to do so, under the terms of the COPYING file.
17
+ #
18
+ # This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19
+ # KIND, either express or implied.
20
+ #
21
+ # SPDX-License-Identifier: curl
22
+ #
23
+ ###########################################################################
24
+ # Find the nghttp2 library
25
+ #
26
+ # Input variables:
27
+ #
28
+ # - `NGHTTP2_INCLUDE_DIR`: The nghttp2 include directory.
29
+ # - `NGHTTP2_LIBRARY`: Path to `nghttp2` library.
30
+ #
31
+ # Result variables:
32
+ #
33
+ # - `NGHTTP2_FOUND`: System has nghttp2.
34
+ # - `NGHTTP2_INCLUDE_DIRS`: The nghttp2 include directories.
35
+ # - `NGHTTP2_LIBRARIES`: The nghttp2 library names.
36
+ # - `NGHTTP2_VERSION`: Version of nghttp2.
37
+
38
+ if(CURL_USE_PKGCONFIG)
39
+ find_package(PkgConfig QUIET)
40
+ pkg_check_modules(PC_NGHTTP2 "libnghttp2")
41
+ endif()
42
+
43
+ find_path(NGHTTP2_INCLUDE_DIR NAMES "nghttp2/nghttp2.h"
44
+ HINTS
45
+ ${PC_NGHTTP2_INCLUDEDIR}
46
+ ${PC_NGHTTP2_INCLUDE_DIRS}
47
+ )
48
+
49
+ find_library(NGHTTP2_LIBRARY NAMES "nghttp2" "nghttp2_static"
50
+ HINTS
51
+ ${PC_NGHTTP2_LIBDIR}
52
+ ${PC_NGHTTP2_LIBRARY_DIRS}
53
+ )
54
+
55
+ if(PC_NGHTTP2_VERSION)
56
+ set(NGHTTP2_VERSION ${PC_NGHTTP2_VERSION})
57
+ elseif(NGHTTP2_INCLUDE_DIR AND EXISTS "${NGHTTP2_INCLUDE_DIR}/nghttp2/nghttp2ver.h")
58
+ set(_version_regex "#[\t ]*define[\t ]+NGHTTP2_VERSION[\t ]+\"([^\"]*)\"")
59
+ file(STRINGS "${NGHTTP2_INCLUDE_DIR}/nghttp2/nghttp2ver.h" _version_str REGEX "${_version_regex}")
60
+ string(REGEX REPLACE "${_version_regex}" "\\1" _version_str "${_version_str}")
61
+ set(NGHTTP2_VERSION "${_version_str}")
62
+ unset(_version_regex)
63
+ unset(_version_str)
64
+ endif()
65
+
66
+ include(FindPackageHandleStandardArgs)
67
+ find_package_handle_standard_args(NGHTTP2
68
+ REQUIRED_VARS
69
+ NGHTTP2_INCLUDE_DIR
70
+ NGHTTP2_LIBRARY
71
+ VERSION_VAR
72
+ NGHTTP2_VERSION
73
+ )
74
+
75
+ if(NGHTTP2_FOUND)
76
+ set(NGHTTP2_INCLUDE_DIRS ${NGHTTP2_INCLUDE_DIR})
77
+ set(NGHTTP2_LIBRARIES ${NGHTTP2_LIBRARY})
78
+ endif()
79
+
80
+ mark_as_advanced(NGHTTP2_INCLUDE_DIR NGHTTP2_LIBRARY)
local-test-curl-delta-01/afc-curl/CMake/FindNGHTTP3.cmake ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #***************************************************************************
2
+ # _ _ ____ _
3
+ # Project ___| | | | _ \| |
4
+ # / __| | | | |_) | |
5
+ # | (__| |_| | _ <| |___
6
+ # \___|\___/|_| \_\_____|
7
+ #
8
+ # Copyright (C) Daniel Stenberg, <[email protected]>, et al.
9
+ #
10
+ # This software is licensed as described in the file COPYING, which
11
+ # you should have received as part of this distribution. The terms
12
+ # are also available at https://curl.se/docs/copyright.html.
13
+ #
14
+ # You may opt to use, copy, modify, merge, publish, distribute and/or sell
15
+ # copies of the Software, and permit persons to whom the Software is
16
+ # furnished to do so, under the terms of the COPYING file.
17
+ #
18
+ # This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19
+ # KIND, either express or implied.
20
+ #
21
+ # SPDX-License-Identifier: curl
22
+ #
23
+ ###########################################################################
24
+ # Find the nghttp3 library
25
+ #
26
+ # Input variables:
27
+ #
28
+ # - `NGHTTP3_INCLUDE_DIR`: The nghttp3 include directory.
29
+ # - `NGHTTP3_LIBRARY`: Path to `nghttp3` library.
30
+ #
31
+ # Result variables:
32
+ #
33
+ # - `NGHTTP3_FOUND`: System has nghttp3.
34
+ # - `NGHTTP3_INCLUDE_DIRS`: The nghttp3 include directories.
35
+ # - `NGHTTP3_LIBRARIES`: The nghttp3 library names.
36
+ # - `NGHTTP3_VERSION`: Version of nghttp3.
37
+
38
+ if(CURL_USE_PKGCONFIG)
39
+ find_package(PkgConfig QUIET)
40
+ pkg_check_modules(PC_NGHTTP3 "libnghttp3")
41
+ endif()
42
+
43
+ find_path(NGHTTP3_INCLUDE_DIR NAMES "nghttp3/nghttp3.h"
44
+ HINTS
45
+ ${PC_NGHTTP3_INCLUDEDIR}
46
+ ${PC_NGHTTP3_INCLUDE_DIRS}
47
+ )
48
+
49
+ find_library(NGHTTP3_LIBRARY NAMES "nghttp3"
50
+ HINTS
51
+ ${PC_NGHTTP3_LIBDIR}
52
+ ${PC_NGHTTP3_LIBRARY_DIRS}
53
+ )
54
+
55
+ if(PC_NGHTTP3_VERSION)
56
+ set(NGHTTP3_VERSION ${PC_NGHTTP3_VERSION})
57
+ elseif(NGHTTP3_INCLUDE_DIR AND EXISTS "${NGHTTP3_INCLUDE_DIR}/nghttp3/version.h")
58
+ set(_version_regex "#[\t ]*define[\t ]+NGHTTP3_VERSION[\t ]+\"([^\"]*)\"")
59
+ file(STRINGS "${NGHTTP3_INCLUDE_DIR}/nghttp3/version.h" _version_str REGEX "${_version_regex}")
60
+ string(REGEX REPLACE "${_version_regex}" "\\1" _version_str "${_version_str}")
61
+ set(NGHTTP3_VERSION "${_version_str}")
62
+ unset(_version_regex)
63
+ unset(_version_str)
64
+ endif()
65
+
66
+ include(FindPackageHandleStandardArgs)
67
+ find_package_handle_standard_args(NGHTTP3
68
+ REQUIRED_VARS
69
+ NGHTTP3_INCLUDE_DIR
70
+ NGHTTP3_LIBRARY
71
+ VERSION_VAR
72
+ NGHTTP3_VERSION
73
+ )
74
+
75
+ if(NGHTTP3_FOUND)
76
+ set(NGHTTP3_INCLUDE_DIRS ${NGHTTP3_INCLUDE_DIR})
77
+ set(NGHTTP3_LIBRARIES ${NGHTTP3_LIBRARY})
78
+ endif()
79
+
80
+ mark_as_advanced(NGHTTP3_INCLUDE_DIR NGHTTP3_LIBRARY)
local-test-curl-delta-01/afc-curl/CMake/FindNGTCP2.cmake ADDED
@@ -0,0 +1,122 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #***************************************************************************
2
+ # _ _ ____ _
3
+ # Project ___| | | | _ \| |
4
+ # / __| | | | |_) | |
5
+ # | (__| |_| | _ <| |___
6
+ # \___|\___/|_| \_\_____|
7
+ #
8
+ # Copyright (C) Daniel Stenberg, <[email protected]>, et al.
9
+ #
10
+ # This software is licensed as described in the file COPYING, which
11
+ # you should have received as part of this distribution. The terms
12
+ # are also available at https://curl.se/docs/copyright.html.
13
+ #
14
+ # You may opt to use, copy, modify, merge, publish, distribute and/or sell
15
+ # copies of the Software, and permit persons to whom the Software is
16
+ # furnished to do so, under the terms of the COPYING file.
17
+ #
18
+ # This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19
+ # KIND, either express or implied.
20
+ #
21
+ # SPDX-License-Identifier: curl
22
+ #
23
+ ###########################################################################
24
+ # Find the ngtcp2 library
25
+ #
26
+ # This module accepts optional COMPONENTS to control the crypto library (these are
27
+ # mutually exclusive):
28
+ #
29
+ # - quictls: Use `libngtcp2_crypto_quictls`. (choose this for LibreSSL)
30
+ # - BoringSSL: Use `libngtcp2_crypto_boringssl`. (choose this for AWS-LC)
31
+ # - wolfSSL: Use `libngtcp2_crypto_wolfssl`.
32
+ # - GnuTLS: Use `libngtcp2_crypto_gnutls`.
33
+ #
34
+ # Input variables:
35
+ #
36
+ # - `NGTCP2_INCLUDE_DIR`: The ngtcp2 include directory.
37
+ # - `NGTCP2_LIBRARY`: Path to `ngtcp2` library.
38
+ #
39
+ # Result variables:
40
+ #
41
+ # - `NGTCP2_FOUND`: System has ngtcp2.
42
+ # - `NGTCP2_INCLUDE_DIRS`: The ngtcp2 include directories.
43
+ # - `NGTCP2_LIBRARIES`: The ngtcp2 library names.
44
+ # - `NGTCP2_VERSION`: Version of ngtcp2.
45
+
46
+ if(CURL_USE_PKGCONFIG)
47
+ find_package(PkgConfig QUIET)
48
+ pkg_check_modules(PC_NGTCP2 "libngtcp2")
49
+ endif()
50
+
51
+ find_path(NGTCP2_INCLUDE_DIR NAMES "ngtcp2/ngtcp2.h"
52
+ HINTS
53
+ ${PC_NGTCP2_INCLUDEDIR}
54
+ ${PC_NGTCP2_INCLUDE_DIRS}
55
+ )
56
+
57
+ find_library(NGTCP2_LIBRARY NAMES "ngtcp2"
58
+ HINTS
59
+ ${PC_NGTCP2_LIBDIR}
60
+ ${PC_NGTCP2_LIBRARY_DIRS}
61
+ )
62
+
63
+ if(PC_NGTCP2_VERSION)
64
+ set(NGTCP2_VERSION ${PC_NGTCP2_VERSION})
65
+ elseif(NGTCP2_INCLUDE_DIR AND EXISTS "${NGTCP2_INCLUDE_DIR}/ngtcp2/version.h")
66
+ set(_version_regex "#[\t ]*define[\t ]+NGTCP2_VERSION[\t ]+\"([^\"]*)\"")
67
+ file(STRINGS "${NGTCP2_INCLUDE_DIR}/ngtcp2/version.h" _version_str REGEX "${_version_regex}")
68
+ string(REGEX REPLACE "${_version_regex}" "\\1" _version_str "${_version_str}")
69
+ set(NGTCP2_VERSION "${_version_str}")
70
+ unset(_version_regex)
71
+ unset(_version_str)
72
+ endif()
73
+
74
+ if(NGTCP2_FIND_COMPONENTS)
75
+ set(_ngtcp2_crypto_backend "")
76
+ foreach(_component IN LISTS NGTCP2_FIND_COMPONENTS)
77
+ if(_component MATCHES "^(BoringSSL|quictls|wolfSSL|GnuTLS)")
78
+ if(_ngtcp2_crypto_backend)
79
+ message(FATAL_ERROR "NGTCP2: Only one crypto library can be selected")
80
+ endif()
81
+ set(_ngtcp2_crypto_backend ${_component})
82
+ endif()
83
+ endforeach()
84
+
85
+ if(_ngtcp2_crypto_backend)
86
+ string(TOLOWER "ngtcp2_crypto_${_ngtcp2_crypto_backend}" _crypto_library)
87
+
88
+ if(CURL_USE_PKGCONFIG)
89
+ pkg_check_modules(PC_${_crypto_library} "lib${_crypto_library}")
90
+ endif()
91
+
92
+ get_filename_component(_ngtcp2_library_dir "${NGTCP2_LIBRARY}" DIRECTORY)
93
+ find_library(${_crypto_library}_LIBRARY NAMES ${_crypto_library}
94
+ HINTS
95
+ ${_ngtcp2_library_dir}
96
+ ${PC_${_crypto_library}_LIBDIR}
97
+ ${PC_${_crypto_library}_LIBRARY_DIRS}
98
+ )
99
+
100
+ if(${_crypto_library}_LIBRARY)
101
+ set(NGTCP2_${_ngtcp2_crypto_backend}_FOUND TRUE)
102
+ set(NGTCP2_CRYPTO_LIBRARY ${${_crypto_library}_LIBRARY})
103
+ endif()
104
+ endif()
105
+ endif()
106
+
107
+ include(FindPackageHandleStandardArgs)
108
+ find_package_handle_standard_args(NGTCP2
109
+ REQUIRED_VARS
110
+ NGTCP2_INCLUDE_DIR
111
+ NGTCP2_LIBRARY
112
+ VERSION_VAR
113
+ NGTCP2_VERSION
114
+ HANDLE_COMPONENTS
115
+ )
116
+
117
+ if(NGTCP2_FOUND)
118
+ set(NGTCP2_INCLUDE_DIRS ${NGTCP2_INCLUDE_DIR})
119
+ set(NGTCP2_LIBRARIES ${NGTCP2_LIBRARY} ${NGTCP2_CRYPTO_LIBRARY})
120
+ endif()
121
+
122
+ mark_as_advanced(NGTCP2_INCLUDE_DIR NGTCP2_LIBRARY NGTCP2_CRYPTO_LIBRARY)
local-test-curl-delta-01/afc-curl/CMake/FindNettle.cmake ADDED
@@ -0,0 +1,84 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #***************************************************************************
2
+ # _ _ ____ _
3
+ # Project ___| | | | _ \| |
4
+ # / __| | | | |_) | |
5
+ # | (__| |_| | _ <| |___
6
+ # \___|\___/|_| \_\_____|
7
+ #
8
+ # Copyright (C) Daniel Stenberg, <[email protected]>, et al.
9
+ #
10
+ # This software is licensed as described in the file COPYING, which
11
+ # you should have received as part of this distribution. The terms
12
+ # are also available at https://curl.se/docs/copyright.html.
13
+ #
14
+ # You may opt to use, copy, modify, merge, publish, distribute and/or sell
15
+ # copies of the Software, and permit persons to whom the Software is
16
+ # furnished to do so, under the terms of the COPYING file.
17
+ #
18
+ # This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19
+ # KIND, either express or implied.
20
+ #
21
+ # SPDX-License-Identifier: curl
22
+ #
23
+ ###########################################################################
24
+ # Find the nettle library
25
+ #
26
+ # Input variables:
27
+ #
28
+ # - `NETTLE_INCLUDE_DIR`: The nettle include directory.
29
+ # - `NETTLE_LIBRARY`: Path to `nettle` library.
30
+ #
31
+ # Result variables:
32
+ #
33
+ # - `NETTLE_FOUND`: System has nettle.
34
+ # - `NETTLE_INCLUDE_DIRS`: The nettle include directories.
35
+ # - `NETTLE_LIBRARIES`: The nettle library names.
36
+ # - `NETTLE_LIBRARY_DIRS`: The nettle library directories.
37
+ # - `NETTLE_CFLAGS`: Required compiler flags.
38
+ # - `NETTLE_VERSION`: Version of nettle.
39
+
40
+ if(CURL_USE_PKGCONFIG AND
41
+ NOT DEFINED NETTLE_INCLUDE_DIR AND
42
+ NOT DEFINED NETTLE_LIBRARY)
43
+ find_package(PkgConfig QUIET)
44
+ pkg_check_modules(NETTLE "nettle")
45
+ endif()
46
+
47
+ if(NETTLE_FOUND)
48
+ string(REPLACE ";" " " NETTLE_CFLAGS "${NETTLE_CFLAGS}")
49
+ message(STATUS "Found Nettle (via pkg-config): ${NETTLE_INCLUDE_DIRS} (found version \"${NETTLE_VERSION}\")")
50
+ else()
51
+ find_path(NETTLE_INCLUDE_DIR NAMES "nettle/sha2.h")
52
+ find_library(NETTLE_LIBRARY NAMES "nettle")
53
+
54
+ unset(NETTLE_VERSION CACHE)
55
+ if(NETTLE_INCLUDE_DIR AND EXISTS "${NETTLE_INCLUDE_DIR}/nettle/version.h")
56
+ set(_version_regex1 "#[\t ]*define[ \t]+NETTLE_VERSION_MAJOR[ \t]+([0-9]+).*")
57
+ set(_version_regex2 "#[\t ]*define[ \t]+NETTLE_VERSION_MINOR[ \t]+([0-9]+).*")
58
+ file(STRINGS "${NETTLE_INCLUDE_DIR}/nettle/version.h" _version_str1 REGEX "${_version_regex1}")
59
+ file(STRINGS "${NETTLE_INCLUDE_DIR}/nettle/version.h" _version_str2 REGEX "${_version_regex2}")
60
+ string(REGEX REPLACE "${_version_regex1}" "\\1" _version_str1 "${_version_str1}")
61
+ string(REGEX REPLACE "${_version_regex2}" "\\1" _version_str2 "${_version_str2}")
62
+ set(NETTLE_VERSION "${_version_str1}.${_version_str2}")
63
+ unset(_version_regex1)
64
+ unset(_version_regex2)
65
+ unset(_version_str1)
66
+ unset(_version_str2)
67
+ endif()
68
+
69
+ include(FindPackageHandleStandardArgs)
70
+ find_package_handle_standard_args(Nettle
71
+ REQUIRED_VARS
72
+ NETTLE_INCLUDE_DIR
73
+ NETTLE_LIBRARY
74
+ VERSION_VAR
75
+ NETTLE_VERSION
76
+ )
77
+
78
+ if(NETTLE_FOUND)
79
+ set(NETTLE_INCLUDE_DIRS ${NETTLE_INCLUDE_DIR})
80
+ set(NETTLE_LIBRARIES ${NETTLE_LIBRARY})
81
+ endif()
82
+
83
+ mark_as_advanced(NETTLE_INCLUDE_DIR NETTLE_LIBRARY)
84
+ endif()
local-test-curl-delta-01/afc-curl/CMake/FindQuiche.cmake ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #***************************************************************************
2
+ # _ _ ____ _
3
+ # Project ___| | | | _ \| |
4
+ # / __| | | | |_) | |
5
+ # | (__| |_| | _ <| |___
6
+ # \___|\___/|_| \_\_____|
7
+ #
8
+ # Copyright (C) Daniel Stenberg, <[email protected]>, et al.
9
+ #
10
+ # This software is licensed as described in the file COPYING, which
11
+ # you should have received as part of this distribution. The terms
12
+ # are also available at https://curl.se/docs/copyright.html.
13
+ #
14
+ # You may opt to use, copy, modify, merge, publish, distribute and/or sell
15
+ # copies of the Software, and permit persons to whom the Software is
16
+ # furnished to do so, under the terms of the COPYING file.
17
+ #
18
+ # This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19
+ # KIND, either express or implied.
20
+ #
21
+ # SPDX-License-Identifier: curl
22
+ #
23
+ ###########################################################################
24
+ # Find the quiche library
25
+ #
26
+ # Input variables:
27
+ #
28
+ # - `QUICHE_INCLUDE_DIR`: The quiche include directory.
29
+ # - `QUICHE_LIBRARY`: Path to `quiche` library.
30
+ #
31
+ # Result variables:
32
+ #
33
+ # - `QUICHE_FOUND`: System has quiche.
34
+ # - `QUICHE_INCLUDE_DIRS`: The quiche include directories.
35
+ # - `QUICHE_LIBRARIES`: The quiche library names.
36
+ # - `QUICHE_LIBRARY_DIRS`: The quiche library directories.
37
+ # - `QUICHE_CFLAGS`: Required compiler flags.
38
+ # - `QUICHE_VERSION`: Version of quiche.
39
+
40
+ if(CURL_USE_PKGCONFIG AND
41
+ NOT DEFINED QUICHE_INCLUDE_DIR AND
42
+ NOT DEFINED QUICHE_LIBRARY)
43
+ find_package(PkgConfig QUIET)
44
+ pkg_check_modules(QUICHE "quiche")
45
+ endif()
46
+
47
+ if(QUICHE_FOUND)
48
+ string(REPLACE ";" " " QUICHE_CFLAGS "${QUICHE_CFLAGS}")
49
+ message(STATUS "Found Quiche (via pkg-config): ${QUICHE_INCLUDE_DIRS} (found version \"${QUICHE_VERSION}\")")
50
+ else()
51
+ find_path(QUICHE_INCLUDE_DIR NAMES "quiche.h")
52
+ find_library(QUICHE_LIBRARY NAMES "quiche")
53
+
54
+ include(FindPackageHandleStandardArgs)
55
+ find_package_handle_standard_args(Quiche
56
+ REQUIRED_VARS
57
+ QUICHE_INCLUDE_DIR
58
+ QUICHE_LIBRARY
59
+ )
60
+
61
+ if(QUICHE_FOUND)
62
+ set(QUICHE_INCLUDE_DIRS ${QUICHE_INCLUDE_DIR})
63
+ set(QUICHE_LIBRARIES ${QUICHE_LIBRARY})
64
+ endif()
65
+
66
+ mark_as_advanced(QUICHE_INCLUDE_DIR QUICHE_LIBRARY)
67
+ endif()
local-test-curl-delta-01/afc-curl/CMake/FindRustls.cmake ADDED
@@ -0,0 +1,103 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #***************************************************************************
2
+ # _ _ ____ _
3
+ # Project ___| | | | _ \| |
4
+ # / __| | | | |_) | |
5
+ # | (__| |_| | _ <| |___
6
+ # \___|\___/|_| \_\_____|
7
+ #
8
+ # Copyright (C) Daniel Stenberg, <[email protected]>, et al.
9
+ #
10
+ # This software is licensed as described in the file COPYING, which
11
+ # you should have received as part of this distribution. The terms
12
+ # are also available at https://curl.se/docs/copyright.html.
13
+ #
14
+ # You may opt to use, copy, modify, merge, publish, distribute and/or sell
15
+ # copies of the Software, and permit persons to whom the Software is
16
+ # furnished to do so, under the terms of the COPYING file.
17
+ #
18
+ # This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19
+ # KIND, either express or implied.
20
+ #
21
+ # SPDX-License-Identifier: curl
22
+ #
23
+ ###########################################################################
24
+ # Find the Rustls library
25
+ #
26
+ # Input variables:
27
+ #
28
+ # - `RUSTLS_INCLUDE_DIR`: The Rustls include directory.
29
+ # - `RUSTLS_LIBRARY`: Path to `rustls` library.
30
+ #
31
+ # Result variables:
32
+ #
33
+ # - `RUSTLS_FOUND`: System has Rustls.
34
+ # - `RUSTLS_INCLUDE_DIRS`: The Rustls include directories.
35
+ # - `RUSTLS_LIBRARIES`: The Rustls library names.
36
+ # - `RUSTLS_LIBRARY_DIRS`: The Rustls library directories.
37
+ # - `RUSTLS_PC_REQUIRES`: The Rustls pkg-config packages.
38
+ # - `RUSTLS_CFLAGS`: Required compiler flags.
39
+ # - `RUSTLS_VERSION`: Version of Rustls.
40
+
41
+ if(CURL_USE_PKGCONFIG AND
42
+ NOT DEFINED RUSTLS_INCLUDE_DIR AND
43
+ NOT DEFINED RUSTLS_LIBRARY)
44
+ find_package(PkgConfig QUIET)
45
+ pkg_check_modules(RUSTLS "rustls")
46
+ endif()
47
+
48
+ if(RUSTLS_FOUND)
49
+ set(RUSTLS_PC_REQUIRES "rustls")
50
+ string(REPLACE ";" " " RUSTLS_CFLAGS "${RUSTLS_CFLAGS}")
51
+ message(STATUS "Found Rustls (via pkg-config): ${RUSTLS_INCLUDE_DIRS} (found version \"${RUSTLS_VERSION}\")")
52
+ else()
53
+ find_path(RUSTLS_INCLUDE_DIR NAMES "rustls.h")
54
+ find_library(RUSTLS_LIBRARY NAMES "rustls")
55
+
56
+ include(FindPackageHandleStandardArgs)
57
+ find_package_handle_standard_args(Rustls
58
+ REQUIRED_VARS
59
+ RUSTLS_INCLUDE_DIR
60
+ RUSTLS_LIBRARY
61
+ )
62
+
63
+ if(RUSTLS_FOUND)
64
+ set(RUSTLS_INCLUDE_DIRS ${RUSTLS_INCLUDE_DIR})
65
+ set(RUSTLS_LIBRARIES ${RUSTLS_LIBRARY})
66
+ endif()
67
+
68
+ mark_as_advanced(RUSTLS_INCLUDE_DIR RUSTLS_LIBRARY)
69
+ endif()
70
+
71
+ if(APPLE)
72
+ find_library(SECURITY_FRAMEWORK "Security")
73
+ mark_as_advanced(SECURITY_FRAMEWORK)
74
+ if(NOT SECURITY_FRAMEWORK)
75
+ message(FATAL_ERROR "Security framework not found")
76
+ endif()
77
+ list(APPEND RUSTLS_LIBRARIES "-framework Security")
78
+
79
+ find_library(FOUNDATION_FRAMEWORK "Foundation")
80
+ mark_as_advanced(FOUNDATION_FRAMEWORK)
81
+ if(NOT FOUNDATION_FRAMEWORK)
82
+ message(FATAL_ERROR "Foundation framework not found")
83
+ endif()
84
+ list(APPEND RUSTLS_LIBRARIES "-framework Foundation")
85
+ elseif(NOT WIN32)
86
+ find_library(_pthread_library "pthread")
87
+ if(_pthread_library)
88
+ list(APPEND RUSTLS_LIBRARIES "pthread")
89
+ endif()
90
+ mark_as_advanced(_pthread_library)
91
+
92
+ find_library(_dl_library "dl")
93
+ if(_dl_library)
94
+ list(APPEND RUSTLS_LIBRARIES "dl")
95
+ endif()
96
+ mark_as_advanced(_dl_library)
97
+
98
+ find_library(_math_library "m")
99
+ if(_math_library)
100
+ list(APPEND RUSTLS_LIBRARIES "m")
101
+ endif()
102
+ mark_as_advanced(_math_library)
103
+ endif()
local-test-curl-delta-01/afc-curl/CMake/FindWolfSSH.cmake ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #***************************************************************************
2
+ # _ _ ____ _
3
+ # Project ___| | | | _ \| |
4
+ # / __| | | | |_) | |
5
+ # | (__| |_| | _ <| |___
6
+ # \___|\___/|_| \_\_____|
7
+ #
8
+ # Copyright (C) Daniel Stenberg, <[email protected]>, et al.
9
+ #
10
+ # This software is licensed as described in the file COPYING, which
11
+ # you should have received as part of this distribution. The terms
12
+ # are also available at https://curl.se/docs/copyright.html.
13
+ #
14
+ # You may opt to use, copy, modify, merge, publish, distribute and/or sell
15
+ # copies of the Software, and permit persons to whom the Software is
16
+ # furnished to do so, under the terms of the COPYING file.
17
+ #
18
+ # This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19
+ # KIND, either express or implied.
20
+ #
21
+ # SPDX-License-Identifier: curl
22
+ #
23
+ ###########################################################################
24
+ # Find the wolfSSH library
25
+ #
26
+ # Input variables:
27
+ #
28
+ # - `WOLFSSH_INCLUDE_DIR`: The wolfSSH include directory.
29
+ # - `WOLFSSH_LIBRARY`: Path to `wolfssh` library.
30
+ #
31
+ # Result variables:
32
+ #
33
+ # - `WOLFSSH_FOUND`: System has wolfSSH.
34
+ # - `WOLFSSH_INCLUDE_DIRS`: The wolfSSH include directories.
35
+ # - `WOLFSSH_LIBRARIES`: The wolfSSH library names.
36
+ # - `WOLFSSH_VERSION`: Version of wolfSSH.
37
+
38
+ find_path(WOLFSSH_INCLUDE_DIR NAMES "wolfssh/ssh.h")
39
+ find_library(WOLFSSH_LIBRARY NAMES "wolfssh" "libwolfssh")
40
+
41
+ unset(WOLFSSH_VERSION CACHE)
42
+ if(WOLFSSH_INCLUDE_DIR AND EXISTS "${WOLFSSH_INCLUDE_DIR}/wolfssh/version.h")
43
+ set(_version_regex "#[\t ]*define[\t ]+LIBWOLFSSH_VERSION_STRING[\t ]+\"([^\"]*)\"")
44
+ file(STRINGS "${WOLFSSH_INCLUDE_DIR}/wolfssh/version.h" _version_str REGEX "${_version_regex}")
45
+ string(REGEX REPLACE "${_version_regex}" "\\1" _version_str "${_version_str}")
46
+ set(WOLFSSH_VERSION "${_version_str}")
47
+ unset(_version_regex)
48
+ unset(_version_str)
49
+ endif()
50
+
51
+ include(FindPackageHandleStandardArgs)
52
+ find_package_handle_standard_args(WolfSSH
53
+ REQUIRED_VARS
54
+ WOLFSSH_INCLUDE_DIR
55
+ WOLFSSH_LIBRARY
56
+ VERSION_VAR
57
+ WOLFSSH_VERSION
58
+ )
59
+
60
+ if(WOLFSSH_FOUND)
61
+ set(WOLFSSH_INCLUDE_DIRS ${WOLFSSH_INCLUDE_DIR})
62
+ set(WOLFSSH_LIBRARIES ${WOLFSSH_LIBRARY})
63
+ endif()
64
+
65
+ mark_as_advanced(WOLFSSH_INCLUDE_DIR WOLFSSH_LIBRARY)
local-test-curl-delta-01/afc-curl/CMake/FindWolfSSL.cmake ADDED
@@ -0,0 +1,96 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #***************************************************************************
2
+ # _ _ ____ _
3
+ # Project ___| | | | _ \| |
4
+ # / __| | | | |_) | |
5
+ # | (__| |_| | _ <| |___
6
+ # \___|\___/|_| \_\_____|
7
+ #
8
+ # Copyright (C) Daniel Stenberg, <[email protected]>, et al.
9
+ #
10
+ # This software is licensed as described in the file COPYING, which
11
+ # you should have received as part of this distribution. The terms
12
+ # are also available at https://curl.se/docs/copyright.html.
13
+ #
14
+ # You may opt to use, copy, modify, merge, publish, distribute and/or sell
15
+ # copies of the Software, and permit persons to whom the Software is
16
+ # furnished to do so, under the terms of the COPYING file.
17
+ #
18
+ # This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19
+ # KIND, either express or implied.
20
+ #
21
+ # SPDX-License-Identifier: curl
22
+ #
23
+ ###########################################################################
24
+ # Find the wolfSSL library
25
+ #
26
+ # Input variables:
27
+ #
28
+ # - `WOLFSSL_INCLUDE_DIR`: The wolfSSL include directory.
29
+ # - `WOLFSSL_LIBRARY`: Path to `wolfssl` library.
30
+ #
31
+ # Result variables:
32
+ #
33
+ # - `WOLFSSL_FOUND`: System has wolfSSL.
34
+ # - `WOLFSSL_INCLUDE_DIRS`: The wolfSSL include directories.
35
+ # - `WOLFSSL_LIBRARIES`: The wolfSSL library names.
36
+ # - `WOLFSSL_LIBRARY_DIRS`: The wolfSSL library directories.
37
+ # - `WOLFSSL_CFLAGS`: Required compiler flags.
38
+ # - `WOLFSSL_VERSION`: Version of wolfSSL.
39
+
40
+ if(DEFINED WolfSSL_INCLUDE_DIR AND NOT DEFINED WOLFSSL_INCLUDE_DIR)
41
+ message(WARNING "WolfSSL_INCLUDE_DIR is deprecated, use WOLFSSL_INCLUDE_DIR instead.")
42
+ set(WOLFSSL_INCLUDE_DIR "${WolfSSL_INCLUDE_DIR}")
43
+ endif()
44
+ if(DEFINED WolfSSL_LIBRARY AND NOT DEFINED WOLFSSL_LIBRARY)
45
+ message(WARNING "WolfSSL_LIBRARY is deprecated, use WOLFSSL_LIBRARY instead.")
46
+ set(WOLFSSL_LIBRARY "${WolfSSL_LIBRARY}")
47
+ endif()
48
+
49
+ if(CURL_USE_PKGCONFIG AND
50
+ NOT DEFINED WOLFSSL_INCLUDE_DIR AND
51
+ NOT DEFINED WOLFSSL_LIBRARY)
52
+ find_package(PkgConfig QUIET)
53
+ pkg_check_modules(WOLFSSL "wolfssl")
54
+ endif()
55
+
56
+ if(WOLFSSL_FOUND)
57
+ string(REPLACE ";" " " WOLFSSL_CFLAGS "${WOLFSSL_CFLAGS}")
58
+ message(STATUS "Found WolfSSL (via pkg-config): ${WOLFSSL_INCLUDE_DIRS} (found version \"${WOLFSSL_VERSION}\")")
59
+ else()
60
+ find_path(WOLFSSL_INCLUDE_DIR NAMES "wolfssl/ssl.h")
61
+ find_library(WOLFSSL_LIBRARY NAMES "wolfssl")
62
+
63
+ unset(WOLFSSL_VERSION CACHE)
64
+ if(WOLFSSL_INCLUDE_DIR AND EXISTS "${WOLFSSL_INCLUDE_DIR}/wolfssl/version.h")
65
+ set(_version_regex "#[\t ]*define[\t ]+LIBWOLFSSL_VERSION_STRING[\t ]+\"([^\"]*)\"")
66
+ file(STRINGS "${WOLFSSL_INCLUDE_DIR}/wolfssl/version.h" _version_str REGEX "${_version_regex}")
67
+ string(REGEX REPLACE "${_version_regex}" "\\1" _version_str "${_version_str}")
68
+ set(WOLFSSL_VERSION "${_version_str}")
69
+ unset(_version_regex)
70
+ unset(_version_str)
71
+ endif()
72
+
73
+ include(FindPackageHandleStandardArgs)
74
+ find_package_handle_standard_args(WolfSSL
75
+ REQUIRED_VARS
76
+ WOLFSSL_INCLUDE_DIR
77
+ WOLFSSL_LIBRARY
78
+ VERSION_VAR
79
+ WOLFSSL_VERSION
80
+ )
81
+
82
+ if(WOLFSSL_FOUND)
83
+ set(WOLFSSL_INCLUDE_DIRS ${WOLFSSL_INCLUDE_DIR})
84
+ set(WOLFSSL_LIBRARIES ${WOLFSSL_LIBRARY})
85
+ endif()
86
+
87
+ mark_as_advanced(WOLFSSL_INCLUDE_DIR WOLFSSL_LIBRARY)
88
+ endif()
89
+
90
+ if(NOT WIN32)
91
+ find_library(_math_library "m")
92
+ if(_math_library)
93
+ list(APPEND WOLFSSL_LIBRARIES "m") # for log and pow
94
+ endif()
95
+ mark_as_advanced(_math_library)
96
+ endif()
local-test-curl-delta-01/afc-curl/CMake/FindZstd.cmake ADDED
@@ -0,0 +1,99 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #***************************************************************************
2
+ # _ _ ____ _
3
+ # Project ___| | | | _ \| |
4
+ # / __| | | | |_) | |
5
+ # | (__| |_| | _ <| |___
6
+ # \___|\___/|_| \_\_____|
7
+ #
8
+ # Copyright (C) Daniel Stenberg, <[email protected]>, et al.
9
+ #
10
+ # This software is licensed as described in the file COPYING, which
11
+ # you should have received as part of this distribution. The terms
12
+ # are also available at https://curl.se/docs/copyright.html.
13
+ #
14
+ # You may opt to use, copy, modify, merge, publish, distribute and/or sell
15
+ # copies of the Software, and permit persons to whom the Software is
16
+ # furnished to do so, under the terms of the COPYING file.
17
+ #
18
+ # This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19
+ # KIND, either express or implied.
20
+ #
21
+ # SPDX-License-Identifier: curl
22
+ #
23
+ ###########################################################################
24
+ # Find the zstd library
25
+ #
26
+ # Input variables:
27
+ #
28
+ # - `ZSTD_INCLUDE_DIR`: The zstd include directory.
29
+ # - `ZSTD_LIBRARY`: Path to `zstd` library.
30
+ #
31
+ # Result variables:
32
+ #
33
+ # - `ZSTD_FOUND`: System has zstd.
34
+ # - `ZSTD_INCLUDE_DIRS`: The zstd include directories.
35
+ # - `ZSTD_LIBRARIES`: The zstd library names.
36
+ # - `ZSTD_VERSION`: Version of zstd.
37
+
38
+ if(DEFINED Zstd_INCLUDE_DIR AND NOT DEFINED ZSTD_INCLUDE_DIR)
39
+ message(WARNING "Zstd_INCLUDE_DIR is deprecated, use ZSTD_INCLUDE_DIR instead.")
40
+ set(ZSTD_INCLUDE_DIR "${Zstd_INCLUDE_DIR}")
41
+ endif()
42
+ if(DEFINED Zstd_LIBRARY AND NOT DEFINED ZSTD_LIBRARY)
43
+ message(WARNING "Zstd_LIBRARY is deprecated, use ZSTD_LIBRARY instead.")
44
+ set(ZSTD_LIBRARY "${Zstd_LIBRARY}")
45
+ endif()
46
+
47
+ if(CURL_USE_PKGCONFIG)
48
+ find_package(PkgConfig QUIET)
49
+ pkg_check_modules(PC_ZSTD "libzstd")
50
+ endif()
51
+
52
+ find_path(ZSTD_INCLUDE_DIR NAMES "zstd.h"
53
+ HINTS
54
+ ${PC_ZSTD_INCLUDEDIR}
55
+ ${PC_ZSTD_INCLUDE_DIRS}
56
+ )
57
+
58
+ find_library(ZSTD_LIBRARY NAMES "zstd"
59
+ HINTS
60
+ ${PC_ZSTD_LIBDIR}
61
+ ${PC_ZSTD_LIBRARY_DIRS}
62
+ )
63
+
64
+ if(PC_ZSTD_VERSION)
65
+ set(ZSTD_VERSION ${PC_ZSTD_VERSION})
66
+ elseif(ZSTD_INCLUDE_DIR AND EXISTS "${ZSTD_INCLUDE_DIR}/zstd.h")
67
+ set(_version_regex1 "#[\t ]*define[ \t]+ZSTD_VERSION_MAJOR[ \t]+([0-9]+).*")
68
+ set(_version_regex2 "#[\t ]*define[ \t]+ZSTD_VERSION_MINOR[ \t]+([0-9]+).*")
69
+ set(_version_regex3 "#[\t ]*define[ \t]+ZSTD_VERSION_RELEASE[ \t]+([0-9]+).*")
70
+ file(STRINGS "${ZSTD_INCLUDE_DIR}/zstd.h" _version_str1 REGEX "${_version_regex1}")
71
+ file(STRINGS "${ZSTD_INCLUDE_DIR}/zstd.h" _version_str2 REGEX "${_version_regex2}")
72
+ file(STRINGS "${ZSTD_INCLUDE_DIR}/zstd.h" _version_str3 REGEX "${_version_regex3}")
73
+ string(REGEX REPLACE "${_version_regex1}" "\\1" _version_str1 "${_version_str1}")
74
+ string(REGEX REPLACE "${_version_regex2}" "\\1" _version_str2 "${_version_str2}")
75
+ string(REGEX REPLACE "${_version_regex3}" "\\1" _version_str3 "${_version_str3}")
76
+ set(ZSTD_VERSION "${_version_str1}.${_version_str2}.${_version_str3}")
77
+ unset(_version_regex1)
78
+ unset(_version_regex2)
79
+ unset(_version_regex3)
80
+ unset(_version_str1)
81
+ unset(_version_str2)
82
+ unset(_version_str3)
83
+ endif()
84
+
85
+ include(FindPackageHandleStandardArgs)
86
+ find_package_handle_standard_args(Zstd
87
+ REQUIRED_VARS
88
+ ZSTD_INCLUDE_DIR
89
+ ZSTD_LIBRARY
90
+ VERSION_VAR
91
+ ZSTD_VERSION
92
+ )
93
+
94
+ if(ZSTD_FOUND)
95
+ set(ZSTD_INCLUDE_DIRS ${ZSTD_INCLUDE_DIR})
96
+ set(ZSTD_LIBRARIES ${ZSTD_LIBRARY})
97
+ endif()
98
+
99
+ mark_as_advanced(ZSTD_INCLUDE_DIR ZSTD_LIBRARY)
local-test-curl-delta-01/afc-curl/CMake/Macros.cmake ADDED
@@ -0,0 +1,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #***************************************************************************
2
+ # _ _ ____ _
3
+ # Project ___| | | | _ \| |
4
+ # / __| | | | |_) | |
5
+ # | (__| |_| | _ <| |___
6
+ # \___|\___/|_| \_\_____|
7
+ #
8
+ # Copyright (C) Daniel Stenberg, <[email protected]>, et al.
9
+ #
10
+ # This software is licensed as described in the file COPYING, which
11
+ # you should have received as part of this distribution. The terms
12
+ # are also available at https://curl.se/docs/copyright.html.
13
+ #
14
+ # You may opt to use, copy, modify, merge, publish, distribute and/or sell
15
+ # copies of the Software, and permit persons to whom the Software is
16
+ # furnished to do so, under the terms of the COPYING file.
17
+ #
18
+ # This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19
+ # KIND, either express or implied.
20
+ #
21
+ # SPDX-License-Identifier: curl
22
+ #
23
+ ###########################################################################
24
+ # File defines convenience macros for available feature testing
25
+
26
+ # Check if header file exists and add it to the list.
27
+ # This macro is intended to be called multiple times with a sequence of
28
+ # possibly dependent header files. Some headers depend on others to be
29
+ # compiled correctly.
30
+ macro(check_include_file_concat _file _variable)
31
+ check_include_files("${CURL_INCLUDES};${_file}" ${_variable})
32
+ if(${_variable})
33
+ list(APPEND CURL_INCLUDES ${_file})
34
+ endif()
35
+ endmacro()
36
+
37
+ # For other curl specific tests, use this macro.
38
+ # Return result in variable: CURL_TEST_OUTPUT
39
+ macro(curl_internal_test _curl_test)
40
+ if(NOT DEFINED "${_curl_test}")
41
+ string(REPLACE ";" " " _cmake_required_definitions "${CMAKE_REQUIRED_DEFINITIONS}")
42
+ if(CMAKE_REQUIRED_LIBRARIES)
43
+ set(_curl_test_add_libraries
44
+ "-DLINK_LIBRARIES:STRING=${CMAKE_REQUIRED_LIBRARIES}")
45
+ endif()
46
+
47
+ message(STATUS "Performing Test ${_curl_test}")
48
+ try_compile(${_curl_test}
49
+ ${PROJECT_BINARY_DIR}
50
+ "${CMAKE_CURRENT_SOURCE_DIR}/CMake/CurlTests.c"
51
+ CMAKE_FLAGS
52
+ "-DCOMPILE_DEFINITIONS:STRING=-D${_curl_test} ${CURL_TEST_DEFINES} ${_cmake_required_definitions}"
53
+ "${_curl_test_add_libraries}"
54
+ OUTPUT_VARIABLE CURL_TEST_OUTPUT)
55
+ if(${_curl_test})
56
+ set(${_curl_test} 1 CACHE INTERNAL "Curl test")
57
+ message(STATUS "Performing Test ${_curl_test} - Success")
58
+ else()
59
+ set(${_curl_test} "" CACHE INTERNAL "Curl test")
60
+ message(STATUS "Performing Test ${_curl_test} - Failed")
61
+ endif()
62
+ endif()
63
+ endmacro()
64
+
65
+ macro(curl_dependency_option _dependency)
66
+ set(CURL_${_dependency} "AUTO" CACHE STRING "Build curl with ${_dependency} support (AUTO, ON or OFF)")
67
+ set_property(CACHE CURL_${_dependency} PROPERTY STRINGS "AUTO" "ON" "OFF")
68
+
69
+ if(CURL_${_dependency} STREQUAL "AUTO")
70
+ find_package(${_dependency})
71
+ elseif(CURL_${_dependency})
72
+ find_package(${_dependency} REQUIRED)
73
+ endif()
74
+ endmacro()
75
+
76
+ # Convert the passed paths to libpath linker options and add them to CMAKE_REQUIRED_LINK_OPTIONS.
77
+ macro(curl_required_libpaths _libpaths_arg)
78
+ set(_libpaths "${_libpaths_arg}")
79
+ foreach(_libpath IN LISTS _libpaths)
80
+ list(APPEND CMAKE_REQUIRED_LINK_OPTIONS "${CMAKE_LIBRARY_PATH_FLAG}${_libpath}")
81
+ endforeach()
82
+ endmacro()
local-test-curl-delta-01/afc-curl/CMake/OtherTests.cmake ADDED
@@ -0,0 +1,156 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #***************************************************************************
2
+ # _ _ ____ _
3
+ # Project ___| | | | _ \| |
4
+ # / __| | | | |_) | |
5
+ # | (__| |_| | _ <| |___
6
+ # \___|\___/|_| \_\_____|
7
+ #
8
+ # Copyright (C) Daniel Stenberg, <[email protected]>, et al.
9
+ #
10
+ # This software is licensed as described in the file COPYING, which
11
+ # you should have received as part of this distribution. The terms
12
+ # are also available at https://curl.se/docs/copyright.html.
13
+ #
14
+ # You may opt to use, copy, modify, merge, publish, distribute and/or sell
15
+ # copies of the Software, and permit persons to whom the Software is
16
+ # furnished to do so, under the terms of the COPYING file.
17
+ #
18
+ # This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19
+ # KIND, either express or implied.
20
+ #
21
+ # SPDX-License-Identifier: curl
22
+ #
23
+ ###########################################################################
24
+ include(CheckCSourceCompiles)
25
+ include(CheckCSourceRuns)
26
+ include(CheckTypeSize)
27
+
28
+ macro(add_header_include _check _header)
29
+ if(${_check})
30
+ set(_source_epilogue "${_source_epilogue}
31
+ #include <${_header}>")
32
+ endif()
33
+ endmacro()
34
+
35
+ set(_cmake_try_compile_target_type_save ${CMAKE_TRY_COMPILE_TARGET_TYPE})
36
+ set(CMAKE_TRY_COMPILE_TARGET_TYPE "STATIC_LIBRARY")
37
+
38
+ if(NOT DEFINED HAVE_STRUCT_SOCKADDR_STORAGE)
39
+ cmake_push_check_state()
40
+ unset(CMAKE_EXTRA_INCLUDE_FILES)
41
+ if(WIN32)
42
+ set(CMAKE_EXTRA_INCLUDE_FILES "winsock2.h")
43
+ set(CMAKE_REQUIRED_LIBRARIES "ws2_32")
44
+ elseif(HAVE_SYS_SOCKET_H)
45
+ set(CMAKE_EXTRA_INCLUDE_FILES "sys/socket.h")
46
+ endif()
47
+ check_type_size("struct sockaddr_storage" SIZEOF_STRUCT_SOCKADDR_STORAGE)
48
+ set(HAVE_STRUCT_SOCKADDR_STORAGE ${HAVE_SIZEOF_STRUCT_SOCKADDR_STORAGE})
49
+ cmake_pop_check_state()
50
+ endif()
51
+
52
+ if(NOT WIN32)
53
+ set(_source_epilogue "#undef inline")
54
+ add_header_include(HAVE_SYS_TYPES_H "sys/types.h")
55
+ add_header_include(HAVE_SYS_SOCKET_H "sys/socket.h")
56
+ check_c_source_compiles("${_source_epilogue}
57
+ int main(void)
58
+ {
59
+ int flag = MSG_NOSIGNAL;
60
+ (void)flag;
61
+ return 0;
62
+ }" HAVE_MSG_NOSIGNAL)
63
+ endif()
64
+
65
+ set(_source_epilogue "#undef inline")
66
+ add_header_include(HAVE_SYS_TIME_H "sys/time.h")
67
+ check_c_source_compiles("${_source_epilogue}
68
+ #include <time.h>
69
+ int main(void)
70
+ {
71
+ struct timeval ts;
72
+ ts.tv_sec = 0;
73
+ ts.tv_usec = 0;
74
+ (void)ts;
75
+ return 0;
76
+ }" HAVE_STRUCT_TIMEVAL)
77
+
78
+ set(CMAKE_TRY_COMPILE_TARGET_TYPE ${_cmake_try_compile_target_type_save})
79
+ unset(_cmake_try_compile_target_type_save)
80
+
81
+ # Detect HAVE_GETADDRINFO_THREADSAFE
82
+
83
+ if(WIN32)
84
+ set(HAVE_GETADDRINFO_THREADSAFE ${HAVE_GETADDRINFO})
85
+ elseif(NOT HAVE_GETADDRINFO)
86
+ set(HAVE_GETADDRINFO_THREADSAFE FALSE)
87
+ elseif(APPLE OR
88
+ CMAKE_SYSTEM_NAME STREQUAL "AIX" OR
89
+ CMAKE_SYSTEM_NAME STREQUAL "FreeBSD" OR
90
+ CMAKE_SYSTEM_NAME STREQUAL "HP-UX" OR
91
+ CMAKE_SYSTEM_NAME STREQUAL "MidnightBSD" OR
92
+ CMAKE_SYSTEM_NAME STREQUAL "NetBSD" OR
93
+ CMAKE_SYSTEM_NAME STREQUAL "SunOS")
94
+ set(HAVE_GETADDRINFO_THREADSAFE TRUE)
95
+ elseif(BSD OR CMAKE_SYSTEM_NAME MATCHES "BSD")
96
+ set(HAVE_GETADDRINFO_THREADSAFE FALSE)
97
+ endif()
98
+
99
+ if(NOT DEFINED HAVE_GETADDRINFO_THREADSAFE)
100
+ set(_source_epilogue "#undef inline")
101
+ add_header_include(HAVE_SYS_SOCKET_H "sys/socket.h")
102
+ add_header_include(HAVE_SYS_TIME_H "sys/time.h")
103
+ add_header_include(HAVE_NETDB_H "netdb.h")
104
+ check_c_source_compiles("${_source_epilogue}
105
+ int main(void)
106
+ {
107
+ #ifdef h_errno
108
+ return 0;
109
+ #else
110
+ #error force compilation error
111
+ #endif
112
+ }" HAVE_H_ERRNO)
113
+
114
+ if(NOT HAVE_H_ERRNO)
115
+ check_c_source_compiles("${_source_epilogue}
116
+ int main(void)
117
+ {
118
+ h_errno = 2;
119
+ return h_errno != 0 ? 1 : 0;
120
+ }" HAVE_H_ERRNO_ASSIGNABLE)
121
+
122
+ if(NOT HAVE_H_ERRNO_ASSIGNABLE)
123
+ check_c_source_compiles("${_source_epilogue}
124
+ int main(void)
125
+ {
126
+ #if defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 200809L)
127
+ return 0;
128
+ #elif defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 700)
129
+ return 0;
130
+ #else
131
+ #error force compilation error
132
+ #endif
133
+ }" HAVE_H_ERRNO_SBS_ISSUE_7)
134
+ endif()
135
+ endif()
136
+
137
+ if(HAVE_H_ERRNO OR HAVE_H_ERRNO_ASSIGNABLE OR HAVE_H_ERRNO_SBS_ISSUE_7)
138
+ set(HAVE_GETADDRINFO_THREADSAFE TRUE)
139
+ endif()
140
+ endif()
141
+
142
+ if(NOT WIN32 AND NOT DEFINED HAVE_CLOCK_GETTIME_MONOTONIC_RAW)
143
+ set(_source_epilogue "#undef inline")
144
+ add_header_include(HAVE_SYS_TYPES_H "sys/types.h")
145
+ add_header_include(HAVE_SYS_TIME_H "sys/time.h")
146
+ check_c_source_compiles("${_source_epilogue}
147
+ #include <time.h>
148
+ int main(void)
149
+ {
150
+ struct timespec ts;
151
+ (void)clock_gettime(CLOCK_MONOTONIC_RAW, &ts);
152
+ return 0;
153
+ }" HAVE_CLOCK_GETTIME_MONOTONIC_RAW)
154
+ endif()
155
+
156
+ unset(_source_epilogue)
local-test-curl-delta-01/afc-curl/CMake/PickyWarnings.cmake ADDED
@@ -0,0 +1,265 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #***************************************************************************
2
+ # _ _ ____ _
3
+ # Project ___| | | | _ \| |
4
+ # / __| | | | |_) | |
5
+ # | (__| |_| | _ <| |___
6
+ # \___|\___/|_| \_\_____|
7
+ #
8
+ # Copyright (C) Daniel Stenberg, <[email protected]>, et al.
9
+ #
10
+ # This software is licensed as described in the file COPYING, which
11
+ # you should have received as part of this distribution. The terms
12
+ # are also available at https://curl.se/docs/copyright.html.
13
+ #
14
+ # You may opt to use, copy, modify, merge, publish, distribute and/or sell
15
+ # copies of the Software, and permit persons to whom the Software is
16
+ # furnished to do so, under the terms of the COPYING file.
17
+ #
18
+ # This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19
+ # KIND, either express or implied.
20
+ #
21
+ # SPDX-License-Identifier: curl
22
+ #
23
+ ###########################################################################
24
+ include(CheckCCompilerFlag)
25
+
26
+ unset(_picky)
27
+
28
+ if(CURL_WERROR AND
29
+ ((CMAKE_COMPILER_IS_GNUCC AND
30
+ NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 5.0 AND
31
+ NOT CMAKE_VERSION VERSION_LESS 3.23.0) OR # to avoid check_symbol_exists() conflicting with GCC -pedantic-errors
32
+ CMAKE_C_COMPILER_ID MATCHES "Clang"))
33
+ list(APPEND _picky "-pedantic-errors")
34
+ if(MSVC) # clang-cl
35
+ list(APPEND _picky "-Wno-language-extension-token") # Override default error to make __int64 size detection pass
36
+ endif()
37
+ endif()
38
+
39
+ if(APPLE AND
40
+ (CMAKE_C_COMPILER_ID STREQUAL "Clang" AND NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 3.6) OR
41
+ (CMAKE_C_COMPILER_ID STREQUAL "AppleClang" AND NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 6.3))
42
+ list(APPEND _picky "-Werror=partial-availability") # clang 3.6 appleclang 6.3
43
+ endif()
44
+
45
+ if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID MATCHES "Clang")
46
+ list(APPEND _picky "-Werror-implicit-function-declaration") # clang 1.0 gcc 2.95
47
+ endif()
48
+
49
+ if(PICKY_COMPILER)
50
+ if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID MATCHES "Clang")
51
+
52
+ # https://clang.llvm.org/docs/DiagnosticsReference.html
53
+ # https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html
54
+
55
+ # _picky_enable = Options we want to enable as-is.
56
+ # _picky_detect = Options we want to test first and enable if available.
57
+
58
+ # Prefer the -Wextra alias with clang.
59
+ if(CMAKE_C_COMPILER_ID MATCHES "Clang")
60
+ set(_picky_enable "-Wextra")
61
+ else()
62
+ set(_picky_enable "-W")
63
+ endif()
64
+
65
+ list(APPEND _picky_enable
66
+ -Wall -pedantic
67
+ )
68
+
69
+ # ----------------------------------
70
+ # Add new options here, if in doubt:
71
+ # ----------------------------------
72
+ set(_picky_detect
73
+ )
74
+
75
+ # Assume these options always exist with both clang and gcc.
76
+ # Require clang 3.0 / gcc 2.95 or later.
77
+ list(APPEND _picky_enable
78
+ -Wbad-function-cast # clang 2.7 gcc 2.95
79
+ -Wconversion # clang 2.7 gcc 2.95
80
+ -Winline # clang 1.0 gcc 1.0
81
+ -Wmissing-declarations # clang 1.0 gcc 2.7
82
+ -Wmissing-prototypes # clang 1.0 gcc 1.0
83
+ -Wnested-externs # clang 1.0 gcc 2.7
84
+ -Wno-long-long # clang 1.0 gcc 2.95
85
+ -Wno-multichar # clang 1.0 gcc 2.95
86
+ -Wpointer-arith # clang 1.0 gcc 1.4
87
+ -Wshadow # clang 1.0 gcc 2.95
88
+ -Wsign-compare # clang 1.0 gcc 2.95
89
+ -Wundef # clang 1.0 gcc 2.95
90
+ -Wunused # clang 1.1 gcc 2.95
91
+ -Wwrite-strings # clang 1.0 gcc 1.4
92
+ )
93
+
94
+ # Always enable with clang, version dependent with gcc
95
+ set(_picky_common_old
96
+ -Waddress # clang 2.7 gcc 4.3
97
+ -Wattributes # clang 2.7 gcc 4.1
98
+ -Wcast-align # clang 1.0 gcc 4.2
99
+ -Wdeclaration-after-statement # clang 1.0 gcc 3.4
100
+ -Wdiv-by-zero # clang 2.7 gcc 4.1
101
+ -Wempty-body # clang 2.7 gcc 4.3
102
+ -Wendif-labels # clang 1.0 gcc 3.3
103
+ -Wfloat-equal # clang 1.0 gcc 2.96 (3.0)
104
+ -Wformat-security # clang 2.7 gcc 4.1
105
+ -Wignored-qualifiers # clang 2.8 gcc 4.3
106
+ -Wmissing-field-initializers # clang 2.7 gcc 4.1
107
+ -Wmissing-noreturn # clang 2.7 gcc 4.1
108
+ -Wno-format-nonliteral # clang 1.0 gcc 2.96 (3.0)
109
+ -Wno-system-headers # clang 1.0 gcc 3.0
110
+ # -Wpadded # clang 2.9 gcc 4.1 # Not used: We cannot change public structs
111
+ -Wold-style-definition # clang 2.7 gcc 3.4
112
+ -Wredundant-decls # clang 2.7 gcc 4.1
113
+ -Wsign-conversion # clang 2.9 gcc 4.3
114
+ -Wno-error=sign-conversion # FIXME
115
+ -Wstrict-prototypes # clang 1.0 gcc 3.3
116
+ # -Wswitch-enum # clang 2.7 gcc 4.1 # Not used: It basically disallows default case
117
+ -Wtype-limits # clang 2.7 gcc 4.3
118
+ -Wunreachable-code # clang 2.7 gcc 4.1
119
+ # -Wunused-macros # clang 2.7 gcc 4.1 # Not practical
120
+ -Wunused-parameter # clang 2.7 gcc 4.1
121
+ -Wvla # clang 2.8 gcc 4.3
122
+ )
123
+
124
+ set(_picky_common
125
+ -Wdouble-promotion # clang 3.6 gcc 4.6 appleclang 6.3
126
+ -Wenum-conversion # clang 3.2 gcc 10.0 appleclang 4.6 g++ 11.0
127
+ -Wpragmas # clang 3.5 gcc 4.1 appleclang 6.0
128
+ -Wunused-const-variable # clang 3.4 gcc 6.0 appleclang 5.1
129
+ )
130
+
131
+ if(CMAKE_C_COMPILER_ID MATCHES "Clang")
132
+ list(APPEND _picky_enable
133
+ ${_picky_common_old}
134
+ -Wshift-sign-overflow # clang 2.9
135
+ -Wshorten-64-to-32 # clang 1.0
136
+ -Wformat=2 # clang 3.0 gcc 4.8
137
+ )
138
+ if(NOT MSVC)
139
+ list(APPEND _picky_enable
140
+ -Wlanguage-extension-token # clang 3.0 # Avoid for clang-cl to allow __int64
141
+ )
142
+ endif()
143
+ # Enable based on compiler version
144
+ if((CMAKE_C_COMPILER_ID STREQUAL "Clang" AND NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 3.6) OR
145
+ (CMAKE_C_COMPILER_ID STREQUAL "AppleClang" AND NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 6.3))
146
+ list(APPEND _picky_enable
147
+ ${_picky_common}
148
+ # -Wunreachable-code-break # clang 3.5 appleclang 6.0 # Not used: Silent in "unity" builds
149
+ -Wheader-guard # clang 3.4 appleclang 5.1
150
+ -Wsometimes-uninitialized # clang 3.2 appleclang 4.6
151
+ )
152
+ endif()
153
+ if((CMAKE_C_COMPILER_ID STREQUAL "Clang" AND NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 3.9) OR
154
+ (CMAKE_C_COMPILER_ID STREQUAL "AppleClang" AND NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 8.3))
155
+ list(APPEND _picky_enable
156
+ -Wcomma # clang 3.9 appleclang 8.3
157
+ -Wmissing-variable-declarations # clang 3.2 appleclang 4.6
158
+ )
159
+ endif()
160
+ if((CMAKE_C_COMPILER_ID STREQUAL "Clang" AND NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 7.0) OR
161
+ (CMAKE_C_COMPILER_ID STREQUAL "AppleClang" AND NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 10.3))
162
+ list(APPEND _picky_enable
163
+ -Wassign-enum # clang 7.0 appleclang 10.3
164
+ -Wextra-semi-stmt # clang 7.0 appleclang 10.3
165
+ )
166
+ endif()
167
+ if((CMAKE_C_COMPILER_ID STREQUAL "Clang" AND NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 10.0) OR
168
+ (CMAKE_C_COMPILER_ID STREQUAL "AppleClang" AND NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 12.4))
169
+ list(APPEND _picky_enable
170
+ -Wimplicit-fallthrough # clang 4.0 gcc 7.0 appleclang 12.4 # We do silencing for clang 10.0 and above only
171
+ )
172
+ endif()
173
+ else() # gcc
174
+ list(APPEND _picky_detect
175
+ ${_picky_common}
176
+ )
177
+ # Enable based on compiler version
178
+ if(NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 4.3)
179
+ list(APPEND _picky_enable
180
+ ${_picky_common_old}
181
+ -Wclobbered # gcc 4.3
182
+ -Wmissing-parameter-type # gcc 4.3
183
+ -Wold-style-declaration # gcc 4.3
184
+ -Wstrict-aliasing=3 # gcc 4.0
185
+ -Wtrampolines # gcc 4.3
186
+ )
187
+ endif()
188
+ if(NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 4.5 AND MINGW)
189
+ list(APPEND _picky_enable
190
+ -Wno-pedantic-ms-format # gcc 4.5 (MinGW-only)
191
+ )
192
+ endif()
193
+ if(NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 4.8)
194
+ list(APPEND _picky_enable
195
+ -Wformat=2 # clang 3.0 gcc 4.8
196
+ )
197
+ endif()
198
+ if(NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 5.0)
199
+ list(APPEND _picky_enable
200
+ -Warray-bounds=2 -ftree-vrp # clang 3.0 gcc 5.0 (clang default: -Warray-bounds)
201
+ )
202
+ endif()
203
+ if(NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 6.0)
204
+ list(APPEND _picky_enable
205
+ -Wduplicated-cond # gcc 6.0
206
+ -Wnull-dereference # clang 3.0 gcc 6.0 (clang default)
207
+ -fdelete-null-pointer-checks
208
+ -Wshift-negative-value # clang 3.7 gcc 6.0 (clang default)
209
+ -Wshift-overflow=2 # clang 3.0 gcc 6.0 (clang default: -Wshift-overflow)
210
+ )
211
+ endif()
212
+ if(NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 7.0)
213
+ list(APPEND _picky_enable
214
+ -Walloc-zero # gcc 7.0
215
+ -Wduplicated-branches # gcc 7.0
216
+ -Wformat-truncation=2 # gcc 7.0
217
+ -Wimplicit-fallthrough # clang 4.0 gcc 7.0
218
+ -Wrestrict # gcc 7.0
219
+ )
220
+ endif()
221
+ if(NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 10.0)
222
+ list(APPEND _picky_enable
223
+ -Warith-conversion # gcc 10.0
224
+ )
225
+ endif()
226
+ endif()
227
+
228
+ #
229
+
230
+ foreach(_ccopt IN LISTS _picky_enable)
231
+ list(APPEND _picky "${_ccopt}")
232
+ endforeach()
233
+
234
+ foreach(_ccopt IN LISTS _picky_detect)
235
+ # Use a unique variable name 1. for meaningful log output 2. to have a fresh, undefined variable for each detection
236
+ string(MAKE_C_IDENTIFIER "OPT${_ccopt}" _optvarname)
237
+ # GCC only warns about unknown -Wno- options if there are also other diagnostic messages,
238
+ # so test for the positive form instead
239
+ string(REPLACE "-Wno-" "-W" _ccopt_on "${_ccopt}")
240
+ check_c_compiler_flag(${_ccopt_on} ${_optvarname})
241
+ if(${_optvarname})
242
+ list(APPEND _picky "${_ccopt}")
243
+ endif()
244
+ endforeach()
245
+ endif()
246
+ endif()
247
+
248
+ # clang-cl
249
+ if(CMAKE_C_COMPILER_ID STREQUAL "Clang" AND MSVC)
250
+ if(CMAKE_VERSION VERSION_LESS 3.12)
251
+ set(_picky_tmp "")
252
+ foreach(_ccopt IN LISTS _picky)
253
+ list(APPEND _picky_tmp "/clang:${_ccopt}")
254
+ endforeach()
255
+ set(_picky ${_picky_tmp})
256
+ else()
257
+ list(TRANSFORM _picky PREPEND "/clang:")
258
+ endif()
259
+ endif()
260
+
261
+ if(_picky)
262
+ string(REPLACE ";" " " _picky "${_picky}")
263
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${_picky}")
264
+ message(STATUS "Picky compiler options: ${_picky}")
265
+ endif()
local-test-curl-delta-01/afc-curl/CMake/Utilities.cmake ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #***************************************************************************
2
+ # _ _ ____ _
3
+ # Project ___| | | | _ \| |
4
+ # / __| | | | |_) | |
5
+ # | (__| |_| | _ <| |___
6
+ # \___|\___/|_| \_\_____|
7
+ #
8
+ # Copyright (C) Daniel Stenberg, <[email protected]>, et al.
9
+ #
10
+ # This software is licensed as described in the file COPYING, which
11
+ # you should have received as part of this distribution. The terms
12
+ # are also available at https://curl.se/docs/copyright.html.
13
+ #
14
+ # You may opt to use, copy, modify, merge, publish, distribute and/or sell
15
+ # copies of the Software, and permit persons to whom the Software is
16
+ # furnished to do so, under the terms of the COPYING file.
17
+ #
18
+ # This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19
+ # KIND, either express or implied.
20
+ #
21
+ # SPDX-License-Identifier: curl
22
+ #
23
+ ###########################################################################
24
+ # File containing various utilities
25
+
26
+ # Returns number of arguments that evaluate to true
27
+ function(count_true _output_count_var)
28
+ set(lst_len 0)
29
+ foreach(option_var IN LISTS ARGN)
30
+ if(${option_var})
31
+ math(EXPR lst_len "${lst_len} + 1")
32
+ endif()
33
+ endforeach()
34
+ set(${_output_count_var} ${lst_len} PARENT_SCOPE)
35
+ endfunction()
local-test-curl-delta-01/afc-curl/CMake/cmake_uninstall.cmake.in ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #***************************************************************************
2
+ # _ _ ____ _
3
+ # Project ___| | | | _ \| |
4
+ # / __| | | | |_) | |
5
+ # | (__| |_| | _ <| |___
6
+ # \___|\___/|_| \_\_____|
7
+ #
8
+ # Copyright (C) Daniel Stenberg, <[email protected]>, et al.
9
+ #
10
+ # This software is licensed as described in the file COPYING, which
11
+ # you should have received as part of this distribution. The terms
12
+ # are also available at https://curl.se/docs/copyright.html.
13
+ #
14
+ # You may opt to use, copy, modify, merge, publish, distribute and/or sell
15
+ # copies of the Software, and permit persons to whom the Software is
16
+ # furnished to do so, under the terms of the COPYING file.
17
+ #
18
+ # This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19
+ # KIND, either express or implied.
20
+ #
21
+ # SPDX-License-Identifier: curl
22
+ #
23
+ ###########################################################################
24
+ if(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt")
25
+ message(FATAL_ERROR "Cannot find install manifest: @CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt")
26
+ endif()
27
+
28
+ if(NOT DEFINED CMAKE_INSTALL_PREFIX)
29
+ set(CMAKE_INSTALL_PREFIX "@CMAKE_INSTALL_PREFIX@")
30
+ endif()
31
+ message(${CMAKE_INSTALL_PREFIX})
32
+
33
+ file(READ "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt" _files)
34
+ string(REGEX REPLACE "\n" ";" _files "${_files}")
35
+ foreach(_file ${_files})
36
+ message(STATUS "Uninstalling $ENV{DESTDIR}${_file}")
37
+ if(IS_SYMLINK "$ENV{DESTDIR}${_file}" OR EXISTS "$ENV{DESTDIR}${_file}")
38
+ exec_program(
39
+ "@CMAKE_COMMAND@" ARGS "-E remove \"$ENV{DESTDIR}${_file}\""
40
+ OUTPUT_VARIABLE rm_out
41
+ RETURN_VALUE rm_retval
42
+ )
43
+ if(NOT "${rm_retval}" STREQUAL 0)
44
+ message(FATAL_ERROR "Problem when removing $ENV{DESTDIR}${_file}")
45
+ endif()
46
+ else()
47
+ message(STATUS "File $ENV{DESTDIR}${_file} does not exist.")
48
+ endif()
49
+ endforeach()
local-test-curl-delta-01/afc-curl/CMake/curl-config.cmake.in ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #***************************************************************************
2
+ # _ _ ____ _
3
+ # Project ___| | | | _ \| |
4
+ # / __| | | | |_) | |
5
+ # | (__| |_| | _ <| |___
6
+ # \___|\___/|_| \_\_____|
7
+ #
8
+ # Copyright (C) Daniel Stenberg, <[email protected]>, et al.
9
+ #
10
+ # This software is licensed as described in the file COPYING, which
11
+ # you should have received as part of this distribution. The terms
12
+ # are also available at https://curl.se/docs/copyright.html.
13
+ #
14
+ # You may opt to use, copy, modify, merge, publish, distribute and/or sell
15
+ # copies of the Software, and permit persons to whom the Software is
16
+ # furnished to do so, under the terms of the COPYING file.
17
+ #
18
+ # This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19
+ # KIND, either express or implied.
20
+ #
21
+ # SPDX-License-Identifier: curl
22
+ #
23
+ ###########################################################################
24
+ @PACKAGE_INIT@
25
+
26
+ if(UNIX OR VCPKG_TOOLCHAIN OR (MINGW AND NOT CMAKE_CROSSCOMPILING)) # Keep in sync with root CMakeLists.txt
27
+ set(_curl_use_pkgconfig_default ON)
28
+ else()
29
+ set(_curl_use_pkgconfig_default OFF)
30
+ endif()
31
+ option(CURL_USE_PKGCONFIG "Enable pkg-config to detect @PROJECT_NAME@ dependencies" ${_curl_use_pkgconfig_default})
32
+
33
+ include(CMakeFindDependencyMacro)
34
+ if("@USE_OPENSSL@")
35
+ find_dependency(OpenSSL "@OPENSSL_VERSION_MAJOR@")
36
+ endif()
37
+ if("@HAVE_LIBZ@")
38
+ find_dependency(ZLIB "@ZLIB_VERSION_MAJOR@")
39
+ endif()
40
+
41
+ include("${CMAKE_CURRENT_LIST_DIR}/@[email protected]")
42
+ check_required_components("@PROJECT_NAME@")
43
+
44
+ # Alias for either shared or static library
45
+ if(NOT TARGET @PROJECT_NAME@::libcurl)
46
+ add_library(@PROJECT_NAME@::libcurl ALIAS @PROJECT_NAME@::@LIB_SELECTED@)
47
+ endif()
48
+
49
+ # For compatibility with CMake's FindCURL.cmake
50
+ set(CURL_LIBRARIES @PROJECT_NAME@::libcurl)
51
+ set_and_check(CURL_INCLUDE_DIRS "@PACKAGE_CMAKE_INSTALL_INCLUDEDIR@")
local-test-curl-delta-01/afc-curl/LICENSES/BSD-3-Clause.txt ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Copyright (c) <year> <owner>.
2
+
3
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
4
+
5
+ 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
6
+
7
+ 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
8
+
9
+ 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
10
+
11
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
local-test-curl-delta-01/afc-curl/LICENSES/BSD-4-Clause-UC.txt ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ BSD-4-Clause (University of California-Specific)
2
+
3
+ Copyright [various years] The Regents of the University of California. All rights reserved.
4
+
5
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
6
+
7
+ 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
8
+
9
+ 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
10
+
11
+ 3. All advertising materials mentioning features or use of this software must display the following acknowledgement: This product includes software developed by the University of California, Berkeley and its contributors.
12
+
13
+ 4. Neither the name of the University nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
14
+
15
+ THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
local-test-curl-delta-01/afc-curl/LICENSES/ISC.txt ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Permission to use, copy, modify, and distribute this software for any
2
+ purpose with or without fee is hereby granted, provided that the above
3
+ copyright notice and this permission notice appear in all copies.
4
+
5
+ THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
6
+ DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
7
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
8
+ INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
9
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
10
+ FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
11
+ NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
12
+ WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
local-test-curl-delta-01/afc-curl/LICENSES/curl.txt ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ COPYRIGHT AND PERMISSION NOTICE
2
+
3
+ Copyright (C) Daniel Stenberg, <[email protected]>, and many
4
+ contributors, see the THANKS file.
5
+
6
+ All rights reserved.
7
+
8
+ Permission to use, copy, modify, and distribute this software for any purpose
9
+ with or without fee is hereby granted, provided that the above copyright
10
+ notice and this permission notice appear in all copies.
11
+
12
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. IN
15
+ NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
16
+ DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
17
+ OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
18
+ OR OTHER DEALINGS IN THE SOFTWARE.
19
+
20
+ Except as contained in this notice, the name of a copyright holder shall not
21
+ be used in advertising or otherwise to promote the sale, use or other dealings
22
+ in this Software without prior written authorization of the copyright holder.
local-test-curl-delta-01/afc-curl/docs/.gitignore ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ # Copyright (C) Daniel Stenberg, <[email protected]>, et al.
2
+ #
3
+ # SPDX-License-Identifier: curl
4
+
5
+ *.1
6
+ *.3
7
+ RELEASE-TOOLS.md.dist
local-test-curl-delta-01/afc-curl/docs/ALTSVC.md ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ Copyright (C) Daniel Stenberg, <[email protected]>, et al.
3
+
4
+ SPDX-License-Identifier: curl
5
+ -->
6
+
7
+ # Alt-Svc
8
+
9
+ curl features support for the Alt-Svc: HTTP header.
10
+
11
+ ## Enable Alt-Svc in build
12
+
13
+ `./configure --enable-alt-svc`
14
+
15
+ (enabled by default since 7.73.0)
16
+
17
+ ## Standard
18
+
19
+ [RFC 7838](https://datatracker.ietf.org/doc/html/rfc7838)
20
+
21
+ # Alt-Svc cache file format
22
+
23
+ This is a text based file with one line per entry and each line consists of nine
24
+ space separated fields.
25
+
26
+ ## Example
27
+
28
+ h2 quic.tech 8443 h3-22 quic.tech 8443 "20190808 06:18:37" 0 0
29
+
30
+ ## Fields
31
+
32
+ 1. The ALPN id for the source origin
33
+ 2. The hostname for the source origin
34
+ 3. The port number for the source origin
35
+ 4. The ALPN id for the destination host
36
+ 5. The hostname for the destination host
37
+ 6. The port number for the destination host
38
+ 7. The expiration date and time of this entry within double quotes. The date format is "YYYYMMDD HH:MM:SS" and the time zone is GMT.
39
+ 8. Boolean (1 or 0) if "persist" was set for this entry
40
+ 9. Integer priority value (not currently used)
41
+
42
+ If the hostname is an IPv6 numerical address, it is stored with brackets such
43
+ as `[::1]`.
local-test-curl-delta-01/afc-curl/docs/BINDINGS.md ADDED
@@ -0,0 +1,148 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ Copyright (C) Daniel Stenberg, <[email protected]>, et al.
3
+
4
+ SPDX-License-Identifier: curl
5
+ -->
6
+
7
+ libcurl bindings
8
+ ================
9
+
10
+ Creative people have written bindings or interfaces for various environments
11
+ and programming languages. Using one of these allows you to take advantage of
12
+ curl powers from within your favourite language or system.
13
+
14
+ This is a list of all known interfaces as of this writing.
15
+
16
+ The bindings listed below are not part of the curl/libcurl distribution
17
+ archives, but must be downloaded and installed separately.
18
+
19
+ <!-- markdown-link-check-disable -->
20
+
21
+ [Ada95](https://web.archive.org/web/20070403105909/www.almroth.com/adacurl/index.html) Written by Andreas Almroth
22
+
23
+ [Basic](https://scriptbasic.com/) ScriptBasic bindings written by Peter Verhas
24
+
25
+ C++: [curlpp](https://github.com/jpbarrette/curlpp/) Written by Jean-Philippe Barrette-LaPierre,
26
+ [curlcpp](https://github.com/JosephP91/curlcpp) by Giuseppe Persico and [C++
27
+ Requests](https://github.com/libcpr/cpr) by Huu Nguyen
28
+
29
+ [Ch](https://chcurl.sourceforge.net/) Written by Stephen Nestinger and Jonathan Rogado
30
+
31
+ Cocoa: [BBHTTP](https://github.com/biasedbit/BBHTTP) written by Bruno de Carvalho
32
+ [curlhandle](https://github.com/karelia/curlhandle) Written by Dan Wood
33
+
34
+ Clojure: [clj-curl](https://github.com/lsevero/clj-curl) by Lucas Severo
35
+
36
+ [D](https://dlang.org/library/std/net/curl.html) Written by Kenneth Bogert
37
+
38
+ [Delphi](https://github.com/Mercury13/curl4delphi) Written by Mikhail Merkuryev
39
+
40
+ [Dylan](https://dylanlibs.sourceforge.net/) Written by Chris Double
41
+
42
+ [Eiffel](https://iron.eiffel.com/repository/20.11/package/ABEF6975-37AC-45FD-9C67-52D10BA0669B) Written by Eiffel Software
43
+
44
+ [Euphoria](https://web.archive.org/web/20050204080544/rays-web.com/eulibcurl.htm) Written by Ray Smith
45
+
46
+ [Falcon](http://www.falconpl.org/project_docs/curl/)
47
+
48
+ [Ferite](https://web.archive.org/web/20150102192018/ferite.org/) Written by Paul Querna
49
+
50
+ [Fortran](https://github.com/interkosmos/fortran-curl) Written by Philipp Engel
51
+
52
+ [Gambas](https://gambas.sourceforge.net/)
53
+
54
+ [glib/GTK+](https://web.archive.org/web/20100526203452/atterer.net/glibcurl) Written by Richard Atterer
55
+
56
+ Go: [go-curl](https://github.com/andelf/go-curl) by ShuYu Wang
57
+
58
+ [Guile](https://github.com/spk121/guile-curl) Written by Michael L. Gran
59
+
60
+ [Harbour](https://github.com/vszakats/hb/tree/main/contrib/hbcurl) Written by Viktor Szakats
61
+
62
+ [Haskell](https://hackage.haskell.org/package/curl) Written by Galois, Inc
63
+
64
+ [Hollywood](https://www.hollywood-mal.com/download.html) hURL by Andreas Falkenhahn
65
+
66
+ [Java](https://github.com/covers1624/curl4j)
67
+
68
+ [Julia](https://github.com/JuliaWeb/LibCURL.jl) Written by Amit Murthy
69
+
70
+ [Kapito](https://github.com/puzza007/katipo) is an Erlang HTTP library around libcurl.
71
+
72
+ [Lisp](https://common-lisp.net/project/cl-curl/) Written by Liam Healy
73
+
74
+ Lua: [luacurl](https://web.archive.org/web/20201205052437/luacurl.luaforge.net/) by Alexander Marinov, [Lua-cURL](https://github.com/Lua-cURL) by Jürgen Hötzel
75
+
76
+ [Mono](https://web.archive.org/web/20070606064500/https://forge.novell.com/modules/xfmod/project/?libcurl-mono) Written by Jeffrey Phillips
77
+
78
+ [.NET](https://sourceforge.net/projects/libcurl-net/) libcurl-net by Jeffrey Phillips
79
+
80
+ [Nim](https://nimble.directory/pkg/libcurl) wrapper for libcurl
81
+
82
+ [node.js](https://github.com/JCMais/node-libcurl) node-libcurl by Jonathan Cardoso Machado
83
+
84
+ [Object-Pascal](https://web.archive.org/web/20020610214926/www.tekool.com/opcurl) Free Pascal, Delphi and Kylix binding written by Christophe Espern.
85
+
86
+ [OCaml](https://opam.ocaml.org/packages/ocurl/) Written by Lars Nilsson and ygrek
87
+
88
+ [Pascal](https://web.archive.org/web/20030804091414/houston.quik.com/jkp/curlpas/) Free Pascal, Delphi and Kylix binding written by Jeffrey Pohlmeyer.
89
+
90
+ Perl: [WWW::Curl](https://github.com/szbalint/WWW--Curl) Maintained by Cris
91
+ Bailiff and Bálint Szilakszi,
92
+ [perl6-net-curl](https://github.com/azawawi/perl6-net-curl) by Ahmad M. Zawawi
93
+ [NET::Curl](https://metacpan.org/pod/Net::Curl) by Przemyslaw Iskra
94
+
95
+ [PHP](https://php.net/curl) Originally written by Sterling Hughes
96
+
97
+ [PostgreSQL](https://github.com/pramsey/pgsql-http) - HTTP client for PostgreSQL
98
+
99
+ [PostgreSQL](https://github.com/RekGRpth/pg_curl) - cURL client for PostgreSQL
100
+
101
+ [PureBasic](https://www.purebasic.com/documentation/http/index.html) uses libcurl in its "native" HTTP subsystem
102
+
103
+ [Python](http://pycurl.io/) PycURL by Kjetil Jacobsen
104
+
105
+ [Python](https://pypi.org/project/pymcurl/) mcurl by Ganesh Viswanathan
106
+
107
+ [Q](https://q-lang.sourceforge.net/) The libcurl module is part of the default install
108
+
109
+ [R](https://cran.r-project.org/package=curl)
110
+
111
+ [Rexx](https://rexxcurl.sourceforge.net/) Written Mark Hessling
112
+
113
+ [Ring](https://ring-lang.sourceforge.io/doc1.3/libcurl.html) RingLibCurl by Mahmoud Fayed
114
+
115
+ RPG, support for ILE/RPG on OS/400 is included in source distribution
116
+
117
+ Ruby: [curb](https://github.com/taf2/curb) written by Ross Bamford,
118
+ [ruby-curl-multi](https://github.com/kball/curl_multi.rb) by Kristjan Petursson and Keith Rarick
119
+
120
+ [Rust](https://github.com/alexcrichton/curl-rust) curl-rust - by Carl Lerche
121
+
122
+ [Scheme](https://www.metapaper.net/lisovsky/web/curl/) Bigloo binding by Kirill Lisovsky
123
+
124
+ [Scilab](https://help.scilab.org/docs/current/fr_FR/getURL.html) binding by Sylvestre Ledru
125
+
126
+ [S-Lang](https://www.jedsoft.org/slang/modules/curl.html) by John E Davis
127
+
128
+ [Smalltalk](https://www.squeaksource.com/CurlPlugin/) Written by Danil Osipchuk
129
+
130
+ [SP-Forth](https://sourceforge.net/p/spf/spf/ci/master/tree/devel/~ac/lib/lin/curl/) Written by Andrey Cherezov
131
+
132
+ [SPL](https://web.archive.org/web/20210203022158/www.clifford.at/spl/spldoc/curl.html) Written by Clifford Wolf
133
+
134
+ [Tcl](https://web.archive.org/web/20160826011806/mirror.yellow5.com/tclcurl/) Tclcurl by Andrés García
135
+
136
+ [Vibe](https://github.com/ttytm/vibe) HTTP requests through libcurl in V
137
+
138
+ [Visual Basic](https://sourceforge.net/projects/libcurl-vb/) libcurl-vb by Jeffrey Phillips
139
+
140
+ [Visual Foxpro](https://web.archive.org/web/20130730181523/www.ctl32.com.ar/libcurl.asp) by Carlos Alloatti
141
+
142
+ [wxWidgets](https://wxcode.sourceforge.net/components/wxcurl/) Written by Casey O'Donnell
143
+
144
+ [XBLite](https://web.archive.org/web/20060426150418/perso.wanadoo.fr/xblite/libraries.html) Written by David Szafranski
145
+
146
+ [Xojo](https://github.com/charonn0/RB-libcURL) Written by Andrew Lambert
147
+
148
+ [Zig](https://github.com/jiacai2050/zig-curl) Written by Jiacai Liu, both easy and multi API are supported.
local-test-curl-delta-01/afc-curl/docs/BUG-BOUNTY.md ADDED
@@ -0,0 +1,94 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ Copyright (C) Daniel Stenberg, <[email protected]>, et al.
3
+
4
+ SPDX-License-Identifier: curl
5
+ -->
6
+
7
+ # The curl bug bounty
8
+
9
+ The curl project runs a bug bounty program in association with
10
+ [HackerOne](https://www.hackerone.com) and the [Internet Bug
11
+ Bounty](https://internetbugbounty.org).
12
+
13
+ ## How does it work?
14
+
15
+ Start out by posting your suspected security vulnerability directly to [curl's
16
+ HackerOne program](https://hackerone.com/curl).
17
+
18
+ After you have reported a security issue, it has been deemed credible, and a
19
+ patch and advisory has been made public, you may be eligible for a bounty from
20
+ this program. See the [Security Process](https://curl.se/dev/secprocess.html)
21
+ document for how we work with security issues.
22
+
23
+ ## What are the reward amounts?
24
+
25
+ The curl project offers monetary compensation for reported and published
26
+ security vulnerabilities. The amount of money that is rewarded depends on how
27
+ serious the flaw is determined to be.
28
+
29
+ Since 2021, the Bug Bounty is managed in association with the Internet Bug
30
+ Bounty and they set the reward amounts. If it would turn out that they set
31
+ amounts that are way lower than we can accept, the curl project intends to
32
+ "top up" rewards.
33
+
34
+ In 2022, typical "Medium" rated vulnerabilities have been rewarded 2,400 USD
35
+ each.
36
+
37
+ ## Who is eligible for a reward?
38
+
39
+ Everyone and anyone who reports a security problem in a released curl version
40
+ that has not already been reported can ask for a bounty.
41
+
42
+ Dedicated - paid for - security audits that are performed in collaboration
43
+ with curl developers are not eligible for bounties.
44
+
45
+ Vulnerabilities in features that are off by default and documented as
46
+ experimental are not eligible for a reward.
47
+
48
+ The vulnerability has to be fixed and publicly announced (by the curl project)
49
+ before a bug bounty is considered.
50
+
51
+ Once the vulnerability has been published by curl, the researcher can request
52
+ their bounty from the [Internet Bug Bounty](https://hackerone.com/ibb).
53
+
54
+ Bounties need to be requested within twelve months from the publication of the
55
+ vulnerability.
56
+
57
+ The curl security team reserves themselves the right to deny or allow bug
58
+ bounty payouts on its own discretion. There is no appeals process.
59
+
60
+ ## Product vulnerabilities only
61
+
62
+ This bug bounty only concerns the curl and libcurl products and thus their
63
+ respective source codes - when running on existing hardware. It does not
64
+ include curl documentation, curl websites, or other curl related
65
+ infrastructure.
66
+
67
+ The curl security team is the sole arbiter if a reported flaw is subject to a
68
+ bounty or not.
69
+
70
+ ## Third parties
71
+
72
+ The curl bug bounty does not cover flaws in third party dependencies
73
+ (libraries) used by curl or libcurl. If the bug triggers because of curl
74
+ behaving wrongly or abusing a third party dependency, the problem is rather in
75
+ curl and not in the dependency and then the bounty might cover the problem.
76
+
77
+ ## How are vulnerabilities graded?
78
+
79
+ The grading of each reported vulnerability that makes a reward claim is
80
+ performed by the curl security team. The grading is based on the CVSS (Common
81
+ Vulnerability Scoring System) 3.0.
82
+
83
+ ## How are reward amounts determined?
84
+
85
+ The curl security team gives the vulnerability a score or severity level, as
86
+ mentioned above. The actual monetary reward amount is decided and paid by the
87
+ Internet Bug Bounty..
88
+
89
+ ## Regarding taxes, etc. on the bounties
90
+
91
+ In the event that the individual receiving a bug bounty needs to pay taxes on
92
+ the reward money, the responsibility lies with the receiver. The curl project
93
+ or its security team never actually receive any of this money, hold the money,
94
+ or pay out the money.
local-test-curl-delta-01/afc-curl/docs/BUGS.md ADDED
@@ -0,0 +1,270 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ Copyright (C) Daniel Stenberg, <[email protected]>, et al.
3
+
4
+ SPDX-License-Identifier: curl
5
+ -->
6
+
7
+ # BUGS
8
+
9
+ ## There are still bugs
10
+
11
+ Curl and libcurl keep being developed. Adding features and changing code
12
+ means that bugs sneak in, no matter how hard we try to keep them out.
13
+
14
+ Of course there are lots of bugs left. Not to mention misfeatures.
15
+
16
+ To help us make curl the stable and solid product we want it to be, we need
17
+ bug reports and bug fixes.
18
+
19
+ ## Where to report
20
+
21
+ If you cannot fix a bug yourself and submit a fix for it, try to report an as
22
+ detailed report as possible to a curl mailing list to allow one of us to have
23
+ a go at a solution. You can optionally also submit your problem in [curl's
24
+ bug tracking system](https://github.com/curl/curl/issues).
25
+
26
+ Please read the rest of this document below first before doing that.
27
+
28
+ If you feel you need to ask around first, find a suitable [mailing list](
29
+ https://curl.se/mail/) and post your questions there.
30
+
31
+ ## Security bugs
32
+
33
+ If you find a bug or problem in curl or libcurl that you think has a security
34
+ impact, for example a bug that can put users in danger or make them
35
+ vulnerable if the bug becomes public knowledge, then please report that bug
36
+ using our security development process.
37
+
38
+ Security related bugs or bugs that are suspected to have a security impact,
39
+ should be reported on the [curl security tracker at
40
+ HackerOne](https://hackerone.com/curl).
41
+
42
+ This ensures that the report reaches the curl security team so that they
43
+ first can deal with the report away from the public to minimize the harm and
44
+ impact it has on existing users out there who might be using the vulnerable
45
+ versions.
46
+
47
+ The curl project's process for handling security related issues is
48
+ [documented separately](https://curl.se/dev/secprocess.html).
49
+
50
+ ## What to report
51
+
52
+ When reporting a bug, you should include all information to help us
53
+ understand what is wrong, what you expected to happen and how to repeat the
54
+ bad behavior. You therefore need to tell us:
55
+
56
+ - your operating system's name and version number
57
+
58
+ - what version of curl you are using (`curl -V` is fine)
59
+
60
+ - versions of the used libraries that libcurl is built to use
61
+
62
+ - what URL you were working with (if possible), at least which protocol
63
+
64
+ and anything and everything else you think matters. Tell us what you expected
65
+ to happen, tell use what did happen, tell us how you could make it work
66
+ another way. Dig around, try out, test. Then include all the tiny bits and
67
+ pieces in your report. You benefit from this yourself, as it enables us to
68
+ help you quicker and more accurately.
69
+
70
+ Since curl deals with networks, it often helps us if you include a protocol
71
+ debug dump with your bug report. The output you get by using the `-v` or
72
+ `--trace` options.
73
+
74
+ If curl crashed, causing a core dump (in Unix), there is hardly any use to
75
+ send that huge file to anyone of us. Unless we have the same system setup as
76
+ you, we cannot do much with it. Instead, we ask you to get a stack trace and
77
+ send that (much smaller) output to us instead.
78
+
79
+ The address and how to subscribe to the mailing lists are detailed in the
80
+ `MANUAL.md` file.
81
+
82
+ ## libcurl problems
83
+
84
+ When you have written your own application with libcurl to perform transfers,
85
+ it is even more important to be specific and detailed when reporting bugs.
86
+
87
+ Tell us the libcurl version and your operating system. Tell us the name and
88
+ version of all relevant sub-components like for example the SSL library
89
+ you are using and what name resolving your libcurl uses. If you use SFTP or
90
+ SCP, the libssh2 version is relevant etc.
91
+
92
+ Showing us a real source code example repeating your problem is the best way
93
+ to get our attention and it greatly increases our chances to understand your
94
+ problem and to work on a fix (if we agree it truly is a problem).
95
+
96
+ Lots of problems that appear to be libcurl problems are actually just abuses
97
+ of the libcurl API or other malfunctions in your applications. It is advised
98
+ that you run your problematic program using a memory debug tool like valgrind
99
+ or similar before you post memory-related or "crashing" problems to us.
100
+
101
+ ## Who fixes the problems
102
+
103
+ If the problems or bugs you describe are considered to be bugs, we want to
104
+ have the problems fixed.
105
+
106
+ There are no developers in the curl project that are paid to work on bugs.
107
+ All developers that take on reported bugs do this on a voluntary basis. We do
108
+ it out of an ambition to keep curl and libcurl excellent products and out of
109
+ pride.
110
+
111
+ Please do not assume that you can just lump over something to us and it then
112
+ magically gets fixed after some given time. Most often we need feedback and
113
+ help to understand what you have experienced and how to repeat a problem.
114
+ Then we may only be able to assist YOU to debug the problem and to track down
115
+ the proper fix.
116
+
117
+ We get reports from many people every month and each report can take a
118
+ considerable amount of time to really go to the bottom with.
119
+
120
+ ## How to get a stack trace
121
+
122
+ First, you must make sure that you compile all sources with `-g` and that you
123
+ do not 'strip' the final executable. Try to avoid optimizing the code as well,
124
+ remove `-O`, `-O2` etc from the compiler options.
125
+
126
+ Run the program until it cores.
127
+
128
+ Run your debugger on the core file, like `<debugger> curl core`. `<debugger>`
129
+ should be replaced with the name of your debugger, in most cases that is
130
+ `gdb`, but `dbx` and others also occur.
131
+
132
+ When the debugger has finished loading the core file and presents you a
133
+ prompt, enter `where` (without quotes) and press return.
134
+
135
+ The list that is presented is the stack trace. If everything worked, it is
136
+ supposed to contain the chain of functions that were called when curl
137
+ crashed. Include the stack trace with your detailed bug report, it helps a
138
+ lot.
139
+
140
+ ## Bugs in libcurl bindings
141
+
142
+ There are of course bugs in libcurl bindings. You should then primarily
143
+ approach the team that works on that particular binding and see what you can
144
+ do to help them fix the problem.
145
+
146
+ If you suspect that the problem exists in the underlying libcurl, then please
147
+ convert your program over to plain C and follow the steps outlined above.
148
+
149
+ ## Bugs in old versions
150
+
151
+ The curl project typically releases new versions every other month, and we
152
+ fix several hundred bugs per year. For a huge table of releases, number of
153
+ bug fixes and more, see: https://curl.se/docs/releases.html
154
+
155
+ The developers in the curl project do not have bandwidth or energy enough to
156
+ maintain several branches or to spend much time on hunting down problems in
157
+ old versions when chances are we already fixed them or at least that they have
158
+ changed nature and appearance in later versions.
159
+
160
+ When you experience a problem and want to report it, you really SHOULD
161
+ include the version number of the curl you are using when you experience the
162
+ issue. If that version number shows us that you are using an out-of-date curl,
163
+ you should also try out a modern curl version to see if the problem persists
164
+ or how/if it has changed in appearance.
165
+
166
+ Even if you cannot immediately upgrade your application/system to run the
167
+ latest curl version, you can most often at least run a test version or
168
+ experimental build or similar, to get this confirmed or not.
169
+
170
+ At times people insist that they cannot upgrade to a modern curl version, but
171
+ instead, they "just want the bug fixed". That is fine, just do not count on us
172
+ spending many cycles on trying to identify which single commit, if that is
173
+ even possible, that at some point in the past fixed the problem you are now
174
+ experiencing.
175
+
176
+ Security wise, it is almost always a bad idea to lag behind the current curl
177
+ versions by a lot. We keep discovering and reporting security problems
178
+ over time see you can see in [this
179
+ table](https://curl.se/docs/vulnerabilities.html)
180
+
181
+ # Bug fixing procedure
182
+
183
+ ## What happens on first filing
184
+
185
+ When a new issue is posted in the issue tracker or on the mailing list, the
186
+ team of developers first needs to see the report. Maybe they took the day off,
187
+ maybe they are off in the woods hunting. Have patience. Allow at least a few
188
+ days before expecting someone to have responded.
189
+
190
+ In the issue tracker, you can expect that some labels are set on the issue to
191
+ help categorize it.
192
+
193
+ ## First response
194
+
195
+ If your issue/bug report was not perfect at once (and few are), chances are
196
+ that someone asks follow-up questions. Which version did you use? Which
197
+ options did you use? How often does the problem occur? How can we reproduce
198
+ this problem? Which protocols does it involve? Or perhaps much more specific
199
+ and deep diving questions. It all depends on your specific issue.
200
+
201
+ You should then respond to these follow-up questions and provide more info
202
+ about the problem, so that we can help you figure it out. Or maybe you can
203
+ help us figure it out. An active back-and-forth communication is important
204
+ and the key for finding a cure and landing a fix.
205
+
206
+ ## Not reproducible
207
+
208
+ We may require further work from you who actually see or experience the
209
+ problem if we cannot reproduce it and cannot understand it even after having
210
+ gotten all the info we need and having studied the source code over again.
211
+
212
+ ## Unresponsive
213
+
214
+ If the problem have not been understood or reproduced, and there is nobody
215
+ responding to follow-up questions or questions asking for clarifications or
216
+ for discussing possible ways to move forward with the task, we take that as a
217
+ strong suggestion that the bug is unimportant.
218
+
219
+ Unimportant issues are closed as inactive sooner or later as they cannot be
220
+ fixed. The inactivity period (waiting for responses) should not be shorter
221
+ than two weeks but may extend months.
222
+
223
+ ## Lack of time/interest
224
+
225
+ Bugs that are filed and are understood can unfortunately end up in the
226
+ "nobody cares enough about it to work on it" category. Such bugs are
227
+ perfectly valid problems that *should* get fixed but apparently are not. We
228
+ try to mark such bugs as `KNOWN_BUGS material` after a time of inactivity and
229
+ if no activity is noticed after yet some time those bugs are added to the
230
+ `KNOWN_BUGS` document and are closed in the issue tracker.
231
+
232
+ ## `KNOWN_BUGS`
233
+
234
+ This is a list of known bugs. Bugs we know exist and that have been pointed
235
+ out but that have not yet been fixed. The reasons for why they have not been
236
+ fixed can involve anything really, but the primary reason is that nobody has
237
+ considered these problems to be important enough to spend the necessary time
238
+ and effort to have them fixed.
239
+
240
+ The `KNOWN_BUGS` items are always up for grabs and we love the ones who bring
241
+ one of them back to life and offer solutions to them.
242
+
243
+ The `KNOWN_BUGS` document has a sibling document known as `TODO`.
244
+
245
+ ## `TODO`
246
+
247
+ Issues that are filed or reported that are not really bugs but more missing
248
+ features or ideas for future improvements and so on are marked as
249
+ *enhancement* or *feature-request* and get added to the `TODO` document and
250
+ the issues are closed. We do not keep TODO items open in the issue tracker.
251
+
252
+ The `TODO` document is full of ideas and suggestions of what we can add or
253
+ fix one day. You are always encouraged and free to grab one of those items and
254
+ take up a discussion with the curl development team on how that could be
255
+ implemented or provided in the project so that you can work on ticking it odd
256
+ that document.
257
+
258
+ If an issue is rather a bug and not a missing feature or functionality, it is
259
+ listed in `KNOWN_BUGS` instead.
260
+
261
+ ## Closing off stalled bugs
262
+
263
+ The [issue and pull request trackers](https://github.com/curl/curl) only hold
264
+ "active" entries open (using a non-precise definition of what active actually
265
+ is, but they are at least not completely dead). Those that are abandoned or
266
+ in other ways dormant are closed and sometimes added to `TODO` and
267
+ `KNOWN_BUGS` instead.
268
+
269
+ This way, we only have "active" issues open on GitHub. Irrelevant issues and
270
+ pull requests do not distract developers or casual visitors.
local-test-curl-delta-01/afc-curl/docs/CIPHERS-TLS12.md ADDED
@@ -0,0 +1,336 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ Copyright (C) Daniel Stenberg, <[email protected]>, et al.
3
+
4
+ SPDX-License-Identifier: curl
5
+ -->
6
+
7
+ # TLS 1.2 cipher suites
8
+
9
+ | Id | IANA name | OpenSSL name | RFC |
10
+ |--------|-----------------------------------------------|------------------------------------|--------------------|
11
+ | 0x0001 | TLS_RSA_WITH_NULL_MD5 | NULL-MD5 | [RFC5246] |
12
+ | 0x0002 | TLS_RSA_WITH_NULL_SHA | NULL-SHA | [RFC5246] |
13
+ | 0x0003 | TLS_RSA_EXPORT_WITH_RC4_40_MD5 | EXP-RC4-MD5 | [RFC4346][RFC6347] |
14
+ | 0x0004 | TLS_RSA_WITH_RC4_128_MD5 | RC4-MD5 | [RFC5246][RFC6347] |
15
+ | 0x0005 | TLS_RSA_WITH_RC4_128_SHA | RC4-SHA | [RFC5246][RFC6347] |
16
+ | 0x0006 | TLS_RSA_EXPORT_WITH_RC2_CBC_40_MD5 | EXP-RC2-CBC-MD5 | [RFC4346] |
17
+ | 0x0007 | TLS_RSA_WITH_IDEA_CBC_SHA | IDEA-CBC-SHA | [RFC8996] |
18
+ | 0x0008 | TLS_RSA_EXPORT_WITH_DES40_CBC_SHA | EXP-DES-CBC-SHA | [RFC4346] |
19
+ | 0x0009 | TLS_RSA_WITH_DES_CBC_SHA | DES-CBC-SHA | [RFC8996] |
20
+ | 0x000A | TLS_RSA_WITH_3DES_EDE_CBC_SHA | DES-CBC3-SHA | [RFC5246] |
21
+ | 0x000B | TLS_DH_DSS_EXPORT_WITH_DES40_CBC_SHA | EXP-DH-DSS-DES-CBC-SHA | [RFC4346] |
22
+ | 0x000C | TLS_DH_DSS_WITH_DES_CBC_SHA | DH-DSS-DES-CBC-SHA | [RFC8996] |
23
+ | 0x000D | TLS_DH_DSS_WITH_3DES_EDE_CBC_SHA | DH-DSS-DES-CBC3-SHA | [RFC5246] |
24
+ | 0x000E | TLS_DH_RSA_EXPORT_WITH_DES40_CBC_SHA | EXP-DH-RSA-DES-CBC-SHA | [RFC4346] |
25
+ | 0x000F | TLS_DH_RSA_WITH_DES_CBC_SHA | DH-RSA-DES-CBC-SHA | [RFC8996] |
26
+ | 0x0010 | TLS_DH_RSA_WITH_3DES_EDE_CBC_SHA | DH-RSA-DES-CBC3-SHA | [RFC5246] |
27
+ | 0x0011 | TLS_DHE_DSS_EXPORT_WITH_DES40_CBC_SHA | EXP-DHE-DSS-DES-CBC-SHA | [RFC4346] |
28
+ | 0x0012 | TLS_DHE_DSS_WITH_DES_CBC_SHA | DHE-DSS-DES-CBC-SHA | [RFC8996] |
29
+ | 0x0013 | TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA | DHE-DSS-DES-CBC3-SHA | [RFC5246] |
30
+ | 0x0014 | TLS_DHE_RSA_EXPORT_WITH_DES40_CBC_SHA | EXP-DHE-RSA-DES-CBC-SHA | [RFC4346] |
31
+ | 0x0015 | TLS_DHE_RSA_WITH_DES_CBC_SHA | DHE-RSA-DES-CBC-SHA | [RFC8996] |
32
+ | 0x0016 | TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA | DHE-RSA-DES-CBC3-SHA | [RFC5246] |
33
+ | 0x0017 | TLS_DH_anon_EXPORT_WITH_RC4_40_MD5 | EXP-ADH-RC4-MD5 | [RFC4346][RFC6347] |
34
+ | 0x0018 | TLS_DH_anon_WITH_RC4_128_MD5 | ADH-RC4-MD5 | [RFC5246][RFC6347] |
35
+ | 0x0019 | TLS_DH_anon_EXPORT_WITH_DES40_CBC_SHA | EXP-ADH-DES-CBC-SHA | [RFC4346] |
36
+ | 0x001A | TLS_DH_anon_WITH_DES_CBC_SHA | ADH-DES-CBC-SHA | [RFC8996] |
37
+ | 0x001B | TLS_DH_anon_WITH_3DES_EDE_CBC_SHA | ADH-DES-CBC3-SHA | [RFC5246] |
38
+ | 0x001C | | FZA-NULL-SHA | |
39
+ | 0x001D | | FZA-FZA-CBC-SHA | |
40
+ | 0x001E | TLS_KRB5_WITH_DES_CBC_SHA | KRB5-DES-CBC-SHA | [RFC2712] |
41
+ | 0x001F | TLS_KRB5_WITH_3DES_EDE_CBC_SHA | KRB5-DES-CBC3-SHA | [RFC2712] |
42
+ | 0x0020 | TLS_KRB5_WITH_RC4_128_SHA | KRB5-RC4-SHA | [RFC2712][RFC6347] |
43
+ | 0x0021 | TLS_KRB5_WITH_IDEA_CBC_SHA | KRB5-IDEA-CBC-SHA | [RFC2712] |
44
+ | 0x0022 | TLS_KRB5_WITH_DES_CBC_MD5 | KRB5-DES-CBC-MD5 | [RFC2712] |
45
+ | 0x0023 | TLS_KRB5_WITH_3DES_EDE_CBC_MD5 | KRB5-DES-CBC3-MD5 | [RFC2712] |
46
+ | 0x0024 | TLS_KRB5_WITH_RC4_128_MD5 | KRB5-RC4-MD5 | [RFC2712][RFC6347] |
47
+ | 0x0025 | TLS_KRB5_WITH_IDEA_CBC_MD5 | KRB5-IDEA-CBC-MD5 | [RFC2712] |
48
+ | 0x0026 | TLS_KRB5_EXPORT_WITH_DES_CBC_40_SHA | EXP-KRB5-DES-CBC-SHA | [RFC2712] |
49
+ | 0x0027 | TLS_KRB5_EXPORT_WITH_RC2_CBC_40_SHA | EXP-KRB5-RC2-CBC-SHA | [RFC2712] |
50
+ | 0x0028 | TLS_KRB5_EXPORT_WITH_RC4_40_SHA | EXP-KRB5-RC4-SHA | [RFC2712][RFC6347] |
51
+ | 0x0029 | TLS_KRB5_EXPORT_WITH_DES_CBC_40_MD5 | EXP-KRB5-DES-CBC-MD5 | [RFC2712] |
52
+ | 0x002A | TLS_KRB5_EXPORT_WITH_RC2_CBC_40_MD5 | EXP-KRB5-RC2-CBC-MD5 | [RFC2712] |
53
+ | 0x002B | TLS_KRB5_EXPORT_WITH_RC4_40_MD5 | EXP-KRB5-RC4-MD5 | [RFC2712][RFC6347] |
54
+ | 0x002C | TLS_PSK_WITH_NULL_SHA | PSK-NULL-SHA | [RFC4785] |
55
+ | 0x002D | TLS_DHE_PSK_WITH_NULL_SHA | DHE-PSK-NULL-SHA | [RFC4785] |
56
+ | 0x002E | TLS_RSA_PSK_WITH_NULL_SHA | RSA-PSK-NULL-SHA | [RFC4785] |
57
+ | 0x002F | TLS_RSA_WITH_AES_128_CBC_SHA | AES128-SHA | [RFC5246] |
58
+ | 0x0030 | TLS_DH_DSS_WITH_AES_128_CBC_SHA | DH-DSS-AES128-SHA | [RFC5246] |
59
+ | 0x0031 | TLS_DH_RSA_WITH_AES_128_CBC_SHA | DH-RSA-AES128-SHA | [RFC5246] |
60
+ | 0x0032 | TLS_DHE_DSS_WITH_AES_128_CBC_SHA | DHE-DSS-AES128-SHA | [RFC5246] |
61
+ | 0x0033 | TLS_DHE_RSA_WITH_AES_128_CBC_SHA | DHE-RSA-AES128-SHA | [RFC5246] |
62
+ | 0x0034 | TLS_DH_anon_WITH_AES_128_CBC_SHA | ADH-AES128-SHA | [RFC5246] |
63
+ | 0x0035 | TLS_RSA_WITH_AES_256_CBC_SHA | AES256-SHA | [RFC5246] |
64
+ | 0x0036 | TLS_DH_DSS_WITH_AES_256_CBC_SHA | DH-DSS-AES256-SHA | [RFC5246] |
65
+ | 0x0037 | TLS_DH_RSA_WITH_AES_256_CBC_SHA | DH-RSA-AES256-SHA | [RFC5246] |
66
+ | 0x0038 | TLS_DHE_DSS_WITH_AES_256_CBC_SHA | DHE-DSS-AES256-SHA | [RFC5246] |
67
+ | 0x0039 | TLS_DHE_RSA_WITH_AES_256_CBC_SHA | DHE-RSA-AES256-SHA | [RFC5246] |
68
+ | 0x003A | TLS_DH_anon_WITH_AES_256_CBC_SHA | ADH-AES256-SHA | [RFC5246] |
69
+ | 0x003B | TLS_RSA_WITH_NULL_SHA256 | NULL-SHA256 | [RFC5246] |
70
+ | 0x003C | TLS_RSA_WITH_AES_128_CBC_SHA256 | AES128-SHA256 | [RFC5246] |
71
+ | 0x003D | TLS_RSA_WITH_AES_256_CBC_SHA256 | AES256-SHA256 | [RFC5246] |
72
+ | 0x003E | TLS_DH_DSS_WITH_AES_128_CBC_SHA256 | DH-DSS-AES128-SHA256 | [RFC5246] |
73
+ | 0x003F | TLS_DH_RSA_WITH_AES_128_CBC_SHA256 | DH-RSA-AES128-SHA256 | [RFC5246] |
74
+ | 0x0040 | TLS_DHE_DSS_WITH_AES_128_CBC_SHA256 | DHE-DSS-AES128-SHA256 | [RFC5246] |
75
+ | 0x0041 | TLS_RSA_WITH_CAMELLIA_128_CBC_SHA | CAMELLIA128-SHA | [RFC5932] |
76
+ | 0x0042 | TLS_DH_DSS_WITH_CAMELLIA_128_CBC_SHA | DH-DSS-CAMELLIA128-SHA | [RFC5932] |
77
+ | 0x0043 | TLS_DH_RSA_WITH_CAMELLIA_128_CBC_SHA | DH-RSA-CAMELLIA128-SHA | [RFC5932] |
78
+ | 0x0044 | TLS_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA | DHE-DSS-CAMELLIA128-SHA | [RFC5932] |
79
+ | 0x0045 | TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA | DHE-RSA-CAMELLIA128-SHA | [RFC5932] |
80
+ | 0x0046 | TLS_DH_anon_WITH_CAMELLIA_128_CBC_SHA | ADH-CAMELLIA128-SHA | [RFC5932] |
81
+ | 0x0060 | | EXP1024-RC4-MD5 | |
82
+ | 0x0061 | | EXP1024-RC2-CBC-MD5 | |
83
+ | 0x0062 | | EXP1024-DES-CBC-SHA | |
84
+ | 0x0063 | | EXP1024-DHE-DSS-DES-CBC-SHA | |
85
+ | 0x0064 | | EXP1024-RC4-SHA | |
86
+ | 0x0065 | | EXP1024-DHE-DSS-RC4-SHA | |
87
+ | 0x0066 | | DHE-DSS-RC4-SHA | |
88
+ | 0x0067 | TLS_DHE_RSA_WITH_AES_128_CBC_SHA256 | DHE-RSA-AES128-SHA256 | [RFC5246] |
89
+ | 0x0068 | TLS_DH_DSS_WITH_AES_256_CBC_SHA256 | DH-DSS-AES256-SHA256 | [RFC5246] |
90
+ | 0x0069 | TLS_DH_RSA_WITH_AES_256_CBC_SHA256 | DH-RSA-AES256-SHA256 | [RFC5246] |
91
+ | 0x006A | TLS_DHE_DSS_WITH_AES_256_CBC_SHA256 | DHE-DSS-AES256-SHA256 | [RFC5246] |
92
+ | 0x006B | TLS_DHE_RSA_WITH_AES_256_CBC_SHA256 | DHE-RSA-AES256-SHA256 | [RFC5246] |
93
+ | 0x006C | TLS_DH_anon_WITH_AES_128_CBC_SHA256 | ADH-AES128-SHA256 | [RFC5246] |
94
+ | 0x006D | TLS_DH_anon_WITH_AES_256_CBC_SHA256 | ADH-AES256-SHA256 | [RFC5246] |
95
+ | 0x0080 | | GOST94-GOST89-GOST89 | |
96
+ | 0x0081 | | GOST2001-GOST89-GOST89 | |
97
+ | 0x0082 | | GOST94-NULL-GOST94 | |
98
+ | 0x0083 | | GOST2001-NULL-GOST94 | |
99
+ | 0x0084 | TLS_RSA_WITH_CAMELLIA_256_CBC_SHA | CAMELLIA256-SHA | [RFC5932] |
100
+ | 0x0085 | TLS_DH_DSS_WITH_CAMELLIA_256_CBC_SHA | DH-DSS-CAMELLIA256-SHA | [RFC5932] |
101
+ | 0x0086 | TLS_DH_RSA_WITH_CAMELLIA_256_CBC_SHA | DH-RSA-CAMELLIA256-SHA | [RFC5932] |
102
+ | 0x0087 | TLS_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA | DHE-DSS-CAMELLIA256-SHA | [RFC5932] |
103
+ | 0x0088 | TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA | DHE-RSA-CAMELLIA256-SHA | [RFC5932] |
104
+ | 0x0089 | TLS_DH_anon_WITH_CAMELLIA_256_CBC_SHA | ADH-CAMELLIA256-SHA | [RFC5932] |
105
+ | 0x008A | TLS_PSK_WITH_RC4_128_SHA | PSK-RC4-SHA | [RFC4279][RFC6347] |
106
+ | 0x008B | TLS_PSK_WITH_3DES_EDE_CBC_SHA | PSK-3DES-EDE-CBC-SHA | [RFC4279] |
107
+ | 0x008C | TLS_PSK_WITH_AES_128_CBC_SHA | PSK-AES128-CBC-SHA | [RFC4279] |
108
+ | 0x008D | TLS_PSK_WITH_AES_256_CBC_SHA | PSK-AES256-CBC-SHA | [RFC4279] |
109
+ | 0x008E | TLS_DHE_PSK_WITH_RC4_128_SHA | DHE-PSK-RC4-SHA | [RFC4279][RFC6347] |
110
+ | 0x008F | TLS_DHE_PSK_WITH_3DES_EDE_CBC_SHA | DHE-PSK-3DES-EDE-CBC-SHA | [RFC4279] |
111
+ | 0x0090 | TLS_DHE_PSK_WITH_AES_128_CBC_SHA | DHE-PSK-AES128-CBC-SHA | [RFC4279] |
112
+ | 0x0091 | TLS_DHE_PSK_WITH_AES_256_CBC_SHA | DHE-PSK-AES256-CBC-SHA | [RFC4279] |
113
+ | 0x0092 | TLS_RSA_PSK_WITH_RC4_128_SHA | RSA-PSK-RC4-SHA | [RFC4279][RFC6347] |
114
+ | 0x0093 | TLS_RSA_PSK_WITH_3DES_EDE_CBC_SHA | RSA-PSK-3DES-EDE-CBC-SHA | [RFC4279] |
115
+ | 0x0094 | TLS_RSA_PSK_WITH_AES_128_CBC_SHA | RSA-PSK-AES128-CBC-SHA | [RFC4279] |
116
+ | 0x0095 | TLS_RSA_PSK_WITH_AES_256_CBC_SHA | RSA-PSK-AES256-CBC-SHA | [RFC4279] |
117
+ | 0x0096 | TLS_RSA_WITH_SEED_CBC_SHA | SEED-SHA | [RFC4162] |
118
+ | 0x0097 | TLS_DH_DSS_WITH_SEED_CBC_SHA | DH-DSS-SEED-SHA | [RFC4162] |
119
+ | 0x0098 | TLS_DH_RSA_WITH_SEED_CBC_SHA | DH-RSA-SEED-SHA | [RFC4162] |
120
+ | 0x0099 | TLS_DHE_DSS_WITH_SEED_CBC_SHA | DHE-DSS-SEED-SHA | [RFC4162] |
121
+ | 0x009A | TLS_DHE_RSA_WITH_SEED_CBC_SHA | DHE-RSA-SEED-SHA | [RFC4162] |
122
+ | 0x009B | TLS_DH_anon_WITH_SEED_CBC_SHA | ADH-SEED-SHA | [RFC4162] |
123
+ | 0x009C | TLS_RSA_WITH_AES_128_GCM_SHA256 | AES128-GCM-SHA256 | [RFC5288] |
124
+ | 0x009D | TLS_RSA_WITH_AES_256_GCM_SHA384 | AES256-GCM-SHA384 | [RFC5288] |
125
+ | 0x009E | TLS_DHE_RSA_WITH_AES_128_GCM_SHA256 | DHE-RSA-AES128-GCM-SHA256 | [RFC5288] |
126
+ | 0x009F | TLS_DHE_RSA_WITH_AES_256_GCM_SHA384 | DHE-RSA-AES256-GCM-SHA384 | [RFC5288] |
127
+ | 0x00A0 | TLS_DH_RSA_WITH_AES_128_GCM_SHA256 | DH-RSA-AES128-GCM-SHA256 | [RFC5288] |
128
+ | 0x00A1 | TLS_DH_RSA_WITH_AES_256_GCM_SHA384 | DH-RSA-AES256-GCM-SHA384 | [RFC5288] |
129
+ | 0x00A2 | TLS_DHE_DSS_WITH_AES_128_GCM_SHA256 | DHE-DSS-AES128-GCM-SHA256 | [RFC5288] |
130
+ | 0x00A3 | TLS_DHE_DSS_WITH_AES_256_GCM_SHA384 | DHE-DSS-AES256-GCM-SHA384 | [RFC5288] |
131
+ | 0x00A4 | TLS_DH_DSS_WITH_AES_128_GCM_SHA256 | DH-DSS-AES128-GCM-SHA256 | [RFC5288] |
132
+ | 0x00A5 | TLS_DH_DSS_WITH_AES_256_GCM_SHA384 | DH-DSS-AES256-GCM-SHA384 | [RFC5288] |
133
+ | 0x00A6 | TLS_DH_anon_WITH_AES_128_GCM_SHA256 | ADH-AES128-GCM-SHA256 | [RFC5288] |
134
+ | 0x00A7 | TLS_DH_anon_WITH_AES_256_GCM_SHA384 | ADH-AES256-GCM-SHA384 | [RFC5288] |
135
+ | 0x00A8 | TLS_PSK_WITH_AES_128_GCM_SHA256 | PSK-AES128-GCM-SHA256 | [RFC5487] |
136
+ | 0x00A9 | TLS_PSK_WITH_AES_256_GCM_SHA384 | PSK-AES256-GCM-SHA384 | [RFC5487] |
137
+ | 0x00AA | TLS_DHE_PSK_WITH_AES_128_GCM_SHA256 | DHE-PSK-AES128-GCM-SHA256 | [RFC5487] |
138
+ | 0x00AB | TLS_DHE_PSK_WITH_AES_256_GCM_SHA384 | DHE-PSK-AES256-GCM-SHA384 | [RFC5487] |
139
+ | 0x00AC | TLS_RSA_PSK_WITH_AES_128_GCM_SHA256 | RSA-PSK-AES128-GCM-SHA256 | [RFC5487] |
140
+ | 0x00AD | TLS_RSA_PSK_WITH_AES_256_GCM_SHA384 | RSA-PSK-AES256-GCM-SHA384 | [RFC5487] |
141
+ | 0x00AE | TLS_PSK_WITH_AES_128_CBC_SHA256 | PSK-AES128-CBC-SHA256 | [RFC5487] |
142
+ | 0x00AF | TLS_PSK_WITH_AES_256_CBC_SHA384 | PSK-AES256-CBC-SHA384 | [RFC5487] |
143
+ | 0x00B0 | TLS_PSK_WITH_NULL_SHA256 | PSK-NULL-SHA256 | [RFC5487] |
144
+ | 0x00B1 | TLS_PSK_WITH_NULL_SHA384 | PSK-NULL-SHA384 | [RFC5487] |
145
+ | 0x00B2 | TLS_DHE_PSK_WITH_AES_128_CBC_SHA256 | DHE-PSK-AES128-CBC-SHA256 | [RFC5487] |
146
+ | 0x00B3 | TLS_DHE_PSK_WITH_AES_256_CBC_SHA384 | DHE-PSK-AES256-CBC-SHA384 | [RFC5487] |
147
+ | 0x00B4 | TLS_DHE_PSK_WITH_NULL_SHA256 | DHE-PSK-NULL-SHA256 | [RFC5487] |
148
+ | 0x00B5 | TLS_DHE_PSK_WITH_NULL_SHA384 | DHE-PSK-NULL-SHA384 | [RFC5487] |
149
+ | 0x00B6 | TLS_RSA_PSK_WITH_AES_128_CBC_SHA256 | RSA-PSK-AES128-CBC-SHA256 | [RFC5487] |
150
+ | 0x00B7 | TLS_RSA_PSK_WITH_AES_256_CBC_SHA384 | RSA-PSK-AES256-CBC-SHA384 | [RFC5487] |
151
+ | 0x00B8 | TLS_RSA_PSK_WITH_NULL_SHA256 | RSA-PSK-NULL-SHA256 | [RFC5487] |
152
+ | 0x00B9 | TLS_RSA_PSK_WITH_NULL_SHA384 | RSA-PSK-NULL-SHA384 | [RFC5487] |
153
+ | 0x00BA | TLS_RSA_WITH_CAMELLIA_128_CBC_SHA256 | CAMELLIA128-SHA256 | [RFC5932] |
154
+ | 0x00BD | TLS_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA256 | DHE-DSS-CAMELLIA128-SHA256 | [RFC5932] |
155
+ | 0x00BE | TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA256 | DHE-RSA-CAMELLIA128-SHA256 | [RFC5932] |
156
+ | 0x00BF | TLS_DH_anon_WITH_CAMELLIA_128_CBC_SHA256 | ADH-CAMELLIA128-SHA256 | [RFC5932] |
157
+ | 0x00C0 | TLS_RSA_WITH_CAMELLIA_256_CBC_SHA256 | CAMELLIA256-SHA256 | [RFC5932] |
158
+ | 0x00C3 | TLS_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA256 | DHE-DSS-CAMELLIA256-SHA256 | [RFC5932] |
159
+ | 0x00C4 | TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA256 | DHE-RSA-CAMELLIA256-SHA256 | [RFC5932] |
160
+ | 0x00C5 | TLS_DH_anon_WITH_CAMELLIA_256_CBC_SHA256 | ADH-CAMELLIA256-SHA256 | [RFC5932] |
161
+ | 0x00FF | TLS_EMPTY_RENEGOTIATION_INFO_SCSV | | [RFC5746] |
162
+ | 0x5600 | TLS_FALLBACK_SCSV | | [RFC7507] |
163
+ | 0xC001 | TLS_ECDH_ECDSA_WITH_NULL_SHA | ECDH-ECDSA-NULL-SHA | [RFC8422] |
164
+ | 0xC002 | TLS_ECDH_ECDSA_WITH_RC4_128_SHA | ECDH-ECDSA-RC4-SHA | [RFC8422][RFC6347] |
165
+ | 0xC003 | TLS_ECDH_ECDSA_WITH_3DES_EDE_CBC_SHA | ECDH-ECDSA-DES-CBC3-SHA | [RFC8422] |
166
+ | 0xC004 | TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA | ECDH-ECDSA-AES128-SHA | [RFC8422] |
167
+ | 0xC005 | TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA | ECDH-ECDSA-AES256-SHA | [RFC8422] |
168
+ | 0xC006 | TLS_ECDHE_ECDSA_WITH_NULL_SHA | ECDHE-ECDSA-NULL-SHA | [RFC8422] |
169
+ | 0xC007 | TLS_ECDHE_ECDSA_WITH_RC4_128_SHA | ECDHE-ECDSA-RC4-SHA | [RFC8422][RFC6347] |
170
+ | 0xC008 | TLS_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA | ECDHE-ECDSA-DES-CBC3-SHA | [RFC8422] |
171
+ | 0xC009 | TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA | ECDHE-ECDSA-AES128-SHA | [RFC8422] |
172
+ | 0xC00A | TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA | ECDHE-ECDSA-AES256-SHA | [RFC8422] |
173
+ | 0xC00B | TLS_ECDH_RSA_WITH_NULL_SHA | ECDH-RSA-NULL-SHA | [RFC8422] |
174
+ | 0xC00C | TLS_ECDH_RSA_WITH_RC4_128_SHA | ECDH-RSA-RC4-SHA | [RFC8422][RFC6347] |
175
+ | 0xC00D | TLS_ECDH_RSA_WITH_3DES_EDE_CBC_SHA | ECDH-RSA-DES-CBC3-SHA | [RFC8422] |
176
+ | 0xC00E | TLS_ECDH_RSA_WITH_AES_128_CBC_SHA | ECDH-RSA-AES128-SHA | [RFC8422] |
177
+ | 0xC00F | TLS_ECDH_RSA_WITH_AES_256_CBC_SHA | ECDH-RSA-AES256-SHA | [RFC8422] |
178
+ | 0xC010 | TLS_ECDHE_RSA_WITH_NULL_SHA | ECDHE-RSA-NULL-SHA | [RFC8422] |
179
+ | 0xC011 | TLS_ECDHE_RSA_WITH_RC4_128_SHA | ECDHE-RSA-RC4-SHA | [RFC8422][RFC6347] |
180
+ | 0xC012 | TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA | ECDHE-RSA-DES-CBC3-SHA | [RFC8422] |
181
+ | 0xC013 | TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA | ECDHE-RSA-AES128-SHA | [RFC8422] |
182
+ | 0xC014 | TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA | ECDHE-RSA-AES256-SHA | [RFC8422] |
183
+ | 0xC015 | TLS_ECDH_anon_WITH_NULL_SHA | AECDH-NULL-SHA | [RFC8422] |
184
+ | 0xC016 | TLS_ECDH_anon_WITH_RC4_128_SHA | AECDH-RC4-SHA | [RFC8422][RFC6347] |
185
+ | 0xC017 | TLS_ECDH_anon_WITH_3DES_EDE_CBC_SHA | AECDH-DES-CBC3-SHA | [RFC8422] |
186
+ | 0xC018 | TLS_ECDH_anon_WITH_AES_128_CBC_SHA | AECDH-AES128-SHA | [RFC8422] |
187
+ | 0xC019 | TLS_ECDH_anon_WITH_AES_256_CBC_SHA | AECDH-AES256-SHA | [RFC8422] |
188
+ | 0xC01A | TLS_SRP_SHA_WITH_3DES_EDE_CBC_SHA | SRP-3DES-EDE-CBC-SHA | [RFC5054] |
189
+ | 0xC01B | TLS_SRP_SHA_RSA_WITH_3DES_EDE_CBC_SHA | SRP-RSA-3DES-EDE-CBC-SHA | [RFC5054] |
190
+ | 0xC01C | TLS_SRP_SHA_DSS_WITH_3DES_EDE_CBC_SHA | SRP-DSS-3DES-EDE-CBC-SHA | [RFC5054] |
191
+ | 0xC01D | TLS_SRP_SHA_WITH_AES_128_CBC_SHA | SRP-AES-128-CBC-SHA | [RFC5054] |
192
+ | 0xC01E | TLS_SRP_SHA_RSA_WITH_AES_128_CBC_SHA | SRP-RSA-AES-128-CBC-SHA | [RFC5054] |
193
+ | 0xC01F | TLS_SRP_SHA_DSS_WITH_AES_128_CBC_SHA | SRP-DSS-AES-128-CBC-SHA | [RFC5054] |
194
+ | 0xC020 | TLS_SRP_SHA_WITH_AES_256_CBC_SHA | SRP-AES-256-CBC-SHA | [RFC5054] |
195
+ | 0xC021 | TLS_SRP_SHA_RSA_WITH_AES_256_CBC_SHA | SRP-RSA-AES-256-CBC-SHA | [RFC5054] |
196
+ | 0xC022 | TLS_SRP_SHA_DSS_WITH_AES_256_CBC_SHA | SRP-DSS-AES-256-CBC-SHA | [RFC5054] |
197
+ | 0xC023 | TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256 | ECDHE-ECDSA-AES128-SHA256 | [RFC5289] |
198
+ | 0xC024 | TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384 | ECDHE-ECDSA-AES256-SHA384 | [RFC5289] |
199
+ | 0xC025 | TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA256 | ECDH-ECDSA-AES128-SHA256 | [RFC5289] |
200
+ | 0xC026 | TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA384 | ECDH-ECDSA-AES256-SHA384 | [RFC5289] |
201
+ | 0xC027 | TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256 | ECDHE-RSA-AES128-SHA256 | [RFC5289] |
202
+ | 0xC028 | TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384 | ECDHE-RSA-AES256-SHA384 | [RFC5289] |
203
+ | 0xC029 | TLS_ECDH_RSA_WITH_AES_128_CBC_SHA256 | ECDH-RSA-AES128-SHA256 | [RFC5289] |
204
+ | 0xC02A | TLS_ECDH_RSA_WITH_AES_256_CBC_SHA384 | ECDH-RSA-AES256-SHA384 | [RFC5289] |
205
+ | 0xC02B | TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 | ECDHE-ECDSA-AES128-GCM-SHA256 | [RFC5289] |
206
+ | 0xC02C | TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 | ECDHE-ECDSA-AES256-GCM-SHA384 | [RFC5289] |
207
+ | 0xC02D | TLS_ECDH_ECDSA_WITH_AES_128_GCM_SHA256 | ECDH-ECDSA-AES128-GCM-SHA256 | [RFC5289] |
208
+ | 0xC02E | TLS_ECDH_ECDSA_WITH_AES_256_GCM_SHA384 | ECDH-ECDSA-AES256-GCM-SHA384 | [RFC5289] |
209
+ | 0xC02F | TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 | ECDHE-RSA-AES128-GCM-SHA256 | [RFC5289] |
210
+ | 0xC030 | TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 | ECDHE-RSA-AES256-GCM-SHA384 | [RFC5289] |
211
+ | 0xC031 | TLS_ECDH_RSA_WITH_AES_128_GCM_SHA256 | ECDH-RSA-AES128-GCM-SHA256 | [RFC5289] |
212
+ | 0xC032 | TLS_ECDH_RSA_WITH_AES_256_GCM_SHA384 | ECDH-RSA-AES256-GCM-SHA384 | [RFC5289] |
213
+ | 0xC033 | TLS_ECDHE_PSK_WITH_RC4_128_SHA | ECDHE-PSK-RC4-SHA | [RFC5489][RFC6347] |
214
+ | 0xC034 | TLS_ECDHE_PSK_WITH_3DES_EDE_CBC_SHA | ECDHE-PSK-3DES-EDE-CBC-SHA | [RFC5489] |
215
+ | 0xC035 | TLS_ECDHE_PSK_WITH_AES_128_CBC_SHA | ECDHE-PSK-AES128-CBC-SHA | [RFC5489] |
216
+ | 0xC036 | TLS_ECDHE_PSK_WITH_AES_256_CBC_SHA | ECDHE-PSK-AES256-CBC-SHA | [RFC5489] |
217
+ | 0xC037 | TLS_ECDHE_PSK_WITH_AES_128_CBC_SHA256 | ECDHE-PSK-AES128-CBC-SHA256 | [RFC5489] |
218
+ | 0xC038 | TLS_ECDHE_PSK_WITH_AES_256_CBC_SHA384 | ECDHE-PSK-AES256-CBC-SHA384 | [RFC5489] |
219
+ | 0xC039 | TLS_ECDHE_PSK_WITH_NULL_SHA | ECDHE-PSK-NULL-SHA | [RFC5489] |
220
+ | 0xC03A | TLS_ECDHE_PSK_WITH_NULL_SHA256 | ECDHE-PSK-NULL-SHA256 | [RFC5489] |
221
+ | 0xC03B | TLS_ECDHE_PSK_WITH_NULL_SHA384 | ECDHE-PSK-NULL-SHA384 | [RFC5489] |
222
+ | 0xC03C | TLS_RSA_WITH_ARIA_128_CBC_SHA256 | ARIA128-SHA256 | [RFC6209] |
223
+ | 0xC03D | TLS_RSA_WITH_ARIA_256_CBC_SHA384 | ARIA256-SHA384 | [RFC6209] |
224
+ | 0xC044 | TLS_DHE_RSA_WITH_ARIA_128_CBC_SHA256 | DHE-RSA-ARIA128-SHA256 | [RFC6209] |
225
+ | 0xC045 | TLS_DHE_RSA_WITH_ARIA_256_CBC_SHA384 | DHE-RSA-ARIA256-SHA384 | [RFC6209] |
226
+ | 0xC048 | TLS_ECDHE_ECDSA_WITH_ARIA_128_CBC_SHA256 | ECDHE-ECDSA-ARIA128-SHA256 | [RFC6209] |
227
+ | 0xC049 | TLS_ECDHE_ECDSA_WITH_ARIA_256_CBC_SHA384 | ECDHE-ECDSA-ARIA256-SHA384 | [RFC6209] |
228
+ | 0xC04A | TLS_ECDH_ECDSA_WITH_ARIA_128_CBC_SHA256 | ECDH-ECDSA-ARIA128-SHA256 | [RFC6209] |
229
+ | 0xC04B | TLS_ECDH_ECDSA_WITH_ARIA_256_CBC_SHA384 | ECDH-ECDSA-ARIA256-SHA384 | [RFC6209] |
230
+ | 0xC04C | TLS_ECDHE_RSA_WITH_ARIA_128_CBC_SHA256 | ECDHE-ARIA128-SHA256 | [RFC6209] |
231
+ | 0xC04D | TLS_ECDHE_RSA_WITH_ARIA_256_CBC_SHA384 | ECDHE-ARIA256-SHA384 | [RFC6209] |
232
+ | 0xC04E | TLS_ECDH_RSA_WITH_ARIA_128_CBC_SHA256 | ECDH-ARIA128-SHA256 | [RFC6209] |
233
+ | 0xC04F | TLS_ECDH_RSA_WITH_ARIA_256_CBC_SHA384 | ECDH-ARIA256-SHA384 | [RFC6209] |
234
+ | 0xC050 | TLS_RSA_WITH_ARIA_128_GCM_SHA256 | ARIA128-GCM-SHA256 | [RFC6209] |
235
+ | 0xC051 | TLS_RSA_WITH_ARIA_256_GCM_SHA384 | ARIA256-GCM-SHA384 | [RFC6209] |
236
+ | 0xC052 | TLS_DHE_RSA_WITH_ARIA_128_GCM_SHA256 | DHE-RSA-ARIA128-GCM-SHA256 | [RFC6209] |
237
+ | 0xC053 | TLS_DHE_RSA_WITH_ARIA_256_GCM_SHA384 | DHE-RSA-ARIA256-GCM-SHA384 | [RFC6209] |
238
+ | 0xC056 | TLS_DHE_DSS_WITH_ARIA_128_GCM_SHA256 | DHE-DSS-ARIA128-GCM-SHA256 | [RFC6209] |
239
+ | 0xC057 | TLS_DHE_DSS_WITH_ARIA_256_GCM_SHA384 | DHE-DSS-ARIA256-GCM-SHA384 | [RFC6209] |
240
+ | 0xC05C | TLS_ECDHE_ECDSA_WITH_ARIA_128_GCM_SHA256 | ECDHE-ECDSA-ARIA128-GCM-SHA256 | [RFC6209] |
241
+ | 0xC05D | TLS_ECDHE_ECDSA_WITH_ARIA_256_GCM_SHA384 | ECDHE-ECDSA-ARIA256-GCM-SHA384 | [RFC6209] |
242
+ | 0xC05E | TLS_ECDH_ECDSA_WITH_ARIA_128_GCM_SHA256 | ECDH-ECDSA-ARIA128-GCM-SHA256 | [RFC6209] |
243
+ | 0xC05F | TLS_ECDH_ECDSA_WITH_ARIA_256_GCM_SHA384 | ECDH-ECDSA-ARIA256-GCM-SHA384 | [RFC6209] |
244
+ | 0xC060 | TLS_ECDHE_RSA_WITH_ARIA_128_GCM_SHA256 | ECDHE-ARIA128-GCM-SHA256 | [RFC6209] |
245
+ | 0xC061 | TLS_ECDHE_RSA_WITH_ARIA_256_GCM_SHA384 | ECDHE-ARIA256-GCM-SHA384 | [RFC6209] |
246
+ | 0xC062 | TLS_ECDH_RSA_WITH_ARIA_128_GCM_SHA256 | ECDH-ARIA128-GCM-SHA256 | [RFC6209] |
247
+ | 0xC063 | TLS_ECDH_RSA_WITH_ARIA_256_GCM_SHA384 | ECDH-ARIA256-GCM-SHA384 | [RFC6209] |
248
+ | 0xC064 | TLS_PSK_WITH_ARIA_128_CBC_SHA256 | PSK-ARIA128-SHA256 | [RFC6209] |
249
+ | 0xC065 | TLS_PSK_WITH_ARIA_256_CBC_SHA384 | PSK-ARIA256-SHA384 | [RFC6209] |
250
+ | 0xC066 | TLS_DHE_PSK_WITH_ARIA_128_CBC_SHA256 | DHE-PSK-ARIA128-SHA256 | [RFC6209] |
251
+ | 0xC067 | TLS_DHE_PSK_WITH_ARIA_256_CBC_SHA384 | DHE-PSK-ARIA256-SHA384 | [RFC6209] |
252
+ | 0xC068 | TLS_RSA_PSK_WITH_ARIA_128_CBC_SHA256 | RSA-PSK-ARIA128-SHA256 | [RFC6209] |
253
+ | 0xC069 | TLS_RSA_PSK_WITH_ARIA_256_CBC_SHA384 | RSA-PSK-ARIA256-SHA384 | [RFC6209] |
254
+ | 0xC06A | TLS_PSK_WITH_ARIA_128_GCM_SHA256 | PSK-ARIA128-GCM-SHA256 | [RFC6209] |
255
+ | 0xC06B | TLS_PSK_WITH_ARIA_256_GCM_SHA384 | PSK-ARIA256-GCM-SHA384 | [RFC6209] |
256
+ | 0xC06C | TLS_DHE_PSK_WITH_ARIA_128_GCM_SHA256 | DHE-PSK-ARIA128-GCM-SHA256 | [RFC6209] |
257
+ | 0xC06D | TLS_DHE_PSK_WITH_ARIA_256_GCM_SHA384 | DHE-PSK-ARIA256-GCM-SHA384 | [RFC6209] |
258
+ | 0xC06E | TLS_RSA_PSK_WITH_ARIA_128_GCM_SHA256 | RSA-PSK-ARIA128-GCM-SHA256 | [RFC6209] |
259
+ | 0xC06F | TLS_RSA_PSK_WITH_ARIA_256_GCM_SHA384 | RSA-PSK-ARIA256-GCM-SHA384 | [RFC6209] |
260
+ | 0xC070 | TLS_ECDHE_PSK_WITH_ARIA_128_CBC_SHA256 | ECDHE-PSK-ARIA128-SHA256 | [RFC6209] |
261
+ | 0xC071 | TLS_ECDHE_PSK_WITH_ARIA_256_CBC_SHA384 | ECDHE-PSK-ARIA256-SHA384 | [RFC6209] |
262
+ | 0xC072 | TLS_ECDHE_ECDSA_WITH_CAMELLIA_128_CBC_SHA256 | ECDHE-ECDSA-CAMELLIA128-SHA256 | [RFC6367] |
263
+ | 0xC073 | TLS_ECDHE_ECDSA_WITH_CAMELLIA_256_CBC_SHA384 | ECDHE-ECDSA-CAMELLIA256-SHA384 | [RFC6367] |
264
+ | 0xC074 | TLS_ECDH_ECDSA_WITH_CAMELLIA_128_CBC_SHA256 | ECDH-ECDSA-CAMELLIA128-SHA256 | [RFC6367] |
265
+ | 0xC075 | TLS_ECDH_ECDSA_WITH_CAMELLIA_256_CBC_SHA384 | ECDH-ECDSA-CAMELLIA256-SHA384 | [RFC6367] |
266
+ | 0xC076 | TLS_ECDHE_RSA_WITH_CAMELLIA_128_CBC_SHA256 | ECDHE-RSA-CAMELLIA128-SHA256 | [RFC6367] |
267
+ | 0xC077 | TLS_ECDHE_RSA_WITH_CAMELLIA_256_CBC_SHA384 | ECDHE-RSA-CAMELLIA256-SHA384 | [RFC6367] |
268
+ | 0xC078 | TLS_ECDH_RSA_WITH_CAMELLIA_128_CBC_SHA256 | ECDH-CAMELLIA128-SHA256 | [RFC6367] |
269
+ | 0xC079 | TLS_ECDH_RSA_WITH_CAMELLIA_256_CBC_SHA384 | ECDH-CAMELLIA256-SHA384 | [RFC6367] |
270
+ | 0xC07A | TLS_RSA_WITH_CAMELLIA_128_GCM_SHA256 | CAMELLIA128-GCM-SHA256 | [RFC6367] |
271
+ | 0xC07B | TLS_RSA_WITH_CAMELLIA_256_GCM_SHA384 | CAMELLIA256-GCM-SHA384 | [RFC6367] |
272
+ | 0xC07C | TLS_DHE_RSA_WITH_CAMELLIA_128_GCM_SHA256 | DHE-RSA-CAMELLIA128-GCM-SHA256 | [RFC6367] |
273
+ | 0xC07D | TLS_DHE_RSA_WITH_CAMELLIA_256_GCM_SHA384 | DHE-RSA-CAMELLIA256-GCM-SHA384 | [RFC6367] |
274
+ | 0xC086 | TLS_ECDHE_ECDSA_WITH_CAMELLIA_128_GCM_SHA256 | ECDHE-ECDSA-CAMELLIA128-GCM-SHA256 | [RFC6367] |
275
+ | 0xC087 | TLS_ECDHE_ECDSA_WITH_CAMELLIA_256_GCM_SHA384 | ECDHE-ECDSA-CAMELLIA256-GCM-SHA384 | [RFC6367] |
276
+ | 0xC088 | TLS_ECDH_ECDSA_WITH_CAMELLIA_128_GCM_SHA256 | ECDH-ECDSA-CAMELLIA128-GCM-SHA256 | [RFC6367] |
277
+ | 0xC089 | TLS_ECDH_ECDSA_WITH_CAMELLIA_256_GCM_SHA384 | ECDH-ECDSA-CAMELLIA256-GCM-SHA384 | [RFC6367] |
278
+ | 0xC08A | TLS_ECDHE_RSA_WITH_CAMELLIA_128_GCM_SHA256 | ECDHE-CAMELLIA128-GCM-SHA256 | [RFC6367] |
279
+ | 0xC08B | TLS_ECDHE_RSA_WITH_CAMELLIA_256_GCM_SHA384 | ECDHE-CAMELLIA256-GCM-SHA384 | [RFC6367] |
280
+ | 0xC08C | TLS_ECDH_RSA_WITH_CAMELLIA_128_GCM_SHA256 | ECDH-CAMELLIA128-GCM-SHA256 | [RFC6367] |
281
+ | 0xC08D | TLS_ECDH_RSA_WITH_CAMELLIA_256_GCM_SHA384 | ECDH-CAMELLIA256-GCM-SHA384 | [RFC6367] |
282
+ | 0xC08E | TLS_PSK_WITH_CAMELLIA_128_GCM_SHA256 | PSK-CAMELLIA128-GCM-SHA256 | [RFC6367] |
283
+ | 0xC08F | TLS_PSK_WITH_CAMELLIA_256_GCM_SHA384 | PSK-CAMELLIA256-GCM-SHA384 | [RFC6367] |
284
+ | 0xC090 | TLS_DHE_PSK_WITH_CAMELLIA_128_GCM_SHA256 | DHE-PSK-CAMELLIA128-GCM-SHA256 | [RFC6367] |
285
+ | 0xC091 | TLS_DHE_PSK_WITH_CAMELLIA_256_GCM_SHA384 | DHE-PSK-CAMELLIA256-GCM-SHA384 | [RFC6367] |
286
+ | 0xC092 | TLS_RSA_PSK_WITH_CAMELLIA_128_GCM_SHA256 | RSA-PSK-CAMELLIA128-GCM-SHA256 | [RFC6367] |
287
+ | 0xC093 | TLS_RSA_PSK_WITH_CAMELLIA_256_GCM_SHA384 | RSA-PSK-CAMELLIA256-GCM-SHA384 | [RFC6367] |
288
+ | 0xC094 | TLS_PSK_WITH_CAMELLIA_128_CBC_SHA256 | PSK-CAMELLIA128-SHA256 | [RFC6367] |
289
+ | 0xC095 | TLS_PSK_WITH_CAMELLIA_256_CBC_SHA384 | PSK-CAMELLIA256-SHA384 | [RFC6367] |
290
+ | 0xC096 | TLS_DHE_PSK_WITH_CAMELLIA_128_CBC_SHA256 | DHE-PSK-CAMELLIA128-SHA256 | [RFC6367] |
291
+ | 0xC097 | TLS_DHE_PSK_WITH_CAMELLIA_256_CBC_SHA384 | DHE-PSK-CAMELLIA256-SHA384 | [RFC6367] |
292
+ | 0xC098 | TLS_RSA_PSK_WITH_CAMELLIA_128_CBC_SHA256 | RSA-PSK-CAMELLIA128-SHA256 | [RFC6367] |
293
+ | 0xC099 | TLS_RSA_PSK_WITH_CAMELLIA_256_CBC_SHA384 | RSA-PSK-CAMELLIA256-SHA384 | [RFC6367] |
294
+ | 0xC09A | TLS_ECDHE_PSK_WITH_CAMELLIA_128_CBC_SHA256 | ECDHE-PSK-CAMELLIA128-SHA256 | [RFC6367] |
295
+ | 0xC09B | TLS_ECDHE_PSK_WITH_CAMELLIA_256_CBC_SHA384 | ECDHE-PSK-CAMELLIA256-SHA384 | [RFC6367] |
296
+ | 0xC09C | TLS_RSA_WITH_AES_128_CCM | AES128-CCM | [RFC6655] |
297
+ | 0xC09D | TLS_RSA_WITH_AES_256_CCM | AES256-CCM | [RFC6655] |
298
+ | 0xC09E | TLS_DHE_RSA_WITH_AES_128_CCM | DHE-RSA-AES128-CCM | [RFC6655] |
299
+ | 0xC09F | TLS_DHE_RSA_WITH_AES_256_CCM | DHE-RSA-AES256-CCM | [RFC6655] |
300
+ | 0xC0A0 | TLS_RSA_WITH_AES_128_CCM_8 | AES128-CCM8 | [RFC6655] |
301
+ | 0xC0A1 | TLS_RSA_WITH_AES_256_CCM_8 | AES256-CCM8 | [RFC6655] |
302
+ | 0xC0A2 | TLS_DHE_RSA_WITH_AES_128_CCM_8 | DHE-RSA-AES128-CCM8 | [RFC6655] |
303
+ | 0xC0A3 | TLS_DHE_RSA_WITH_AES_256_CCM_8 | DHE-RSA-AES256-CCM8 | [RFC6655] |
304
+ | 0xC0A4 | TLS_PSK_WITH_AES_128_CCM | PSK-AES128-CCM | [RFC6655] |
305
+ | 0xC0A5 | TLS_PSK_WITH_AES_256_CCM | PSK-AES256-CCM | [RFC6655] |
306
+ | 0xC0A6 | TLS_DHE_PSK_WITH_AES_128_CCM | DHE-PSK-AES128-CCM | [RFC6655] |
307
+ | 0xC0A7 | TLS_DHE_PSK_WITH_AES_256_CCM | DHE-PSK-AES256-CCM | [RFC6655] |
308
+ | 0xC0A8 | TLS_PSK_WITH_AES_128_CCM_8 | PSK-AES128-CCM8 | [RFC6655] |
309
+ | 0xC0A9 | TLS_PSK_WITH_AES_256_CCM_8 | PSK-AES256-CCM8 | [RFC6655] |
310
+ | 0xC0AA | TLS_PSK_DHE_WITH_AES_128_CCM_8 | DHE-PSK-AES128-CCM8 | [RFC6655] |
311
+ | 0xC0AB | TLS_PSK_DHE_WITH_AES_256_CCM_8 | DHE-PSK-AES256-CCM8 | [RFC6655] |
312
+ | 0xC0AC | TLS_ECDHE_ECDSA_WITH_AES_128_CCM | ECDHE-ECDSA-AES128-CCM | [RFC7251] |
313
+ | 0xC0AD | TLS_ECDHE_ECDSA_WITH_AES_256_CCM | ECDHE-ECDSA-AES256-CCM | [RFC7251] |
314
+ | 0xC0AE | TLS_ECDHE_ECDSA_WITH_AES_128_CCM_8 | ECDHE-ECDSA-AES128-CCM8 | [RFC7251] |
315
+ | 0xC0AF | TLS_ECDHE_ECDSA_WITH_AES_256_CCM_8 | ECDHE-ECDSA-AES256-CCM8 | [RFC7251] |
316
+ | 0xC100 | TLS_GOSTR341112_256_WITH_KUZNYECHIK_CTR_OMAC | GOST2012-KUZNYECHIK-KUZNYECHIKOMAC | [RFC9189] |
317
+ | 0xC101 | TLS_GOSTR341112_256_WITH_MAGMA_CTR_OMAC | GOST2012-MAGMA-MAGMAOMAC | [RFC9189] |
318
+ | 0xC102 | TLS_GOSTR341112_256_WITH_28147_CNT_IMIT | IANA-GOST2012-GOST8912-GOST8912 | [RFC9189] |
319
+ | 0xCC13 | | ECDHE-RSA-CHACHA20-POLY1305-OLD | |
320
+ | 0xCC14 | | ECDHE-ECDSA-CHACHA20-POLY1305-OLD | |
321
+ | 0xCC15 | | DHE-RSA-CHACHA20-POLY1305-OLD | |
322
+ | 0xCCA8 | TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256 | ECDHE-RSA-CHACHA20-POLY1305 | [RFC7905] |
323
+ | 0xCCA9 | TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256 | ECDHE-ECDSA-CHACHA20-POLY1305 | [RFC7905] |
324
+ | 0xCCAA | TLS_DHE_RSA_WITH_CHACHA20_POLY1305_SHA256 | DHE-RSA-CHACHA20-POLY1305 | [RFC7905] |
325
+ | 0xCCAB | TLS_PSK_WITH_CHACHA20_POLY1305_SHA256 | PSK-CHACHA20-POLY1305 | [RFC7905] |
326
+ | 0xCCAC | TLS_ECDHE_PSK_WITH_CHACHA20_POLY1305_SHA256 | ECDHE-PSK-CHACHA20-POLY1305 | [RFC7905] |
327
+ | 0xCCAD | TLS_DHE_PSK_WITH_CHACHA20_POLY1305_SHA256 | DHE-PSK-CHACHA20-POLY1305 | [RFC7905] |
328
+ | 0xCCAE | TLS_RSA_PSK_WITH_CHACHA20_POLY1305_SHA256 | RSA-PSK-CHACHA20-POLY1305 | [RFC7905] |
329
+ | 0xD001 | TLS_ECDHE_PSK_WITH_AES_128_GCM_SHA256 | ECDHE-PSK-AES128-GCM-SHA256 | [RFC8442] |
330
+ | 0xE011 | | ECDHE-ECDSA-SM4-CBC-SM3 | |
331
+ | 0xE051 | | ECDHE-ECDSA-SM4-GCM-SM3 | |
332
+ | 0xE052 | | ECDHE-ECDSA-SM4-CCM-SM3 | |
333
+ | 0xFF00 | | GOST-MD5 | |
334
+ | 0xFF01 | | GOST-GOST94 | |
335
+ | 0xFF02 | | GOST-GOST89MAC | |
336
+ | 0xFF03 | | GOST-GOST89STREAM | |
local-test-curl-delta-01/afc-curl/docs/CIPHERS.md ADDED
@@ -0,0 +1,181 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ Copyright (C) Daniel Stenberg, <[email protected]>, et al.
3
+
4
+ SPDX-License-Identifier: curl
5
+ -->
6
+
7
+ ## curl cipher options
8
+
9
+ With curl's option
10
+ [`--tls13-ciphers`](https://curl.se/docs/manpage.html#--tls13-ciphers)
11
+ or
12
+ [`CURLOPT_TLS13_CIPHERS`](https://curl.se/libcurl/c/CURLOPT_TLS13_CIPHERS.html)
13
+ users can control which cipher suites to consider when negotiating TLS 1.3
14
+ connections. With option
15
+ [`--ciphers`](https://curl.se/docs/manpage.html#--ciphers)
16
+ or
17
+ [`CURLOPT_SSL_CIPHER_LIST`](https://curl.se/libcurl/c/CURLOPT_SSL_CIPHER_LIST.html)
18
+ users can control which cipher suites to consider when negotiating
19
+ TLS 1.2 (1.1, 1.0) connections.
20
+
21
+ By default, curl may negotiate TLS 1.3 and TLS 1.2 connections, so the cipher
22
+ suites considered when negotiating a TLS connection are a union of the TLS 1.3
23
+ and TLS 1.2 cipher suites. If you want curl to consider only TLS 1.3 cipher
24
+ suites for the connection, you have to set the minimum TLS version to 1.3 by
25
+ using [`--tlsv1.3`](https://curl.se/docs/manpage.html#--tlsv13)
26
+ or [`CURLOPT_SSLVERSION`](https://curl.se/libcurl/c/CURLOPT_SSLVERSION.html)
27
+ with `CURL_SSLVERSION_TLSv1_3`.
28
+
29
+ Both the TLS 1.3 and TLS 1.2 cipher options expect a list of cipher suites
30
+ separated by colons (`:`). This list is parsed opportunistically, cipher suites
31
+ that are not recognized or implemented are ignored. As long as there is at
32
+ least one recognized cipher suite in the list, the list is considered valid.
33
+
34
+ For both the TLS 1.3 and TLS 1.2 cipher options, the order in which the
35
+ cipher suites are specified determine the preference of them. When negotiating
36
+ a TLS connection the server picks a cipher suite from the intersection of the
37
+ cipher suites supported by the server and the cipher suites sent by curl. If
38
+ the server is configured to honor the client's cipher preference, the first
39
+ common cipher suite in the list sent by curl is chosen.
40
+
41
+ ## TLS 1.3 cipher suites
42
+
43
+ Setting TLS 1.3 cipher suites is supported by curl with
44
+ OpenSSL (1.1.1+, curl 7.61.0+), LibreSSL (3.4.1+, curl 8.3.0+),
45
+ wolfSSL (curl 8.10.0+) and mbedTLS (3.6.0+, curl 8.10.0+).
46
+
47
+ The list of cipher suites that can be used for the `--tls13-ciphers` option:
48
+ ```
49
+ TLS_AES_128_GCM_SHA256
50
+ TLS_AES_256_GCM_SHA384
51
+ TLS_CHACHA20_POLY1305_SHA256
52
+ TLS_AES_128_CCM_SHA256
53
+ TLS_AES_128_CCM_8_SHA256
54
+ ```
55
+
56
+ ### wolfSSL notes
57
+
58
+ In addition to above list the following cipher suites can be used:
59
+ `TLS_SM4_GCM_SM3` `TLS_SM4_CCM_SM3` `TLS_SHA256_SHA256` `TLS_SHA384_SHA384`.
60
+ Usage of these cipher suites is not recommended. (The last two cipher suites
61
+ are NULL ciphers, offering no encryption whatsoever.)
62
+
63
+ ## TLS 1.2 (1.1, 1.0) cipher suites
64
+
65
+ Setting TLS 1.2 cipher suites is supported by curl with OpenSSL, LibreSSL,
66
+ BoringSSL, mbedTLS (curl 8.8.0+), wolfSSL (curl 7.53.0+),
67
+ Secure Transport (curl 7.77.0+) and BearSSL (curl 7.83.0+). Schannel does not
68
+ support setting cipher suites directly, but does support setting algorithms
69
+ (curl 7.61.0+), see Schannel notes below.
70
+
71
+ For TLS 1.2 cipher suites there are multiple naming schemes, the two most used
72
+ are with OpenSSL names (e.g. `ECDHE-RSA-AES128-GCM-SHA256`) and IANA names
73
+ (e.g. `TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256`). IANA names of TLS 1.2 cipher
74
+ suites look similar to TLS 1.3 cipher suite names, to distinguish them note
75
+ that TLS 1.2 names contain `_WITH_`, while TLS 1.3 names do not. When setting
76
+ TLS 1.2 cipher suites with curl it is recommended that you use OpenSSL names
77
+ as these are most widely recognized by the supported SSL backends.
78
+
79
+ The complete list of cipher suites that may be considered for the `--ciphers`
80
+ option is extensive, it consists of more than 300 ciphers suites. However,
81
+ nowadays for most of them their usage is discouraged, and support for a lot of
82
+ them have been removed from the various SSL backends, if ever implemented at
83
+ all.
84
+
85
+ A shortened list (based on [recommendations by
86
+ Mozilla](https://wiki.mozilla.org/Security/Server_Side_TLS)) of cipher suites,
87
+ which are (mostly) supported by all SSL backends, that can be used for the
88
+ `--ciphers` option:
89
+ ```
90
+ ECDHE-ECDSA-AES128-GCM-SHA256
91
+ ECDHE-RSA-AES128-GCM-SHA256
92
+ ECDHE-ECDSA-AES256-GCM-SHA384
93
+ ECDHE-RSA-AES256-GCM-SHA384
94
+ ECDHE-ECDSA-CHACHA20-POLY1305
95
+ ECDHE-RSA-CHACHA20-POLY1305
96
+ DHE-RSA-AES128-GCM-SHA256
97
+ DHE-RSA-AES256-GCM-SHA384
98
+ DHE-RSA-CHACHA20-POLY1305
99
+ ECDHE-ECDSA-AES128-SHA256
100
+ ECDHE-RSA-AES128-SHA256
101
+ ECDHE-ECDSA-AES128-SHA
102
+ ECDHE-RSA-AES128-SHA
103
+ ECDHE-ECDSA-AES256-SHA384
104
+ ECDHE-RSA-AES256-SHA384
105
+ ECDHE-ECDSA-AES256-SHA
106
+ ECDHE-RSA-AES256-SHA
107
+ DHE-RSA-AES128-SHA256
108
+ DHE-RSA-AES256-SHA256
109
+ AES128-GCM-SHA256
110
+ AES256-GCM-SHA384
111
+ AES128-SHA256
112
+ AES256-SHA256
113
+ AES128-SHA
114
+ AES256-SHA
115
+ DES-CBC3-SHA
116
+ ```
117
+
118
+ See this [list](https://github.com/curl/curl/blob/master/docs/CIPHERS-TLS12.md)
119
+ for a complete list of TLS 1.2 cipher suites.
120
+
121
+ ### OpenSSL notes
122
+
123
+ In addition to specifying a list of cipher suites, OpenSSL also accepts a
124
+ format with specific cipher strings (like `TLSv1.2`, `AESGCM`, `CHACHA20`) and
125
+ `!`, `-` and `+` operators. Refer to the
126
+ [OpenSSL cipher documentation](https://docs.openssl.org/master/man1/openssl-ciphers/#cipher-list-format)
127
+ for further information on that format.
128
+
129
+ ### Schannel notes
130
+
131
+ Schannel does not support setting individual TLS 1.2 cipher suites directly.
132
+ It only allows the enabling and disabling of encryption algorithms. These are
133
+ in the form of `CALG_xxx`, see the [Schannel `ALG_ID`
134
+ documentation](https://docs.microsoft.com/windows/desktop/SecCrypto/alg-id)
135
+ for a list of these algorithms. Also, (since curl 7.77.0)
136
+ `SCH_USE_STRONG_CRYPTO` can be given to pass that flag to Schannel, lookup the
137
+ [documentation for the Windows version in
138
+ use](https://learn.microsoft.com/en-us/windows/win32/secauthn/cipher-suites-in-schannel)
139
+ to see how that affects the cipher suite selection. When not specifying the
140
+ `--chiphers` and `--tl13-ciphers` options curl passes this flag by default.
141
+
142
+ ## Examples
143
+
144
+ ```sh
145
+ curl \
146
+ --tls13-ciphers TLS_AES_128_GCM_SHA256:TLS_CHACHA20_POLY1305_SHA256 \
147
+ --ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:\
148
+ ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305 \
149
+ https://example.com/
150
+ ```
151
+ Restrict ciphers to `aes128-gcm` and `chacha20`. Works with OpenSSL, LibreSSL,
152
+ mbedTLS and wolfSSL.
153
+
154
+ ```sh
155
+ curl \
156
+ --tlsv1.3 \
157
+ --tls13-ciphers TLS_AES_128_GCM_SHA256:TLS_CHACHA20_POLY1305_SHA256 \
158
+ https://example.com/
159
+ ```
160
+ Restrict to only TLS 1.3 with `aes128-gcm` and `chacha20` ciphers. Works with
161
+ OpenSSL, LibreSSL, mbedTLS, wolfSSL and Schannel.
162
+
163
+ ```sh
164
+ curl \
165
+ --ciphers ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:\
166
+ ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305 \
167
+ https://example.com/
168
+ ```
169
+ Restrict TLS 1.2 ciphers to `aes128-gcm` and `chacha20`, use default TLS 1.3
170
+ ciphers (if TLS 1.3 is available). Works with OpenSSL, LibreSSL, BoringSSL,
171
+ mbedTLS, wolfSSL, Secure Transport and BearSSL.
172
+
173
+ ## Further reading
174
+ - [OpenSSL cipher suite names documentation](https://docs.openssl.org/master/man1/openssl-ciphers/#cipher-suite-names)
175
+ - [wolfSSL cipher support documentation](https://www.wolfssl.com/documentation/manuals/wolfssl/chapter04.html#cipher-support)
176
+ - [mbedTLS cipher suites reference](https://mbed-tls.readthedocs.io/projects/api/en/development/api/file/ssl__ciphersuites_8h/)
177
+ - [Schannel cipher suites documentation](https://learn.microsoft.com/en-us/windows/win32/secauthn/cipher-suites-in-schannel)
178
+ - [BearSSL supported crypto](https://www.bearssl.org/support.html)
179
+ - [Secure Transport cipher suite values](https://developer.apple.com/documentation/security/1550981-ssl_cipher_suite_values)
180
+ - [IANA cipher suites list](https://www.iana.org/assignments/tls-parameters/tls-parameters.xhtml#tls-parameters-4)
181
+ - [Wikipedia cipher suite article](https://en.wikipedia.org/wiki/Cipher_suite)
local-test-curl-delta-01/afc-curl/docs/CMakeLists.txt ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #***************************************************************************
2
+ # _ _ ____ _
3
+ # Project ___| | | | _ \| |
4
+ # / __| | | | |_) | |
5
+ # | (__| |_| | _ <| |___
6
+ # \___|\___/|_| \_\_____|
7
+ #
8
+ # Copyright (C) Daniel Stenberg, <[email protected]>, et al.
9
+ #
10
+ # This software is licensed as described in the file COPYING, which
11
+ # you should have received as part of this distribution. The terms
12
+ # are also available at https://curl.se/docs/copyright.html.
13
+ #
14
+ # You may opt to use, copy, modify, merge, publish, distribute and/or sell
15
+ # copies of the Software, and permit persons to whom the Software is
16
+ # furnished to do so, under the terms of the COPYING file.
17
+ #
18
+ # This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
19
+ # KIND, either express or implied.
20
+ #
21
+ # SPDX-License-Identifier: curl
22
+ #
23
+ ###########################################################################
24
+
25
+ if(BUILD_LIBCURL_DOCS)
26
+ add_subdirectory(libcurl)
27
+ endif()
28
+ if(ENABLE_CURL_MANUAL AND BUILD_CURL_EXE)
29
+ add_subdirectory(cmdline-opts)
30
+ endif()
31
+
32
+ if(BUILD_MISC_DOCS)
33
+ foreach(_man_misc IN ITEMS "curl-config" "mk-ca-bundle")
34
+ set(_man_target "${CMAKE_CURRENT_BINARY_DIR}/${_man_misc}.1")
35
+ add_custom_command(OUTPUT "${_man_target}"
36
+ WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
37
+ COMMAND "${PERL_EXECUTABLE}" "${PROJECT_SOURCE_DIR}/scripts/cd2nroff" "${_man_misc}.md" > "${_man_target}"
38
+ DEPENDS "${_man_misc}.md"
39
+ VERBATIM
40
+ )
41
+ add_custom_target("curl-generate-${_man_misc}.1" ALL DEPENDS "${_man_target}")
42
+ if(NOT CURL_DISABLE_INSTALL)
43
+ install(FILES "${_man_target}" DESTINATION "${CMAKE_INSTALL_MANDIR}/man1")
44
+ endif()
45
+ endforeach()
46
+ endif()
local-test-curl-delta-01/afc-curl/docs/CODE_OF_CONDUCT.md ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ Copyright (C) Daniel Stenberg, <[email protected]>, et al.
3
+
4
+ SPDX-License-Identifier: curl
5
+ -->
6
+
7
+ Contributor Code of Conduct
8
+ ===========================
9
+
10
+ As contributors and maintainers of this project, we pledge to respect all
11
+ people who contribute through reporting issues, posting feature requests,
12
+ updating documentation, submitting pull requests or patches, and other
13
+ activities.
14
+
15
+ We are committed to making participation in this project a harassment-free
16
+ experience for everyone, regardless of level of experience, gender, gender
17
+ identity and expression, sexual orientation, disability, personal appearance,
18
+ body size, race, ethnicity, age, or religion.
19
+
20
+ Examples of unacceptable behavior by participants include the use of sexual
21
+ language or imagery, derogatory comments or personal attacks, trolling, public
22
+ or private harassment, insults, or other unprofessional conduct.
23
+
24
+ Project maintainers have the right and responsibility to remove, edit, or
25
+ reject comments, commits, code, wiki edits, issues, and other contributions
26
+ that are not aligned to this Code of Conduct. Project maintainers who do not
27
+ follow the Code of Conduct may be removed from the project team.
28
+
29
+ This code of conduct applies both within project spaces and in public spaces
30
+ when an individual is representing the project or its community.
31
+
32
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
33
+ reported by opening an issue or contacting one or more of the project
34
+ maintainers.
35
+
36
+ This Code of Conduct is adapted from the [Contributor
37
+ Covenant](https://contributor-covenant.org/), version 1.1.0, available at
38
+ [https://contributor-covenant.org/version/1/1/0/](https://contributor-covenant.org/version/1/1/0/)
local-test-curl-delta-01/afc-curl/docs/CODE_REVIEW.md ADDED
@@ -0,0 +1,174 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ Copyright (C) Daniel Stenberg, <[email protected]>, et al.
3
+
4
+ SPDX-License-Identifier: curl
5
+ -->
6
+
7
+ # How to do code reviews for curl
8
+
9
+ Anyone and everyone is encouraged and welcome to review code submissions in
10
+ curl. This is a guide on what to check for and how to perform a successful
11
+ code review.
12
+
13
+ ## All submissions should get reviewed
14
+
15
+ All pull requests and patches submitted to the project should be reviewed by
16
+ at least one experienced curl maintainer before that code is accepted and
17
+ merged.
18
+
19
+ ## Let the tools and tests take the first rounds
20
+
21
+ On initial pull requests, let the tools and tests do their job first and then
22
+ start out by helping the submitter understand the test failures and tool
23
+ alerts.
24
+
25
+ ## How to provide feedback to author
26
+
27
+ Be nice. Ask questions. Provide examples or suggestions of improvements.
28
+ Assume the best intentions. Remember language barriers.
29
+
30
+ All first-time contributors can become regulars. Let's help them go there.
31
+
32
+ ## Is this a change we want?
33
+
34
+ If this is not a change that seems to be aligned with the project's path
35
+ forward and as such cannot be accepted, inform the author about this sooner
36
+ rather than later. Do it gently and explain why and possibly what could be
37
+ done to make it more acceptable.
38
+
39
+ ## API/ABI stability or changed behavior
40
+
41
+ Changing the API and the ABI may be fine in a change but it needs to be done
42
+ deliberately and carefully. If not, a reviewer must help the author to realize
43
+ the mistake.
44
+
45
+ curl and libcurl are similarly strict on not modifying existing behavior. API
46
+ and ABI stability is not enough, the behavior should also remain intact as far
47
+ as possible.
48
+
49
+ ## Code style
50
+
51
+ Most code style nits are detected by checksrc but not all. Only leave remarks
52
+ on style deviation once checksrc does not find anymore.
53
+
54
+ Minor nits from fresh submitters can also be handled by the maintainer when
55
+ merging, in case it seems like the submitter is not clear on what to do. We
56
+ want to make the process fun and exciting for new contributors.
57
+
58
+ ## Encourage consistency
59
+
60
+ Make sure new code is written in a similar style as existing code. Naming,
61
+ logic, conditions, etc.
62
+
63
+ ## Are pointers always non-NULL?
64
+
65
+ If a function or code rely on pointers being non-NULL, take an extra look if
66
+ that seems to be a fair assessment.
67
+
68
+ ## Asserts
69
+
70
+ Conditions that should never be false can be verified with `DEBUGASSERT()`
71
+ calls to get caught in tests and debugging easier, while not having an impact
72
+ on final or release builds.
73
+
74
+ ## Memory allocation
75
+
76
+ Can the mallocs be avoided? Do not introduce mallocs in any hot paths. If
77
+ there are (new) mallocs, can they be combined into fewer calls?
78
+
79
+ Are all allocations handled in error paths to avoid leaks and crashes?
80
+
81
+ ## Thread-safety
82
+
83
+ We do not like static variables as they break thread-safety and prevent
84
+ functions from being reentrant.
85
+
86
+ ## Should features be `#ifdef`ed?
87
+
88
+ Features and functionality may not be present everywhere and should therefore
89
+ be `#ifdef`ed. Additionally, some features should be possible to switch on/off
90
+ in the build.
91
+
92
+ Write `#ifdef`s to be as little of a "maze" as possible.
93
+
94
+ ## Does it look portable enough?
95
+
96
+ curl runs "everywhere". Does the code take a reasonable stance and enough
97
+ precautions to be possible to build and run on most platforms?
98
+
99
+ Remember that we live by C89 restrictions.
100
+
101
+ ## Tests and testability
102
+
103
+ New features should be added in conjunction with one or more test cases.
104
+ Ideally, functions should also be written so that unit tests can be done to
105
+ test individual functions.
106
+
107
+ ## Documentation
108
+
109
+ New features or changes to existing functionality **must** be accompanied by
110
+ updated documentation. Submitting that in a separate follow-up pull request is
111
+ not OK. A code review must also verify that the submitted documentation update
112
+ matches the code submission.
113
+
114
+ English is not everyone's first language, be mindful of this and help the
115
+ submitter improve the text if it needs a rewrite to read better.
116
+
117
+ ## Code should not be hard to understand
118
+
119
+ Source code should be written to maximize readability and be easy to
120
+ understand.
121
+
122
+ ## Functions should not be large
123
+
124
+ A single function should never be large as that makes it hard to follow and
125
+ understand all the exit points and state changes. Some existing functions in
126
+ curl certainly violate this ground rule but when reviewing new code we should
127
+ propose splitting into smaller functions.
128
+
129
+ ## Duplication is evil
130
+
131
+ Anything that looks like duplicated code is a red flag. Anything that seems to
132
+ introduce code that we *should* already have or provide needs a closer check.
133
+
134
+ ## Sensitive data
135
+
136
+ When credentials are involved, take an extra look at what happens with this
137
+ data. Where it comes from and where it goes.
138
+
139
+ ## Variable types differ
140
+
141
+ `size_t` is not a fixed size. `time_t` can be signed or unsigned and have
142
+ different sizes. Relying on variable sizes is a red flag.
143
+
144
+ Also remember that endianness and >= 32-bit accesses to unaligned addresses
145
+ are problematic areas.
146
+
147
+ ## Integer overflows
148
+
149
+ Be careful about integer overflows. Some variable types can be either 32-bit
150
+ or 64-bit. Integer overflows must be detected and acted on *before* they
151
+ happen.
152
+
153
+ ## Dangerous use of functions
154
+
155
+ Maybe use of `realloc()` should rather use the dynbuf functions?
156
+
157
+ Do not allow new code that grows buffers without using dynbuf.
158
+
159
+ Use of C functions that rely on a terminating zero must only be used on data
160
+ that really do have a null-terminating zero.
161
+
162
+ ## Dangerous "data styles"
163
+
164
+ Make extra precautions and verify that memory buffers that need a terminating
165
+ zero always have exactly that. Buffers *without* a null-terminator must not be
166
+ used as input to string functions.
167
+
168
+ # Commit messages
169
+
170
+ Tightly coupled with a code review is making sure that the commit message is
171
+ good. It is the responsibility of the person who merges the code to make sure
172
+ that the commit message follows our standard (detailed in the
173
+ [CONTRIBUTE](CONTRIBUTE.md) document). This includes making sure the PR
174
+ identifies related issues and giving credit to reporters and helpers.
local-test-curl-delta-01/afc-curl/docs/CONTRIBUTE.md ADDED
@@ -0,0 +1,307 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ Copyright (C) Daniel Stenberg, <[email protected]>, et al.
3
+
4
+ SPDX-License-Identifier: curl
5
+ -->
6
+
7
+ # Contributing to the curl project
8
+
9
+ This document is intended to offer guidelines on how to best contribute to the
10
+ curl project. This concerns new features as well as corrections to existing
11
+ flaws or bugs.
12
+
13
+ ## Join the Community
14
+
15
+ Skip over to [https://curl.se/mail/](https://curl.se/mail/) and join
16
+ the appropriate mailing list(s). Read up on details before you post
17
+ questions. Read this file before you start sending patches. We prefer
18
+ questions sent to and discussions being held on the mailing list(s), not sent
19
+ to individuals.
20
+
21
+ Before posting to one of the curl mailing lists, please read up on the
22
+ [mailing list etiquette](https://curl.se/mail/etiquette.html).
23
+
24
+ We also hang out on IRC in #curl on libera.chat
25
+
26
+ If you are at all interested in the code side of things, consider clicking
27
+ 'watch' on the [curl repository on GitHub](https://github.com/curl/curl) to be
28
+ notified of pull requests and new issues posted there.
29
+
30
+ ## License and copyright
31
+
32
+ When contributing with code, you agree to put your changes and new code under
33
+ the same license curl and libcurl is already using unless stated and agreed
34
+ otherwise.
35
+
36
+ If you add a larger piece of code, you can opt to make that file or set of
37
+ files to use a different license as long as they do not enforce any changes to
38
+ the rest of the package and they make sense. Such "separate parts" can not be
39
+ GPL licensed (as we do not want copyleft to affect users of libcurl) but they
40
+ must use "GPL compatible" licenses (as we want to allow users to use libcurl
41
+ properly in GPL licensed environments).
42
+
43
+ When changing existing source code, you do not alter the copyright of the
44
+ original file(s). The copyright is still owned by the original creator(s) or
45
+ those who have been assigned copyright by the original author(s).
46
+
47
+ By submitting a patch to the curl project, you are assumed to have the right
48
+ to the code and to be allowed by your employer or whatever to hand over that
49
+ patch/code to us. We credit you for your changes as far as possible, to give
50
+ credit but also to keep a trace back to who made what changes. Please always
51
+ provide us with your full real name when contributing,
52
+
53
+ ## What To Read
54
+
55
+ Source code, the man pages, the [INTERNALS
56
+ document](https://curl.se/dev/internals.html),
57
+ [TODO](https://curl.se/docs/todo.html),
58
+ [KNOWN_BUGS](https://curl.se/docs/knownbugs.html) and the [most recent
59
+ changes](https://curl.se/dev/sourceactivity.html) in git. Just lurking on the
60
+ [curl-library mailing list](https://curl.se/mail/list.cgi?list=curl-library)
61
+ gives you a lot of insights on what's going on right now. Asking there is a
62
+ good idea too.
63
+
64
+ ## Write a good patch
65
+
66
+ ### Follow code style
67
+
68
+ When writing C code, follow the
69
+ [CODE_STYLE](https://curl.se/dev/code-style.html) already established in
70
+ the project. Consistent style makes code easier to read and mistakes less
71
+ likely to happen. Run `make checksrc` before you submit anything, to make sure
72
+ you follow the basic style. That script does not verify everything, but if it
73
+ complains you know you have work to do.
74
+
75
+ ### Non-clobbering All Over
76
+
77
+ When you write new functionality or fix bugs, it is important that you do not
78
+ fiddle all over the source files and functions. Remember that it is likely
79
+ that other people have done changes in the same source files as you have and
80
+ possibly even in the same functions. If you bring completely new
81
+ functionality, try writing it in a new source file. If you fix bugs, try to
82
+ fix one bug at a time and send them as separate patches.
83
+
84
+ ### Write Separate Changes
85
+
86
+ It is annoying when you get a huge patch from someone that is said to fix 11
87
+ odd problems, but discussions and opinions do not agree with 10 of them - or 9
88
+ of them were already fixed in a different way. Then the person merging this
89
+ change needs to extract the single interesting patch from somewhere within the
90
+ huge pile of source, and that creates a lot of extra work.
91
+
92
+ Preferably, each fix that corrects a problem should be in its own patch/commit
93
+ with its own description/commit message stating exactly what they correct so
94
+ that all changes can be selectively applied by the maintainer or other
95
+ interested parties.
96
+
97
+ Also, separate changes enable bisecting much better for tracking problems
98
+ and regression in the future.
99
+
100
+ ### Patch Against Recent Sources
101
+
102
+ Please try to get the latest available sources to make your patches against.
103
+ It makes the lives of the developers so much easier. The best is if you get
104
+ the most up-to-date sources from the git repository, but the latest release
105
+ archive is quite OK as well.
106
+
107
+ ### Documentation
108
+
109
+ Writing docs is dead boring and one of the big problems with many open source
110
+ projects but someone's gotta do it. It makes things a lot easier if you submit
111
+ a small description of your fix or your new features with every contribution
112
+ so that it can be swiftly added to the package documentation.
113
+
114
+ Documentation is mostly provided as manpages or plain ASCII files. The
115
+ manpages are rendered from their source files that are usually written using
116
+ markdown. Most HTML files on the website and in the release archives are
117
+ generated from corresponding markdown and ASCII files.
118
+
119
+ ### Test Cases
120
+
121
+ Since the introduction of the test suite, we can quickly verify that the main
122
+ features are working as they are supposed to. To maintain this situation and
123
+ improve it, all new features and functions that are added need to be tested in
124
+ the test suite. Every feature that is added should get at least one valid test
125
+ case that verifies that it works as documented. If every submitter also posts
126
+ a few test cases, it does not end up a heavy burden on a single person.
127
+
128
+ If you do not have test cases or perhaps you have done something that is hard
129
+ to write tests for, do explain exactly how you have otherwise tested and
130
+ verified your changes.
131
+
132
+ # Submit Your Changes
133
+
134
+ ## Get your changes merged
135
+
136
+ Ideally you file a [pull request on
137
+ GitHub](https://github.com/curl/curl/pulls), but you can also send your plain
138
+ patch to [the curl-library mailing
139
+ list](https://curl.se/mail/list.cgi?list=curl-library).
140
+
141
+ If you opt to post a patch on the mailing list, chances are someone converts
142
+ it into a pull request for you, to have the CI jobs verify it proper before it
143
+ can be merged. Be prepared that some feedback on the proposed change might
144
+ then come on GitHub.
145
+
146
+ Your changes be reviewed and discussed and you are expected to correct flaws
147
+ pointed out and update accordingly, or the change risks stalling and
148
+ eventually just getting deleted without action. As a submitter of a change,
149
+ you are the owner of that change until it has been merged.
150
+
151
+ Respond on the list or on GitHub about the change and answer questions and/or
152
+ fix nits/flaws. This is important. We take lack of replies as a sign that you
153
+ are not anxious to get your patch accepted and we tend to simply drop such
154
+ changes.
155
+
156
+ ## About pull requests
157
+
158
+ With GitHub it is easy to send a [pull
159
+ request](https://github.com/curl/curl/pulls) to the curl project to have
160
+ changes merged.
161
+
162
+ We strongly prefer pull requests to mailed patches, as it makes it a proper
163
+ git commit that is easy to merge and they are easy to track and not that easy
164
+ to lose in the flood of many emails, like they sometimes do on the mailing
165
+ lists.
166
+
167
+ Every pull request submitted is automatically tested in several different
168
+ ways. [See the CI document for more
169
+ information](https://github.com/curl/curl/blob/master/tests/CI.md).
170
+
171
+ Sometimes the tests fail due to a dependency service temporarily being offline
172
+ or otherwise unavailable, e.g. package downloads. In this case you can just
173
+ try to update your pull requests to rerun the tests later as described below.
174
+
175
+ You can update your pull requests by pushing new commits or force-pushing
176
+ changes to existing commits. Force-pushing an amended commit without any
177
+ actual content changed also allows you to retrigger the tests for that commit.
178
+
179
+ When you adjust your pull requests after review, consider squashing the
180
+ commits so that we can review the full updated version more easily.
181
+
182
+ A pull request sent to the project might get labeled `needs-votes` by a
183
+ project maintainer. This label means that in addition to meeting all other
184
+ checks and qualifications this pull request must also receive more "votes" of
185
+ user support. More signs that people want this to happen. It could be in the
186
+ form of messages saying so, or thumbs-up reactions on GitHub.
187
+
188
+ ## When the pull request is approved
189
+
190
+ If it does not seem to get approved when you think it is ready - feel free to
191
+ ask for approval.
192
+
193
+ Once your pull request has been approved it can be merged by a maintainer.
194
+
195
+ For new features, or changes, we require that the *feature window* is open for
196
+ the pull request to be merged. This is typically a three week period that
197
+ starts ten days after a previous release. New features submitted as pull
198
+ requests while the window is closed simply have to wait until it opens to get
199
+ merged.
200
+
201
+ If time passes without your approved pull request gets merged: feel free to
202
+ ask what more you can do to make it happen.
203
+
204
+ ## Making quality changes
205
+
206
+ Make the patch against as recent source versions as possible.
207
+
208
+ If you have followed the tips in this document and your patch still has not
209
+ been incorporated or responded to after some weeks, consider resubmitting it
210
+ to the list or better yet: change it to a pull request.
211
+
212
+ ## Commit messages
213
+
214
+ How to write git commit messages in the curl project.
215
+
216
+ ---- start ----
217
+ [area]: [short line describing the main effect]
218
+ -- empty line --
219
+ [full description, no wider than 72 columns that describes as much as
220
+ possible as to why this change is made, and possibly what things
221
+ it fixes and everything else that is related,
222
+ -- end --
223
+
224
+ The first line is a succinct description of the change and should ideally work
225
+ as a single line in the RELEASE NOTES.
226
+
227
+ - use the imperative, present tense: **change** not "changed" nor "changes"
228
+ - do not capitalize the first letter
229
+ - no period (.) at the end
230
+
231
+ The `[area]` in the first line can be `http2`, `cookies`, `openssl` or
232
+ similar. There is no fixed list to select from but using the same "area" as
233
+ other related changes could make sense.
234
+
235
+ ## Commit message keywords
236
+
237
+ Use the following ways to improve the message and provide pointers to related
238
+ work.
239
+
240
+ - `Follow-up to {shorthash}` - if this fixes or continues a previous commit;
241
+ add a `Ref:` that commit's PR or issue if it is not a small, obvious fix;
242
+ followed by an empty line
243
+
244
+ - `Bug: URL` to the source of the report or more related discussion; use
245
+ `Fixes` for GitHub issues instead when that is appropriate.
246
+
247
+ - `Approved-by: John Doe` - credit someone who approved the PR.
248
+
249
+ - `Authored-by: John Doe` - credit the original author of the code; only use
250
+ this if you cannot use `git commit --author=...`.
251
+
252
+ - `Signed-off-by: John Doe` - we do not use this, but do not bother removing
253
+ it.
254
+
255
+ - `whatever-else-by:` credit all helpers, finders, doers; try to use one of
256
+ the following keywords if at all possible, for consistency: `Acked-by:`,
257
+ `Assisted-by:`, `Co-authored-by:`, `Found-by:`, `Reported-by:`,
258
+ `Reviewed-by:`, `Suggested-by:`, `Tested-by:`.
259
+
260
+ - `Ref: #1234` - if this is related to a GitHub issue or PR, possibly one that
261
+ has already been closed.
262
+
263
+ - `Ref: URL` to more information about the commit; use `Bug:` instead for a
264
+ reference to a bug on another bug tracker]
265
+
266
+ - `Fixes #1234` - if this fixes a GitHub issue; GitHub closes the issue once
267
+ this commit is merged.
268
+
269
+ - `Closes #1234` - if this merges a GitHub PR; GitHub closes the PR once this
270
+ commit is merged.
271
+
272
+ Do not forget to use commit with `--author` if you commit someone else's work,
273
+ and make sure that you have your own user and email setup correctly in git
274
+ before you commit.
275
+
276
+ Add whichever header lines as appropriate, with one line per person if more
277
+ than one person was involved. There is no need to credit yourself unless you
278
+ are using `--author` which hides your identity. Do not include people's email
279
+ addresses in headers to avoid spam, unless they are already public from a
280
+ previous commit; saying `{userid} on github` is OK.
281
+
282
+ ## Push Access
283
+
284
+ If you are a frequent contributor, you may be given push access to the git
285
+ repository and then you are able to push your changes straight into the git
286
+ repository instead of sending changes as pull requests or by mail as patches.
287
+
288
+ Just ask if this is what you would want. You are required to have posted
289
+ several high quality patches first, before you can be granted push access.
290
+
291
+ ## Useful resources
292
+ - [Webinar on getting code into cURL](https://www.youtube.com/watch?v=QmZ3W1d6LQI)
293
+
294
+ # Update copyright and license information
295
+
296
+ There is a CI job called **REUSE compliance / check** that runs on every pull
297
+ request and commit to verify that the *REUSE state* of all files are still
298
+ fine.
299
+
300
+ This means that all files need to have their license and copyright information
301
+ clearly stated. Ideally by having the standard curl source code header, with
302
+ the `SPDX-License-Identifier` included. If the header does not work, you can
303
+ use a smaller header or add the information for a specific file to the
304
+ `REUSE.toml` file.
305
+
306
+ You can manually verify the copyright and compliance status by running the
307
+ [REUSE helper tool](https://github.com/fsfe/reuse-tool): `reuse lint`
local-test-curl-delta-01/afc-curl/docs/CURL-DISABLE.md ADDED
@@ -0,0 +1,191 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ Copyright (C) Daniel Stenberg, <[email protected]>, et al.
3
+
4
+ SPDX-License-Identifier: curl
5
+ -->
6
+
7
+ # Code defines to disable features and protocols
8
+
9
+ ## `CURL_DISABLE_ALTSVC`
10
+
11
+ Disable support for Alt-Svc: HTTP headers.
12
+
13
+ ## `CURL_DISABLE_BINDLOCAL`
14
+
15
+ Disable support for binding the local end of connections.
16
+
17
+ ## `CURL_DISABLE_COOKIES`
18
+
19
+ Disable support for HTTP cookies.
20
+
21
+ ## `CURL_DISABLE_BASIC_AUTH`
22
+
23
+ Disable support for the Basic authentication methods.
24
+
25
+ ## `CURL_DISABLE_BEARER_AUTH`
26
+
27
+ Disable support for the Bearer authentication methods.
28
+
29
+ ## `CURL_DISABLE_DIGEST_AUTH`
30
+
31
+ Disable support for the Digest authentication methods.
32
+
33
+ ## `CURL_DISABLE_KERBEROS_AUTH`
34
+
35
+ Disable support for the Kerberos authentication methods.
36
+
37
+ ## `CURL_DISABLE_NEGOTIATE_AUTH`
38
+
39
+ Disable support for the negotiate authentication methods.
40
+
41
+ ## `CURL_DISABLE_AWS`
42
+
43
+ Disable **aws-sigv4** support.
44
+
45
+ ## `CURL_DISABLE_CA_SEARCH`
46
+
47
+ Disable unsafe CA bundle search in PATH on Windows.
48
+
49
+ ## `CURL_DISABLE_DICT`
50
+
51
+ Disable the DICT protocol
52
+
53
+ ## `CURL_DISABLE_DOH`
54
+
55
+ Disable DNS-over-HTTPS
56
+
57
+ ## `CURL_DISABLE_FILE`
58
+
59
+ Disable the FILE protocol
60
+
61
+ ## `CURL_DISABLE_FORM_API`
62
+
63
+ Disable the form API
64
+
65
+ ## `CURL_DISABLE_FTP`
66
+
67
+ Disable the FTP (and FTPS) protocol
68
+
69
+ ## `CURL_DISABLE_GETOPTIONS`
70
+
71
+ Disable the `curl_easy_options` API calls that lets users get information
72
+ about existing options to `curl_easy_setopt`.
73
+
74
+ ## `CURL_DISABLE_GOPHER`
75
+
76
+ Disable the GOPHER protocol.
77
+
78
+ ## `CURL_DISABLE_HEADERS_API`
79
+
80
+ Disable the HTTP header API.
81
+
82
+ ## `CURL_DISABLE_HSTS`
83
+
84
+ Disable the HTTP Strict Transport Security support.
85
+
86
+ ## `CURL_DISABLE_HTTP`
87
+
88
+ Disable the HTTP(S) protocols. Note that this then also disable HTTP proxy
89
+ support.
90
+
91
+ ## `CURL_DISABLE_HTTP_AUTH`
92
+
93
+ Disable support for all HTTP authentication methods.
94
+
95
+ ## `CURL_DISABLE_IMAP`
96
+
97
+ Disable the IMAP(S) protocols.
98
+
99
+ ## `CURL_DISABLE_LDAP`
100
+
101
+ Disable the LDAP(S) protocols.
102
+
103
+ ## `CURL_DISABLE_LDAPS`
104
+
105
+ Disable the LDAPS protocol.
106
+
107
+ ## `CURL_DISABLE_LIBCURL_OPTION`
108
+
109
+ Disable the --libcurl option from the curl tool.
110
+
111
+ ## `CURL_DISABLE_MIME`
112
+
113
+ Disable MIME support.
114
+
115
+ ## `CURL_DISABLE_MQTT`
116
+
117
+ Disable MQTT support.
118
+
119
+ ## `CURL_DISABLE_NETRC`
120
+
121
+ Disable the netrc parser.
122
+
123
+ ## `CURL_DISABLE_NTLM`
124
+
125
+ Disable support for NTLM.
126
+
127
+ ## `CURL_DISABLE_OPENSSL_AUTO_LOAD_CONFIG`
128
+
129
+ Disable the auto load config support in the OpenSSL backend.
130
+
131
+ ## `CURL_DISABLE_PARSEDATE`
132
+
133
+ Disable date parsing
134
+
135
+ ## `CURL_DISABLE_POP3`
136
+
137
+ Disable the POP3 protocol
138
+
139
+ ## `CURL_DISABLE_PROGRESS_METER`
140
+
141
+ Disable the built-in progress meter
142
+
143
+ ## `CURL_DISABLE_PROXY`
144
+
145
+ Disable support for proxies
146
+
147
+ ## `CURL_DISABLE_IPFS`
148
+
149
+ Disable the IPFS/IPNS protocols. This affects the curl tool only, where
150
+ IPFS/IPNS protocol support is implemented.
151
+
152
+ ## `CURL_DISABLE_RTSP`
153
+
154
+ Disable the RTSP protocol.
155
+
156
+ ## `CURL_DISABLE_SHA512_256`
157
+
158
+ Disable the SHA-512/256 hash algorithm.
159
+
160
+ ## `CURL_DISABLE_SHUFFLE_DNS`
161
+
162
+ Disable the shuffle DNS feature
163
+
164
+ ## `CURL_DISABLE_SMB`
165
+
166
+ Disable the SMB(S) protocols
167
+
168
+ ## `CURL_DISABLE_SMTP`
169
+
170
+ Disable the SMTP(S) protocols
171
+
172
+ ## `CURL_DISABLE_SOCKETPAIR`
173
+
174
+ Disable the use of `socketpair()` internally to allow waking up and canceling
175
+ `curl_multi_poll()`.
176
+
177
+ ## `CURL_DISABLE_TELNET`
178
+
179
+ Disable the TELNET protocol
180
+
181
+ ## `CURL_DISABLE_TFTP`
182
+
183
+ Disable the TFTP protocol
184
+
185
+ ## `CURL_DISABLE_VERBOSE_STRINGS`
186
+
187
+ Disable verbose strings and error messages.
188
+
189
+ ## `CURL_DISABLE_WEBSOCKETS`
190
+
191
+ Disable the WebSocket protocols.
local-test-curl-delta-01/afc-curl/docs/CURLDOWN.md ADDED
@@ -0,0 +1,168 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ Copyright (C) Daniel Stenberg, <[email protected]>, et al.
3
+
4
+ SPDX-License-Identifier: curl
5
+ -->
6
+
7
+ # curldown
8
+
9
+ A markdown-like syntax for libcurl man pages.
10
+
11
+ ## Purpose
12
+
13
+ A text format for writing libcurl documentation in the shape of man pages.
14
+
15
+ Make it easier for users to contribute and write documentation. A format that
16
+ is easier on the eye in its source format.
17
+
18
+ Make it harder to do syntactical mistakes.
19
+
20
+ Use a format that allows creating man pages that end up looking exactly like
21
+ the man pages did when we wrote them in nroff format.
22
+
23
+ Take advantage of the fact that people these days are accustomed to markdown
24
+ by using a markdown-like syntax.
25
+
26
+ This allows us to fix issues in the nroff format easier since now we generate
27
+ them. For example: escaping minus to prevent them from being turned into
28
+ Unicode by man.
29
+
30
+ Generate nroff output that looks (next to) *identical* to the previous files,
31
+ so that the look, existing test cases, HTML conversions, existing
32
+ infrastructure etc remain mostly intact.
33
+
34
+ Contains meta-data in a structured way to allow better output (for example the
35
+ see also information) and general awareness of what the file is about.
36
+
37
+ ## File extension
38
+
39
+ Since curldown looks similar to markdown, we use `.md` extensions on the
40
+ files.
41
+
42
+ ## Conversion
43
+
44
+ Convert **from curldown to nroff** with `cd2nroff`. Generates nroff man pages.
45
+
46
+ Convert **from nroff to curldown** with `nroff2cd`. This is only meant to be
47
+ used for the initial conversion to curldown and should ideally never be needed
48
+ again.
49
+
50
+ Convert, check or clean up an existing curldown to nicer, better, cleaner
51
+ curldown with **cd2cd**.
52
+
53
+ Mass-convert all curldown files to nroff in specified directories with
54
+ `cdall`:
55
+
56
+ cdall [dir1] [dir2] [dir3] ..
57
+
58
+ ## Known issues
59
+
60
+ The `cd2nroff` tool does not yet handle *italics* or **bold** where the start
61
+ and the end markers are used on separate lines.
62
+
63
+ The `nroff2cd` tool generates code style quotes for all `.fi` sections since
64
+ the nroff format does not carry a distinction.
65
+
66
+ # Format
67
+
68
+ Each curldown starts with a header with meta-data:
69
+
70
+ ---
71
+ c: Copyright (C) Daniel Stenberg, <[email protected]>, et al.
72
+ SPDX-License-Identifier: curl
73
+ Title: CURLOPT_AWS_SIGV4
74
+ Section: 3
75
+ Source: libcurl
76
+ Protocol:
77
+ - HTTP
78
+ See-also:
79
+ - CURLOPT_HEADEROPT (3)
80
+ - CURLOPT_HTTPAUTH (3)
81
+ TLS-backend:
82
+ - [name]
83
+ Added-in: [version or "n/a"]
84
+ ---
85
+
86
+ All curldown files *must* have all the headers present and at least one
87
+ `See-also:` entry specified.
88
+
89
+ If the man page is for section 3 (library related). The `Protocol` list must
90
+ contain at least one protocol, which can be `*` if the option is virtually for
91
+ everything. If `*` is used, it must be the only listed protocol. Recognized
92
+ protocols are either URL schemes (in uppercase), `TLS` or `TCP`.
93
+
94
+ If the `Protocol` list contains `TLS`, then there must also be a `TLS-backend`
95
+ list, specifying `All` or a list of what TLS backends that work with this
96
+ option. The available TLS backends are:
97
+
98
+ - `BearSSL`
99
+ - `GnuTLS`
100
+ - `mbedTLS`
101
+ - `OpenSSL` (also covers BoringSSL, LibreSSL, quictls, AWS-LC and AmiSSL)
102
+ - `rustls`
103
+ - `Schannel`
104
+ - `Secure Transport`
105
+ - `wolfSSL`
106
+ - `All`: all TLS backends
107
+
108
+ Following the header in the file, is the manual page using markdown-like
109
+ syntax:
110
+
111
+ ~~~
112
+ # NAME
113
+ a page - this is a page descriving something
114
+
115
+ # SYNOPSIS
116
+ ~~~c
117
+ #include <curl/curl.h>
118
+
119
+ CURLcode curl_easy_setopt(CURL *handle, CURLOPT_AWS_SIGV4, char *param);
120
+ ~~~
121
+ ~~~
122
+
123
+ Quoted source code should start with `~~~c` and end with `~~~` while regular
124
+ quotes can start with `~~~` or just be indented with 4 spaces.
125
+
126
+ Headers at top-level `#` get converted to `.SH`.
127
+
128
+ `nroff2cd` supports the `##` next level header which gets converted to `.IP`.
129
+
130
+ Write bold words or phrases within `**` like:
131
+
132
+ This is a **bold** word.
133
+
134
+ Write italics like:
135
+
136
+ This is *italics*.
137
+
138
+ Due to how man pages do not support backticks especially formatted, such
139
+ occurrences in the source are instead just using italics in the generated
140
+ output:
141
+
142
+ This `word` appears in italics.
143
+
144
+ When generating the nroff output, the tooling removes superfluous newlines,
145
+ meaning they can be used freely in the source file to make the text more
146
+ readable.
147
+
148
+ To make sure curldown documents render correctly as markdown, all literal
149
+ occurrences of `<` or `>` need to be escaped by a leading backslash.
150
+
151
+ ## Generating contents
152
+
153
+ `# %PROTOCOLS%` - inserts a **PROTOCOLS** section based on the metadata
154
+ provided in the header.
155
+
156
+ `# %AVAILABILITY%` - inserts an **AVAILABILITY** section based on the metadata
157
+ provided in the header.
158
+
159
+ ## Symbols
160
+
161
+ All mentioned curl symbols that have their own man pages, like
162
+ `curl_easy_perform(3)` are automatically rendered using italics in the output
163
+ without having to enclose it with asterisks. This helps ensuring that they get
164
+ converted to links properly later in the HTML version on the website, as
165
+ converted with `roffit`. This makes the curldown text easier to read even when
166
+ mentioning many curl symbols.
167
+
168
+ This auto-linking works for patterns matching `(lib|)curl[^ ]*(3)`.
local-test-curl-delta-01/afc-curl/docs/DEPRECATE.md ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ Copyright (C) Daniel Stenberg, <[email protected]>, et al.
3
+
4
+ SPDX-License-Identifier: curl
5
+ -->
6
+
7
+ # Items to be removed from future curl releases
8
+
9
+ If any of these deprecated features is a cause for concern for you, please
10
+ email the
11
+ [curl-library mailing list](https://lists.haxx.se/listinfo/curl-library)
12
+ as soon as possible and explain to us why this is a problem for you and
13
+ how your use case cannot be satisfied properly using a workaround.
14
+
15
+ ## TLS libraries without 1.3 support
16
+
17
+ curl drops support for TLS libraries without TLS 1.3 capability after May
18
+ 2025.
19
+
20
+ It requires that a curl build using the library should be able to negotiate
21
+ and use TLS 1.3, or else it is not good enough.
22
+
23
+ As of May 2024, the libraries that need to get fixed to remain supported after
24
+ May 2025 are: BearSSL and Secure Transport.
25
+
26
+ ## Hyper
27
+
28
+ Hyper is an alternative HTTP backend for curl. It uses the hyper library and
29
+ could in theory be used for HTTP/1, HTTP/2 and even HTTP/3 in the future with
30
+ curl.
31
+
32
+ The original plan and goal was that we would add this HTTP alternative (using
33
+ a memory-safe library) and that users could eventually build and use libcurl
34
+ exactly as previously but with parts of the core being more memory-safe.
35
+
36
+ The hyper implementation ran into some snags and 10-15 tests and HTTP/2
37
+ support have remained disabled with hyper. For these reasons, hyper support
38
+ has remained tagged EXPERIMENTAL.
39
+
40
+ It is undoubtedly hard work to fix these remaining problems, as they typically
41
+ require both rust and C knowledge in addition to deep HTTP familiarity. There
42
+ does not seem to be that many persons interested or available for this
43
+ challenge. Meanwhile, there is little if any demand for hyper from existing
44
+ (lib)curl users.
45
+
46
+ Finally: having support for hyper in curl has a significant cost: we need to
47
+ maintain and develop a lot of functionality and tests twice to make sure
48
+ libcurl works identically using either HTTP backend.
49
+
50
+ The only way to keep hyper support in curl is to give it a good polish by
51
+ someone with time, skill and energy to spend on this task.
52
+
53
+ Unless a significant overhaul has proven to be in progress, hyper support is
54
+ removed from curl in January 2025.
55
+
56
+ ## Past removals
57
+
58
+ - Pipelining
59
+ - axTLS
60
+ - PolarSSL
61
+ - NPN
62
+ - Support for systems without 64-bit data types
63
+ - NSS
64
+ - gskit
65
+ - MinGW v1
66
+ - NTLM_WB
67
+ - space-separated `NOPROXY` patterns
local-test-curl-delta-01/afc-curl/docs/DISTROS.md ADDED
@@ -0,0 +1,286 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ Copyright (C) Daniel Stenberg, <[email protected]>, et al.
3
+
4
+ SPDX-License-Identifier: curl
5
+ -->
6
+
7
+ # curl distros
8
+
9
+ <!-- markdown-link-check-disable -->
10
+
11
+ Lots of organizations distribute curl packages to end users. This is a
12
+ collection of pointers to where to learn more about curl on and with each
13
+ distro. Those marked *Rolling Release* typically run the latest version of curl
14
+ and are therefore less likely to have back-ported patches to older versions.
15
+
16
+ We discuss curl distro issues, patches and collaboration on the [curl-distros
17
+ mailing list](https://lists.haxx.se/listinfo/curl-distros) ([list
18
+ archives](https://curl.se/mail/list.cgi?list=curl-distros)).
19
+
20
+ ## AlmaLinux
21
+
22
+ - curl package source and patches: https://git.almalinux.org/rpms/curl/
23
+ - curl issues: https://bugs.almalinux.org/view_all_bug_page.php click Category and choose curl
24
+ - curl security: https://errata.almalinux.org/ search for curl
25
+
26
+ ## Alpine Linux
27
+
28
+ - curl: https://pkgs.alpinelinux.org/package/edge/main/x86_64/curl
29
+ - curl issues: https://gitlab.alpinelinux.org/alpine/aports/-/issues
30
+ - curl security: https://security.alpinelinux.org/srcpkg/curl
31
+ - curl package source and patches: https://gitlab.alpinelinux.org/alpine/aports/-/tree/master/main/curl
32
+
33
+ ## Alt Linux
34
+
35
+ - curl: http://www.sisyphus.ru/srpm/Sisyphus/curl
36
+ - curl issues: https://packages.altlinux.org/en/sisyphus/srpms/curl/issues/
37
+ - curl patches: https://git.altlinux.org/gears/c/curl.git?p=curl.git;a=tree;f=.gear
38
+
39
+ ## Arch Linux
40
+
41
+ *Rolling Release*
42
+
43
+ - curl: https://archlinux.org/packages/core/x86_64/curl/
44
+ - curl issues: https://gitlab.archlinux.org/archlinux/packaging/packages/curl/-/issues
45
+ - curl security: https://security.archlinux.org/package/curl
46
+ - curl wiki: https://wiki.archlinux.org/title/CURL
47
+
48
+ ## Buildroot
49
+
50
+ *Rolling Release*
51
+
52
+ - curl package source and patches: https://git.buildroot.net/buildroot/tree/package/libcurl
53
+ - curl issues: https://bugs.buildroot.org/buglist.cgi?quicksearch=curl
54
+
55
+ ## Chimera
56
+
57
+ - curl package source and patches: https://github.com/chimera-linux/cports/tree/master/main/curl
58
+
59
+ ## Clear Linux
60
+
61
+ *Rolling Release*
62
+
63
+ - curl: https://github.com/clearlinux-pkgs/curl
64
+ - curl issues: https://github.com/clearlinux/distribution/issues
65
+
66
+ ## Conary
67
+
68
+ - curl: https://github.com/conan-io/conan-center-index/tree/master/recipes/libcurl
69
+ - curl issues: https://github.com/conan-io/conan-center-index/issues
70
+ - curl patches: https://github.com/conan-io/conan-center-index/tree/master/recipes/libcurl (in `all/patches/*`, if any)
71
+
72
+ ## conda-forge
73
+
74
+ - curl: https://github.com/conda-forge/curl-feedstock
75
+ - curl issues: https://github.com/conda-forge/curl-feedstock/issues
76
+
77
+ ## CRUX
78
+
79
+ - curl: https://crux.nu/portdb/?a=search&q=curl
80
+ - curl issues: https://git.crux.nu/ports/core/issues/?type=all&state=open&q=curl
81
+
82
+ ## curl-for-win
83
+
84
+ (this is the official curl binaries for Windows shipped by the curl project)
85
+
86
+ *Rolling Release*
87
+
88
+ - curl: https://curl.se/windows/
89
+ - curl patches: https://github.com/curl/curl-for-win/blob/main/curl.patch (if any)
90
+ - build-specific issues: https://github.com/curl/curl-for-win/issues
91
+
92
+ Issues and patches for this are managed in the main curl project.
93
+
94
+ ## Cygwin
95
+
96
+ - curl: https://cygwin.com/cgit/cygwin-packages/curl/tree/curl.cygport
97
+ - curl patches: https://cygwin.com/cgit/cygwin-packages/curl/tree
98
+ - curl issues: https://inbox.sourceware.org/cygwin/?q=s%3Acurl
99
+
100
+ ## Cygwin (cross mingw64)
101
+
102
+ - mingw64-x86_64-curl: https://cygwin.com/cgit/cygwin-packages/mingw64-x86_64-curl/tree/mingw64-x86_64-curl.cygport
103
+ - mingw64-x86_64-curl patches: https://cygwin.com/cgit/cygwin-packages/mingw64-x86_64-curl/tree
104
+ - mingw64-x86_64-curl issues: https://inbox.sourceware.org/cygwin/?q=s%3Amingw64-x86_64-curl
105
+
106
+ ## Debian
107
+
108
+ - curl: https://tracker.debian.org/pkg/curl
109
+ - curl issues: https://bugs.debian.org/cgi-bin/pkgreport.cgi?pkg=curl
110
+ - curl patches: https://udd.debian.org/patches.cgi?src=curl
111
+ - curl patches: https://salsa.debian.org/debian/curl (in debian/* branches, inside the folder debian/patches)
112
+
113
+ ## Fedora
114
+
115
+ - curl: https://src.fedoraproject.org/rpms/curl
116
+ - curl issues: [bugzilla](https://bugzilla.redhat.com/buglist.cgi?bug_status=NEW&bug_status=ASSIGNED&classification=Fedora&product=Fedora&product=Fedora%20EPEL&component=curl)
117
+ - curl patches: [list of patches in package git](https://src.fedoraproject.org/rpms/curl/tree/rawhide)
118
+
119
+ ## FreeBSD
120
+
121
+ - curl: https://cgit.freebsd.org/ports/tree/ftp/curl
122
+ - curl patches: https://cgit.freebsd.org/ports/tree/ftp/curl
123
+ - curl issues: https://bugs.freebsd.org/bugzilla/buglist.cgi?bug_status=__open__&order=Importance&product=Ports%20%26%20Packages&query_format=advanced&short_desc=curl&short_desc_type=allwordssubstr
124
+
125
+ ## Gentoo Linux
126
+
127
+ *Rolling Release*
128
+
129
+ - curl: https://packages.gentoo.org/packages/net-misc/curl
130
+ - curl issues: https://bugs.gentoo.org/buglist.cgi?quicksearch=net-misc/curl
131
+ - curl package sources and patches: https://gitweb.gentoo.org/repo/gentoo.git/tree/net-misc/curl/
132
+
133
+ ## GNU Guix
134
+
135
+ *Rolling Release*
136
+
137
+ - curl: https://git.savannah.gnu.org/gitweb/?p=guix.git;a=blob;f=gnu/packages/curl.scm;hb=HEAD
138
+ - curl issues: https://issues.guix.gnu.org/search?query=curl
139
+
140
+ ## Homebrew
141
+
142
+ *Rolling Release*
143
+
144
+ - curl: https://formulae.brew.sh/formula/curl
145
+
146
+ Homebrew's policy is that all patches and issues should be submitted upstream
147
+ unless it is specific to Homebrew's way of packaging software.
148
+
149
+ ## MacPorts
150
+
151
+ *Rolling Release*
152
+
153
+ - curl: https://github.com/macports/macports-ports/tree/master/net/curl
154
+ - curl issues: https://trac.macports.org/query?0_port=curl&0_port_mode=%7E&0_status=%21closed
155
+ - curl patches: https://github.com/macports/macports-ports/tree/master/net/curl/files
156
+
157
+ ## Mageia
158
+
159
+ - curl: https://svnweb.mageia.org/packages/cauldron/curl/current/SPECS/curl.spec?view=markup
160
+ - curl issues: https://bugs.mageia.org/buglist.cgi?bug_status=NEW&bug_status=UNCONFIRMED&bug_status=NEEDINFO&bug_status=UPSTREAM&bug_status=ASSIGNED&component=RPM%20Packages&f1=cf_rpmpkg&list_id=176576&o1=casesubstring&product=Mageia&query_format=advanced&v1=curl
161
+ - curl patches: https://svnweb.mageia.org/packages/cauldron/curl/current/SOURCES/
162
+ - curl patches in stable distro releases: https://svnweb.mageia.org/packages/updates/<STABLE_VERSION>/curl/current/SOURCES/
163
+ - curl security: https://advisories.mageia.org/src_curl.html
164
+
165
+ ## MSYS2
166
+
167
+ *Rolling Release*
168
+
169
+ - curl: https://github.com/msys2/MSYS2-packages/tree/master/curl
170
+ - curl issues: https://github.com/msys2/MSYS2-packages/issues
171
+ - curl patches: https://github.com/msys2/MSYS2-packages/tree/master/curl (`*.patch`)
172
+
173
+ ## MSYS2 (mingw-w64)
174
+
175
+ *Rolling Release*
176
+
177
+ - curl: https://github.com/msys2/MINGW-packages/tree/master/mingw-w64-curl
178
+ - curl issues: https://github.com/msys2/MINGW-packages/issues
179
+ - curl patches: https://github.com/msys2/MINGW-packages/tree/master/mingw-w64-curl (`*.patch`)
180
+
181
+ ## Muldersoft
182
+
183
+ *Rolling Release*
184
+
185
+ - curl: https://github.com/lordmulder/cURL-build-win32
186
+ - curl issues: https://github.com/lordmulder/cURL-build-win32/issues
187
+ - curl patches: https://github.com/lordmulder/cURL-build-win32/tree/master/patch
188
+
189
+ ## NixOS
190
+
191
+ - curl: https://github.com/NixOS/nixpkgs/blob/master/pkgs/tools/networking/curl/default.nix
192
+ - curl issues: https://github.com/NixOS/nixpkgs
193
+
194
+ nixpkgs is the package repository used by the NixOS Linux distribution, but
195
+ can also be used on other distributions
196
+
197
+ ## OmniOS
198
+
199
+ - curl: https://github.com/omniosorg/omnios-build/tree/master/build/curl
200
+ - curl issues: https://github.com/omniosorg/omnios-build/issues
201
+ - curl patches: https://github.com/omniosorg/omnios-build/tree/master/build/curl/patches
202
+
203
+ ## OpenIndiana
204
+
205
+ - curl: https://github.com/OpenIndiana/oi-userland/tree/oi/hipster/components/web/curl
206
+ - curl issues: https://www.illumos.org/projects/openindiana/issues
207
+ - curl patches: https://github.com/OpenIndiana/oi-userland/tree/oi/hipster/components/web/curl/patches
208
+
209
+ ## OpenSUSE
210
+
211
+ - curl source and patches: https://build.opensuse.org/package/show/openSUSE%3AFactory/curl
212
+
213
+ ## Oracle Solaris
214
+
215
+ - curl: https://github.com/oracle/solaris-userland/tree/master/components/curl
216
+ - curl issues: https://support.oracle.com/ (requires support contract)
217
+ - curl patches: https://github.com/oracle/solaris-userland/tree/master/components/curl/patches
218
+
219
+ ## OpenEmbedded / Yocto Project
220
+
221
+ *Rolling Release*
222
+
223
+ - curl: https://layers.openembedded.org/layerindex/recipe/5765/
224
+ - curl issues: https://bugzilla.yoctoproject.org/
225
+ - curl patches: https://git.openembedded.org/openembedded-core/tree/meta/recipes-support/curl
226
+
227
+ ## PLD Linux
228
+
229
+ - curl package source and patches: https://github.com/pld-linux/curl
230
+ - curl issues: https://bugs.launchpad.net/pld-linux?field.searchtext=curl&search=Search&field.status%3Alist=NEW&field.status%3Alist=INCOMPLETE_WITH_RESPONSE&field.status%3Alist=INCOMPLETE_WITHOUT_RESPONSE&field.status%3Alist=CONFIRMED&field.status%3Alist=TRIAGED&field.status%3Alist=INPROGRESS&field.status%3Alist=FIXCOMMITTED&field.assignee=&field.bug_reporter=&field.omit_dupes=on&field.has_patch=&field.has_no_package=
231
+
232
+ ## pkgsrc
233
+
234
+ - curl: https://github.com/NetBSD/pkgsrc/tree/trunk/www/curl
235
+ - curl issues: https://github.com/NetBSD/pkgsrc/issues
236
+ - curl patches: https://github.com/NetBSD/pkgsrc/tree/trunk/www/curl/patches
237
+
238
+ ## Red Hat Enterprise Linux / CentOS Stream
239
+
240
+ - curl: https://kojihub.stream.centos.org/koji/packageinfo?packageID=217
241
+ - curl issues: https://issues.redhat.com/secure/CreateIssueDetails!init.jspa?pid=12332745&issuetype=1&components=12377466&priority=10300
242
+ - curl patches: https://gitlab.com/redhat/centos-stream/rpms/curl
243
+
244
+ ## Rocky Linux
245
+
246
+ - curl: https://git.rockylinux.org/staging/rpms/curl/-/blob/r9/SPECS/curl.spec
247
+ - curl issues: https://bugs.rockylinux.org
248
+ - curl patches: https://git.rockylinux.org/staging/rpms/curl/-/tree/r9/SOURCES
249
+
250
+ ## SerenityOS
251
+
252
+ - curl: https://github.com/SerenityOS/serenity/tree/master/Ports/curl
253
+ - curl issues: https://github.com/SerenityOS/serenity/issues?q=label%3Aports
254
+ - curl patches: https://github.com/SerenityOS/serenity/tree/master/Ports/curl/patches
255
+
256
+ ## SmartOS
257
+
258
+ - curl: https://github.com/TritonDataCenter/illumos-extra/tree/master/curl
259
+ - curl issues: https://github.com/TritonDataCenter/illumos-extra/issues
260
+ - curl patches: https://github.com/TritonDataCenter/illumos-extra/tree/master/curl/Patches
261
+
262
+ ## SPACK
263
+
264
+ - curl package source and patches: https://github.com/spack/spack/tree/develop/var/spack/repos/builtin/packages/curl
265
+
266
+ ## vcpkg
267
+
268
+ *Rolling Release*
269
+
270
+ - curl: https://github.com/microsoft/vcpkg/tree/master/ports/curl
271
+ - curl issues: https://github.com/microsoft/vcpkg/issues
272
+ - curl patches: https://github.com/microsoft/vcpkg/tree/master/ports/curl (`*.patch`)
273
+
274
+ ## Void Linux
275
+
276
+ *Rolling Release*
277
+
278
+ - curl: https://github.com/void-linux/void-packages/tree/master/srcpkgs/curl
279
+ - curl issues: https://github.com/void-linux/void-packages/issues
280
+ - curl patches: https://github.com/void-linux/void-packages/tree/master/srcpkgs/curl/patches
281
+
282
+ ## Wolfi
283
+
284
+ *Rolling Release*
285
+
286
+ - curl: https://github.com/wolfi-dev/os/blob/main/curl.yaml
local-test-curl-delta-01/afc-curl/docs/EARLY-RELEASE.md ADDED
@@ -0,0 +1,73 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--
2
+ Copyright (C) Daniel Stenberg, <[email protected]>, et al.
3
+
4
+ SPDX-License-Identifier: curl
5
+ -->
6
+
7
+ # How to determine if an early patch release is warranted
8
+
9
+ In the curl project we do releases every 8 weeks. Unless we break the cycle
10
+ and do an early patch release.
11
+
12
+ We do frequent releases partly to always have the next release "not too far
13
+ away".
14
+
15
+ ## Bugfix
16
+
17
+ During the release cycle, and especially in the beginning of a new cycle (the
18
+ so-called "cool down" period), there are times when a bug is reported and
19
+ after it has been subsequently fixed correctly, the question might be asked:
20
+ is this bug and associated fix important enough for an early patch release?
21
+
22
+ The question can only be properly asked when a fix has been created and landed
23
+ in the git master branch.
24
+
25
+ ## Early release
26
+
27
+ An early patch release means that we ship a new, complete and full release
28
+ called `major.minor.patch` where the `patch` part is increased by one since
29
+ the previous release. A curl release is a curl release. There is no small or
30
+ big and we never release just a patch. There is only "release".
31
+
32
+ ## Questions to ask
33
+
34
+ - Is there a security advisory rated high or critical?
35
+ - Is there a data corruption bug?
36
+ - Did the bug cause an API/ABI breakage?
37
+ - Does the problem annoy a significant share of the user population?
38
+
39
+ If the answer is yes to one or more of the above, an early release might be
40
+ warranted.
41
+
42
+ More questions to ask ourselves when doing the assessment if the answers to
43
+ the three ones above are all 'no'.
44
+
45
+ - Does the bug cause curl to prematurely terminate?
46
+ - How common is the affected buggy option/feature/protocol/platform to get
47
+ used?
48
+ - How large is the estimated impacted user base?
49
+ - Does the bug block something crucial for applications or other adoption of
50
+ curl "out there" ?
51
+ - Does the bug cause problems for curl developers or others on "the curl
52
+ team" ?
53
+ - Is the bug limited to the curl tool only? That might have a smaller impact
54
+ than a bug also present in libcurl.
55
+ - Is there a (decent) workaround?
56
+ - Is it a regression? Is the bug introduced in this release?
57
+ - Can the bug be fixed "easily" by applying a patch?
58
+ - Does the bug break the build? Most users do not build curl themselves.
59
+ - How long is it until the already scheduled next release?
60
+ - Can affected users safely rather revert to a former release until the next
61
+ scheduled release?
62
+ - Is it a performance regression with no functionality side-effects? If so it
63
+ has to be substantial.
64
+
65
+ ## If an early release is deemed necessary
66
+
67
+ Unless done for security or similarly important reasons, an early release
68
+ should not be done within a week of the previous release.
69
+
70
+ This, to enable us to collect and bundle more fixes into the same release to
71
+ make the release more worthwhile for everyone and to allow more time for fixes
72
+ to settle and things to get tested. Getting a release in shape and done in
73
+ style is work that should not be rushed.