1/***************************************************************************
2 * _ _ ____ _
3 * Project ___| | | | _ \| |
4 * / __| | | | |_) | |
5 * | (__| |_| | _ <| |___
6 * \___|\___/|_| \_\_____|
7 *
8 * Copyright (C) 2017, Daniel Stenberg, <daniel.se>, 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.haxx.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 ***************************************************************************/
22#include "test.h"
23#include "memdebug.h"
24#include <limits.h>
25
26/* This source code is generated by mk-lib1521.pl ! */
27
28struct data {
29 char *blaha;
30};
31
32#define LO LONG_MIN
33#define HI LONG_MAX
34#define OFF_LO (curl_off_t) LO
35#define OFF_HI (curl_off_t) ULONG_MAX
36#define OFF_NO (curl_off_t) 0
37
38/* Unexpected error.
39 CURLE_NOT_BUILT_IN - means disabled at build
40 CURLE_UNKNOWN_OPTION - means no such option (anymore?)
41 CURLE_SSL_ENGINE_NOTFOUND - set unknown ssl engine
42 CURLE_UNSUPPORTED_PROTOCOL - set bad HTTP version
43 CURLE_BAD_FUNCTION_ARGUMENT - unsupported value
44 */
45#define UNEX(x) ((x) && \
46 ((x) != CURLE_NOT_BUILT_IN) && \
47 ((x) != CURLE_UNKNOWN_OPTION) && \
48 ((x) != CURLE_SSL_ENGINE_NOTFOUND) && \
49 ((x) != CURLE_UNSUPPORTED_PROTOCOL) && \
50 ((x) != CURLE_BAD_FUNCTION_ARGUMENT) )
51
52static size_t writecb(char *buffer, size_t size, size_t nitems,
53 void *outstream)
54{
55 (void)buffer;
56 (void)size;
57 (void)nitems;
58 (void)outstream;
59 return 0;
60}
61
62static size_t readcb(char *buffer,
63 size_t size,
64 size_t nitems,
65 void *instream)
66{
67 (void)buffer;
68 (void)size;
69 (void)nitems;
70 (void)instream;
71 return 0;
72}
73
74static int err(const char *name, CURLcode val, int lineno)
75{
76 printf("CURLOPT_%s returned %d, \"%s\" on line %d\n",
77 name, val, curl_easy_strerror(val), lineno);
78 return (int)val;
79}
80
81static int geterr(const char *name, CURLcode val, int lineno)
82{
83 printf("CURLINFO_%s returned %d, \"%s\" on line %d\n",
84 name, val, curl_easy_strerror(val), lineno);
85 return (int)val;
86}
87
88static curl_progress_callback progresscb;
89static curl_write_callback headercb;
90static curl_debug_callback debugcb;
91static curl_trailer_callback trailercb;
92static curl_ssl_ctx_callback ssl_ctx_cb;
93static curl_ioctl_callback ioctlcb;
94static curl_sockopt_callback sockoptcb;
95static curl_opensocket_callback opensocketcb;
96static curl_seek_callback seekcb;
97static curl_sshkeycallback ssh_keycb;
98static curl_chunk_bgn_callback chunk_bgn_cb;
99static curl_chunk_end_callback chunk_end_cb;
100static curl_fnmatch_callback fnmatch_cb;
101static curl_closesocket_callback closesocketcb;
102static curl_xferinfo_callback xferinfocb;
103static curl_resolver_start_callback resolver_start_cb;
104
105int test(char *URL)
106{
107 CURL *curl = NULL;
108 CURL *dep = NULL;
109 CURLSH *share = NULL;
110 char errorbuffer[CURL_ERROR_SIZE];
111 void *conv_from_network_cb = NULL;
112 void *conv_to_network_cb = NULL;
113 void *conv_from_utf8_cb = NULL;
114 void *interleavecb = NULL;
115 char *stringpointerextra = (char *)"moooo";
116 struct curl_slist *slist = NULL;
117 struct curl_httppost *httppost = NULL;
118 curl_mime *mimepost = NULL;
119 FILE *stream = stderr;
120 struct data object;
121 char *charp;
122 long val;
123 curl_off_t oval;
124 double dval;
125 curl_socket_t sockfd;
126 struct curl_certinfo *certinfo;
127 struct curl_tlssessioninfo *tlssession;
128 CURLcode res = CURLE_OK;
129 (void)URL; /* not used */
130 global_init(CURL_GLOBAL_ALL);
131 easy_init(dep);
132 easy_init(curl);
133 share = curl_share_init();
134 if(!share) {
135 res = CURLE_OUT_OF_MEMORY;
136 goto test_cleanup;
137 }
138
139 res = curl_easy_setopt(curl, CURLOPT_WRITEDATA, &object);
140 if(UNEX(res)) {
141 err("WRITEDATA", res, __LINE__); goto test_cleanup; }
142 res = curl_easy_setopt(curl, CURLOPT_WRITEDATA, NULL);
143 if(UNEX(res)) {
144 err("WRITEDATA", res, __LINE__); goto test_cleanup; }
145 res = curl_easy_setopt(curl, CURLOPT_URL, "string");
146 if(UNEX(res)) {
147 err("URL", res, __LINE__); goto test_cleanup; }
148 res = curl_easy_setopt(curl, CURLOPT_URL, NULL);
149 if(UNEX(res)) {
150 err("URL", res, __LINE__); goto test_cleanup; }
151 res = curl_easy_setopt(curl, CURLOPT_PORT, 0L);
152 if(UNEX(res)) {
153 err("PORT", res, __LINE__); goto test_cleanup; }
154 res = curl_easy_setopt(curl, CURLOPT_PORT, 22L);
155 if(UNEX(res)) {
156 err("PORT", res, __LINE__); goto test_cleanup; }
157 res = curl_easy_setopt(curl, CURLOPT_PORT, LO);
158 if(UNEX(res)) {
159 err("PORT", res, __LINE__); goto test_cleanup; }
160 res = curl_easy_setopt(curl, CURLOPT_PORT, HI);
161 if(UNEX(res)) {
162 err("PORT", res, __LINE__); goto test_cleanup; }
163 res = curl_easy_setopt(curl, CURLOPT_PROXY, "string");
164 if(UNEX(res)) {
165 err("PROXY", res, __LINE__); goto test_cleanup; }
166 res = curl_easy_setopt(curl, CURLOPT_PROXY, NULL);
167 if(UNEX(res)) {
168 err("PROXY", res, __LINE__); goto test_cleanup; }
169 res = curl_easy_setopt(curl, CURLOPT_USERPWD, "string");
170 if(UNEX(res)) {
171 err("USERPWD", res, __LINE__); goto test_cleanup; }
172 res = curl_easy_setopt(curl, CURLOPT_USERPWD, NULL);
173 if(UNEX(res)) {
174 err("USERPWD", res, __LINE__); goto test_cleanup; }
175 res = curl_easy_setopt(curl, CURLOPT_PROXYUSERPWD, "string");
176 if(UNEX(res)) {
177 err("PROXYUSERPWD", res, __LINE__); goto test_cleanup; }
178 res = curl_easy_setopt(curl, CURLOPT_PROXYUSERPWD, NULL);
179 if(UNEX(res)) {
180 err("PROXYUSERPWD", res, __LINE__); goto test_cleanup; }
181 res = curl_easy_setopt(curl, CURLOPT_RANGE, "string");
182 if(UNEX(res)) {
183 err("RANGE", res, __LINE__); goto test_cleanup; }
184 res = curl_easy_setopt(curl, CURLOPT_RANGE, NULL);
185 if(UNEX(res)) {
186 err("RANGE", res, __LINE__); goto test_cleanup; }
187 res = curl_easy_setopt(curl, CURLOPT_READDATA, &object);
188 if(UNEX(res)) {
189 err("READDATA", res, __LINE__); goto test_cleanup; }
190 res = curl_easy_setopt(curl, CURLOPT_READDATA, NULL);
191 if(UNEX(res)) {
192 err("READDATA", res, __LINE__); goto test_cleanup; }
193 res = curl_easy_setopt(curl, CURLOPT_ERRORBUFFER, errorbuffer);
194 if(UNEX(res)) {
195 err("ERRORBUFFER", res, __LINE__); goto test_cleanup; }
196 res = curl_easy_setopt(curl, CURLOPT_ERRORBUFFER, NULL);
197 if(UNEX(res)) {
198 err("ERRORBUFFER", res, __LINE__); goto test_cleanup; }
199 res = curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION,
200 writecb);
201 if(UNEX(res)) {
202 err("WRITEFUNCTION", res, __LINE__); goto test_cleanup; }
203 res = curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, NULL);
204 if(UNEX(res)) {
205 err("WRITEFUNCTION", res, __LINE__); goto test_cleanup; }
206 res = curl_easy_setopt(curl, CURLOPT_READFUNCTION,
207 readcb);
208 if(UNEX(res)) {
209 err("READFUNCTION", res, __LINE__); goto test_cleanup; }
210 res = curl_easy_setopt(curl, CURLOPT_READFUNCTION, NULL);
211 if(UNEX(res)) {
212 err("READFUNCTION", res, __LINE__); goto test_cleanup; }
213 res = curl_easy_setopt(curl, CURLOPT_TIMEOUT, 0L);
214 if(UNEX(res)) {
215 err("TIMEOUT", res, __LINE__); goto test_cleanup; }
216 res = curl_easy_setopt(curl, CURLOPT_TIMEOUT, 22L);
217 if(UNEX(res)) {
218 err("TIMEOUT", res, __LINE__); goto test_cleanup; }
219 res = curl_easy_setopt(curl, CURLOPT_TIMEOUT, LO);
220 if(UNEX(res)) {
221 err("TIMEOUT", res, __LINE__); goto test_cleanup; }
222 res = curl_easy_setopt(curl, CURLOPT_TIMEOUT, HI);
223 if(UNEX(res)) {
224 err("TIMEOUT", res, __LINE__); goto test_cleanup; }
225 res = curl_easy_setopt(curl, CURLOPT_INFILESIZE, 0L);
226 if(UNEX(res)) {
227 err("INFILESIZE", res, __LINE__); goto test_cleanup; }
228 res = curl_easy_setopt(curl, CURLOPT_INFILESIZE, 22L);
229 if(UNEX(res)) {
230 err("INFILESIZE", res, __LINE__); goto test_cleanup; }
231 res = curl_easy_setopt(curl, CURLOPT_INFILESIZE, LO);
232 if(UNEX(res)) {
233 err("INFILESIZE", res, __LINE__); goto test_cleanup; }
234 res = curl_easy_setopt(curl, CURLOPT_INFILESIZE, HI);
235 if(UNEX(res)) {
236 err("INFILESIZE", res, __LINE__); goto test_cleanup; }
237 (void)curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE, 0);
238 res = curl_easy_setopt(curl, CURLOPT_POSTFIELDS, stringpointerextra);
239 if(UNEX(res)) {
240 err("POSTFIELDS", res, __LINE__); goto test_cleanup; }
241 res = curl_easy_setopt(curl, CURLOPT_POSTFIELDS, NULL);
242 if(UNEX(res)) {
243 err("POSTFIELDS", res, __LINE__); goto test_cleanup; }
244 res = curl_easy_setopt(curl, CURLOPT_REFERER, "string");
245 if(UNEX(res)) {
246 err("REFERER", res, __LINE__); goto test_cleanup; }
247 res = curl_easy_setopt(curl, CURLOPT_REFERER, NULL);
248 if(UNEX(res)) {
249 err("REFERER", res, __LINE__); goto test_cleanup; }
250 res = curl_easy_setopt(curl, CURLOPT_FTPPORT, "string");
251 if(UNEX(res)) {
252 err("FTPPORT", res, __LINE__); goto test_cleanup; }
253 res = curl_easy_setopt(curl, CURLOPT_FTPPORT, NULL);
254 if(UNEX(res)) {
255 err("FTPPORT", res, __LINE__); goto test_cleanup; }
256 res = curl_easy_setopt(curl, CURLOPT_USERAGENT, "string");
257 if(UNEX(res)) {
258 err("USERAGENT", res, __LINE__); goto test_cleanup; }
259 res = curl_easy_setopt(curl, CURLOPT_USERAGENT, NULL);
260 if(UNEX(res)) {
261 err("USERAGENT", res, __LINE__); goto test_cleanup; }
262 res = curl_easy_setopt(curl, CURLOPT_LOW_SPEED_LIMIT, 0L);
263 if(UNEX(res)) {
264 err("LOW_SPEED_LIMIT", res, __LINE__); goto test_cleanup; }
265 res = curl_easy_setopt(curl, CURLOPT_LOW_SPEED_LIMIT, 22L);
266 if(UNEX(res)) {
267 err("LOW_SPEED_LIMIT", res, __LINE__); goto test_cleanup; }
268 res = curl_easy_setopt(curl, CURLOPT_LOW_SPEED_LIMIT, LO);
269 if(UNEX(res)) {
270 err("LOW_SPEED_LIMIT", res, __LINE__); goto test_cleanup; }
271 res = curl_easy_setopt(curl, CURLOPT_LOW_SPEED_LIMIT, HI);
272 if(UNEX(res)) {
273 err("LOW_SPEED_LIMIT", res, __LINE__); goto test_cleanup; }
274 res = curl_easy_setopt(curl, CURLOPT_LOW_SPEED_TIME, 0L);
275 if(UNEX(res)) {
276 err("LOW_SPEED_TIME", res, __LINE__); goto test_cleanup; }
277 res = curl_easy_setopt(curl, CURLOPT_LOW_SPEED_TIME, 22L);
278 if(UNEX(res)) {
279 err("LOW_SPEED_TIME", res, __LINE__); goto test_cleanup; }
280 res = curl_easy_setopt(curl, CURLOPT_LOW_SPEED_TIME, LO);
281 if(UNEX(res)) {
282 err("LOW_SPEED_TIME", res, __LINE__); goto test_cleanup; }
283 res = curl_easy_setopt(curl, CURLOPT_LOW_SPEED_TIME, HI);
284 if(UNEX(res)) {
285 err("LOW_SPEED_TIME", res, __LINE__); goto test_cleanup; }
286 res = curl_easy_setopt(curl, CURLOPT_RESUME_FROM, 0L);
287 if(UNEX(res)) {
288 err("RESUME_FROM", res, __LINE__); goto test_cleanup; }
289 res = curl_easy_setopt(curl, CURLOPT_RESUME_FROM, 22L);
290 if(UNEX(res)) {
291 err("RESUME_FROM", res, __LINE__); goto test_cleanup; }
292 res = curl_easy_setopt(curl, CURLOPT_RESUME_FROM, LO);
293 if(UNEX(res)) {
294 err("RESUME_FROM", res, __LINE__); goto test_cleanup; }
295 res = curl_easy_setopt(curl, CURLOPT_RESUME_FROM, HI);
296 if(UNEX(res)) {
297 err("RESUME_FROM", res, __LINE__); goto test_cleanup; }
298 res = curl_easy_setopt(curl, CURLOPT_COOKIE, "string");
299 if(UNEX(res)) {
300 err("COOKIE", res, __LINE__); goto test_cleanup; }
301 res = curl_easy_setopt(curl, CURLOPT_COOKIE, NULL);
302 if(UNEX(res)) {
303 err("COOKIE", res, __LINE__); goto test_cleanup; }
304 res = curl_easy_setopt(curl, CURLOPT_HTTPHEADER, slist);
305 if(UNEX(res)) {
306 err("HTTPHEADER", res, __LINE__); goto test_cleanup; }
307 res = curl_easy_setopt(curl, CURLOPT_HTTPPOST, httppost);
308 if(UNEX(res)) {
309 err("HTTPPOST", res, __LINE__); goto test_cleanup; }
310 res = curl_easy_setopt(curl, CURLOPT_HTTPPOST, NULL);
311 if(UNEX(res)) {
312 err("HTTPPOST", res, __LINE__); goto test_cleanup; }
313 res = curl_easy_setopt(curl, CURLOPT_SSLCERT, "string");
314 if(UNEX(res)) {
315 err("SSLCERT", res, __LINE__); goto test_cleanup; }
316 res = curl_easy_setopt(curl, CURLOPT_SSLCERT, NULL);
317 if(UNEX(res)) {
318 err("SSLCERT", res, __LINE__); goto test_cleanup; }
319 res = curl_easy_setopt(curl, CURLOPT_KEYPASSWD, "string");
320 if(UNEX(res)) {
321 err("KEYPASSWD", res, __LINE__); goto test_cleanup; }
322 res = curl_easy_setopt(curl, CURLOPT_KEYPASSWD, NULL);
323 if(UNEX(res)) {
324 err("KEYPASSWD", res, __LINE__); goto test_cleanup; }
325 res = curl_easy_setopt(curl, CURLOPT_CRLF, 0L);
326 if(UNEX(res)) {
327 err("CRLF", res, __LINE__); goto test_cleanup; }
328 res = curl_easy_setopt(curl, CURLOPT_CRLF, 22L);
329 if(UNEX(res)) {
330 err("CRLF", res, __LINE__); goto test_cleanup; }
331 res = curl_easy_setopt(curl, CURLOPT_CRLF, LO);
332 if(UNEX(res)) {
333 err("CRLF", res, __LINE__); goto test_cleanup; }
334 res = curl_easy_setopt(curl, CURLOPT_CRLF, HI);
335 if(UNEX(res)) {
336 err("CRLF", res, __LINE__); goto test_cleanup; }
337 res = curl_easy_setopt(curl, CURLOPT_QUOTE, slist);
338 if(UNEX(res)) {
339 err("QUOTE", res, __LINE__); goto test_cleanup; }
340 res = curl_easy_setopt(curl, CURLOPT_HEADERDATA, &object);
341 if(UNEX(res)) {
342 err("HEADERDATA", res, __LINE__); goto test_cleanup; }
343 res = curl_easy_setopt(curl, CURLOPT_HEADERDATA, NULL);
344 if(UNEX(res)) {
345 err("HEADERDATA", res, __LINE__); goto test_cleanup; }
346 res = curl_easy_setopt(curl, CURLOPT_COOKIEFILE, "string");
347 if(UNEX(res)) {
348 err("COOKIEFILE", res, __LINE__); goto test_cleanup; }
349 res = curl_easy_setopt(curl, CURLOPT_COOKIEFILE, NULL);
350 if(UNEX(res)) {
351 err("COOKIEFILE", res, __LINE__); goto test_cleanup; }
352 res = curl_easy_setopt(curl, CURLOPT_SSLVERSION, 0L);
353 if(UNEX(res)) {
354 err("SSLVERSION", res, __LINE__); goto test_cleanup; }
355 res = curl_easy_setopt(curl, CURLOPT_SSLVERSION, 22L);
356 if(UNEX(res)) {
357 err("SSLVERSION", res, __LINE__); goto test_cleanup; }
358 res = curl_easy_setopt(curl, CURLOPT_SSLVERSION, LO);
359 if(UNEX(res)) {
360 err("SSLVERSION", res, __LINE__); goto test_cleanup; }
361 res = curl_easy_setopt(curl, CURLOPT_SSLVERSION, HI);
362 if(UNEX(res)) {
363 err("SSLVERSION", res, __LINE__); goto test_cleanup; }
364 res = curl_easy_setopt(curl, CURLOPT_TIMECONDITION, 0L);
365 if(UNEX(res)) {
366 err("TIMECONDITION", res, __LINE__); goto test_cleanup; }
367 res = curl_easy_setopt(curl, CURLOPT_TIMECONDITION, 22L);
368 if(UNEX(res)) {
369 err("TIMECONDITION", res, __LINE__); goto test_cleanup; }
370 res = curl_easy_setopt(curl, CURLOPT_TIMECONDITION, LO);
371 if(UNEX(res)) {
372 err("TIMECONDITION", res, __LINE__); goto test_cleanup; }
373 res = curl_easy_setopt(curl, CURLOPT_TIMECONDITION, HI);
374 if(UNEX(res)) {
375 err("TIMECONDITION", res, __LINE__); goto test_cleanup; }
376 res = curl_easy_setopt(curl, CURLOPT_TIMEVALUE, 0L);
377 if(UNEX(res)) {
378 err("TIMEVALUE", res, __LINE__); goto test_cleanup; }
379 res = curl_easy_setopt(curl, CURLOPT_TIMEVALUE, 22L);
380 if(UNEX(res)) {
381 err("TIMEVALUE", res, __LINE__); goto test_cleanup; }
382 res = curl_easy_setopt(curl, CURLOPT_TIMEVALUE, LO);
383 if(UNEX(res)) {
384 err("TIMEVALUE", res, __LINE__); goto test_cleanup; }
385 res = curl_easy_setopt(curl, CURLOPT_TIMEVALUE, HI);
386 if(UNEX(res)) {
387 err("TIMEVALUE", res, __LINE__); goto test_cleanup; }
388 res = curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "string");
389 if(UNEX(res)) {
390 err("CUSTOMREQUEST", res, __LINE__); goto test_cleanup; }
391 res = curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, NULL);
392 if(UNEX(res)) {
393 err("CUSTOMREQUEST", res, __LINE__); goto test_cleanup; }
394 res = curl_easy_setopt(curl, CURLOPT_STDERR, stream);
395 if(UNEX(res)) {
396 err("STDERR", res, __LINE__); goto test_cleanup; }
397 res = curl_easy_setopt(curl, CURLOPT_STDERR, NULL);
398 if(UNEX(res)) {
399 err("STDERR", res, __LINE__); goto test_cleanup; }
400 res = curl_easy_setopt(curl, CURLOPT_POSTQUOTE, slist);
401 if(UNEX(res)) {
402 err("POSTQUOTE", res, __LINE__); goto test_cleanup; }
403 res = curl_easy_setopt(curl, CURLOPT_OBSOLETE40, &object);
404 if(UNEX(res)) {
405 err("OBSOLETE40", res, __LINE__); goto test_cleanup; }
406 res = curl_easy_setopt(curl, CURLOPT_OBSOLETE40, NULL);
407 if(UNEX(res)) {
408 err("OBSOLETE40", res, __LINE__); goto test_cleanup; }
409 res = curl_easy_setopt(curl, CURLOPT_VERBOSE, 0L);
410 if(UNEX(res)) {
411 err("VERBOSE", res, __LINE__); goto test_cleanup; }
412 res = curl_easy_setopt(curl, CURLOPT_VERBOSE, 22L);
413 if(UNEX(res)) {
414 err("VERBOSE", res, __LINE__); goto test_cleanup; }
415 res = curl_easy_setopt(curl, CURLOPT_VERBOSE, LO);
416 if(UNEX(res)) {
417 err("VERBOSE", res, __LINE__); goto test_cleanup; }
418 res = curl_easy_setopt(curl, CURLOPT_VERBOSE, HI);
419 if(UNEX(res)) {
420 err("VERBOSE", res, __LINE__); goto test_cleanup; }
421 res = curl_easy_setopt(curl, CURLOPT_HEADER, 0L);
422 if(UNEX(res)) {
423 err("HEADER", res, __LINE__); goto test_cleanup; }
424 res = curl_easy_setopt(curl, CURLOPT_HEADER, 22L);
425 if(UNEX(res)) {
426 err("HEADER", res, __LINE__); goto test_cleanup; }
427 res = curl_easy_setopt(curl, CURLOPT_HEADER, LO);
428 if(UNEX(res)) {
429 err("HEADER", res, __LINE__); goto test_cleanup; }
430 res = curl_easy_setopt(curl, CURLOPT_HEADER, HI);
431 if(UNEX(res)) {
432 err("HEADER", res, __LINE__); goto test_cleanup; }
433 res = curl_easy_setopt(curl, CURLOPT_NOPROGRESS, 0L);
434 if(UNEX(res)) {
435 err("NOPROGRESS", res, __LINE__); goto test_cleanup; }
436 res = curl_easy_setopt(curl, CURLOPT_NOPROGRESS, 22L);
437 if(UNEX(res)) {
438 err("NOPROGRESS", res, __LINE__); goto test_cleanup; }
439 res = curl_easy_setopt(curl, CURLOPT_NOPROGRESS, LO);
440 if(UNEX(res)) {
441 err("NOPROGRESS", res, __LINE__); goto test_cleanup; }
442 res = curl_easy_setopt(curl, CURLOPT_NOPROGRESS, HI);
443 if(UNEX(res)) {
444 err("NOPROGRESS", res, __LINE__); goto test_cleanup; }
445 res = curl_easy_setopt(curl, CURLOPT_NOBODY, 0L);
446 if(UNEX(res)) {
447 err("NOBODY", res, __LINE__); goto test_cleanup; }
448 res = curl_easy_setopt(curl, CURLOPT_NOBODY, 22L);
449 if(UNEX(res)) {
450 err("NOBODY", res, __LINE__); goto test_cleanup; }
451 res = curl_easy_setopt(curl, CURLOPT_NOBODY, LO);
452 if(UNEX(res)) {
453 err("NOBODY", res, __LINE__); goto test_cleanup; }
454 res = curl_easy_setopt(curl, CURLOPT_NOBODY, HI);
455 if(UNEX(res)) {
456 err("NOBODY", res, __LINE__); goto test_cleanup; }
457 res = curl_easy_setopt(curl, CURLOPT_FAILONERROR, 0L);
458 if(UNEX(res)) {
459 err("FAILONERROR", res, __LINE__); goto test_cleanup; }
460 res = curl_easy_setopt(curl, CURLOPT_FAILONERROR, 22L);
461 if(UNEX(res)) {
462 err("FAILONERROR", res, __LINE__); goto test_cleanup; }
463 res = curl_easy_setopt(curl, CURLOPT_FAILONERROR, LO);
464 if(UNEX(res)) {
465 err("FAILONERROR", res, __LINE__); goto test_cleanup; }
466 res = curl_easy_setopt(curl, CURLOPT_FAILONERROR, HI);
467 if(UNEX(res)) {
468 err("FAILONERROR", res, __LINE__); goto test_cleanup; }
469 res = curl_easy_setopt(curl, CURLOPT_UPLOAD, 0L);
470 if(UNEX(res)) {
471 err("UPLOAD", res, __LINE__); goto test_cleanup; }
472 res = curl_easy_setopt(curl, CURLOPT_UPLOAD, 22L);
473 if(UNEX(res)) {
474 err("UPLOAD", res, __LINE__); goto test_cleanup; }
475 res = curl_easy_setopt(curl, CURLOPT_UPLOAD, LO);
476 if(UNEX(res)) {
477 err("UPLOAD", res, __LINE__); goto test_cleanup; }
478 res = curl_easy_setopt(curl, CURLOPT_UPLOAD, HI);
479 if(UNEX(res)) {
480 err("UPLOAD", res, __LINE__); goto test_cleanup; }
481 res = curl_easy_setopt(curl, CURLOPT_POST, 0L);
482 if(UNEX(res)) {
483 err("POST", res, __LINE__); goto test_cleanup; }
484 res = curl_easy_setopt(curl, CURLOPT_POST, 22L);
485 if(UNEX(res)) {
486 err("POST", res, __LINE__); goto test_cleanup; }
487 res = curl_easy_setopt(curl, CURLOPT_POST, LO);
488 if(UNEX(res)) {
489 err("POST", res, __LINE__); goto test_cleanup; }
490 res = curl_easy_setopt(curl, CURLOPT_POST, HI);
491 if(UNEX(res)) {
492 err("POST", res, __LINE__); goto test_cleanup; }
493 res = curl_easy_setopt(curl, CURLOPT_DIRLISTONLY, 0L);
494 if(UNEX(res)) {
495 err("DIRLISTONLY", res, __LINE__); goto test_cleanup; }
496 res = curl_easy_setopt(curl, CURLOPT_DIRLISTONLY, 22L);
497 if(UNEX(res)) {
498 err("DIRLISTONLY", res, __LINE__); goto test_cleanup; }
499 res = curl_easy_setopt(curl, CURLOPT_DIRLISTONLY, LO);
500 if(UNEX(res)) {
501 err("DIRLISTONLY", res, __LINE__); goto test_cleanup; }
502 res = curl_easy_setopt(curl, CURLOPT_DIRLISTONLY, HI);
503 if(UNEX(res)) {
504 err("DIRLISTONLY", res, __LINE__); goto test_cleanup; }
505 res = curl_easy_setopt(curl, CURLOPT_APPEND, 0L);
506 if(UNEX(res)) {
507 err("APPEND", res, __LINE__); goto test_cleanup; }
508 res = curl_easy_setopt(curl, CURLOPT_APPEND, 22L);
509 if(UNEX(res)) {
510 err("APPEND", res, __LINE__); goto test_cleanup; }
511 res = curl_easy_setopt(curl, CURLOPT_APPEND, LO);
512 if(UNEX(res)) {
513 err("APPEND", res, __LINE__); goto test_cleanup; }
514 res = curl_easy_setopt(curl, CURLOPT_APPEND, HI);
515 if(UNEX(res)) {
516 err("APPEND", res, __LINE__); goto test_cleanup; }
517 res = curl_easy_setopt(curl, CURLOPT_NETRC, 0L);
518 if(UNEX(res)) {
519 err("NETRC", res, __LINE__); goto test_cleanup; }
520 res = curl_easy_setopt(curl, CURLOPT_NETRC, 22L);
521 if(UNEX(res)) {
522 err("NETRC", res, __LINE__); goto test_cleanup; }
523 res = curl_easy_setopt(curl, CURLOPT_NETRC, LO);
524 if(UNEX(res)) {
525 err("NETRC", res, __LINE__); goto test_cleanup; }
526 res = curl_easy_setopt(curl, CURLOPT_NETRC, HI);
527 if(UNEX(res)) {
528 err("NETRC", res, __LINE__); goto test_cleanup; }
529 res = curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 0L);
530 if(UNEX(res)) {
531 err("FOLLOWLOCATION", res, __LINE__); goto test_cleanup; }
532 res = curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 22L);
533 if(UNEX(res)) {
534 err("FOLLOWLOCATION", res, __LINE__); goto test_cleanup; }
535 res = curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, LO);
536 if(UNEX(res)) {
537 err("FOLLOWLOCATION", res, __LINE__); goto test_cleanup; }
538 res = curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, HI);
539 if(UNEX(res)) {
540 err("FOLLOWLOCATION", res, __LINE__); goto test_cleanup; }
541 res = curl_easy_setopt(curl, CURLOPT_TRANSFERTEXT, 0L);
542 if(UNEX(res)) {
543 err("TRANSFERTEXT", res, __LINE__); goto test_cleanup; }
544 res = curl_easy_setopt(curl, CURLOPT_TRANSFERTEXT, 22L);
545 if(UNEX(res)) {
546 err("TRANSFERTEXT", res, __LINE__); goto test_cleanup; }
547 res = curl_easy_setopt(curl, CURLOPT_TRANSFERTEXT, LO);
548 if(UNEX(res)) {
549 err("TRANSFERTEXT", res, __LINE__); goto test_cleanup; }
550 res = curl_easy_setopt(curl, CURLOPT_TRANSFERTEXT, HI);
551 if(UNEX(res)) {
552 err("TRANSFERTEXT", res, __LINE__); goto test_cleanup; }
553 res = curl_easy_setopt(curl, CURLOPT_PUT, 0L);
554 if(UNEX(res)) {
555 err("PUT", res, __LINE__); goto test_cleanup; }
556 res = curl_easy_setopt(curl, CURLOPT_PUT, 22L);
557 if(UNEX(res)) {
558 err("PUT", res, __LINE__); goto test_cleanup; }
559 res = curl_easy_setopt(curl, CURLOPT_PUT, LO);
560 if(UNEX(res)) {
561 err("PUT", res, __LINE__); goto test_cleanup; }
562 res = curl_easy_setopt(curl, CURLOPT_PUT, HI);
563 if(UNEX(res)) {
564 err("PUT", res, __LINE__); goto test_cleanup; }
565 res = curl_easy_setopt(curl, CURLOPT_PROGRESSFUNCTION,
566 progresscb);
567 if(UNEX(res)) {
568 err("PROGRESSFUNCTION", res, __LINE__); goto test_cleanup; }
569 res = curl_easy_setopt(curl, CURLOPT_PROGRESSFUNCTION, NULL);
570 if(UNEX(res)) {
571 err("PROGRESSFUNCTION", res, __LINE__); goto test_cleanup; }
572 res = curl_easy_setopt(curl, CURLOPT_PROGRESSDATA, &object);
573 if(UNEX(res)) {
574 err("PROGRESSDATA", res, __LINE__); goto test_cleanup; }
575 res = curl_easy_setopt(curl, CURLOPT_PROGRESSDATA, NULL);
576 if(UNEX(res)) {
577 err("PROGRESSDATA", res, __LINE__); goto test_cleanup; }
578 res = curl_easy_setopt(curl, CURLOPT_AUTOREFERER, 0L);
579 if(UNEX(res)) {
580 err("AUTOREFERER", res, __LINE__); goto test_cleanup; }
581 res = curl_easy_setopt(curl, CURLOPT_AUTOREFERER, 22L);
582 if(UNEX(res)) {
583 err("AUTOREFERER", res, __LINE__); goto test_cleanup; }
584 res = curl_easy_setopt(curl, CURLOPT_AUTOREFERER, LO);
585 if(UNEX(res)) {
586 err("AUTOREFERER", res, __LINE__); goto test_cleanup; }
587 res = curl_easy_setopt(curl, CURLOPT_AUTOREFERER, HI);
588 if(UNEX(res)) {
589 err("AUTOREFERER", res, __LINE__); goto test_cleanup; }
590 res = curl_easy_setopt(curl, CURLOPT_PROXYPORT, 0L);
591 if(UNEX(res)) {
592 err("PROXYPORT", res, __LINE__); goto test_cleanup; }
593 res = curl_easy_setopt(curl, CURLOPT_PROXYPORT, 22L);
594 if(UNEX(res)) {
595 err("PROXYPORT", res, __LINE__); goto test_cleanup; }
596 res = curl_easy_setopt(curl, CURLOPT_PROXYPORT, LO);
597 if(UNEX(res)) {
598 err("PROXYPORT", res, __LINE__); goto test_cleanup; }
599 res = curl_easy_setopt(curl, CURLOPT_PROXYPORT, HI);
600 if(UNEX(res)) {
601 err("PROXYPORT", res, __LINE__); goto test_cleanup; }
602 res = curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE, 0L);
603 if(UNEX(res)) {
604 err("POSTFIELDSIZE", res, __LINE__); goto test_cleanup; }
605 res = curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE, 22L);
606 if(UNEX(res)) {
607 err("POSTFIELDSIZE", res, __LINE__); goto test_cleanup; }
608 res = curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE, LO);
609 if(UNEX(res)) {
610 err("POSTFIELDSIZE", res, __LINE__); goto test_cleanup; }
611 res = curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE, HI);
612 if(UNEX(res)) {
613 err("POSTFIELDSIZE", res, __LINE__); goto test_cleanup; }
614 res = curl_easy_setopt(curl, CURLOPT_HTTPPROXYTUNNEL, 0L);
615 if(UNEX(res)) {
616 err("HTTPPROXYTUNNEL", res, __LINE__); goto test_cleanup; }
617 res = curl_easy_setopt(curl, CURLOPT_HTTPPROXYTUNNEL, 22L);
618 if(UNEX(res)) {
619 err("HTTPPROXYTUNNEL", res, __LINE__); goto test_cleanup; }
620 res = curl_easy_setopt(curl, CURLOPT_HTTPPROXYTUNNEL, LO);
621 if(UNEX(res)) {
622 err("HTTPPROXYTUNNEL", res, __LINE__); goto test_cleanup; }
623 res = curl_easy_setopt(curl, CURLOPT_HTTPPROXYTUNNEL, HI);
624 if(UNEX(res)) {
625 err("HTTPPROXYTUNNEL", res, __LINE__); goto test_cleanup; }
626 res = curl_easy_setopt(curl, CURLOPT_INTERFACE, "string");
627 if(UNEX(res)) {
628 err("INTERFACE", res, __LINE__); goto test_cleanup; }
629 res = curl_easy_setopt(curl, CURLOPT_INTERFACE, NULL);
630 if(UNEX(res)) {
631 err("INTERFACE", res, __LINE__); goto test_cleanup; }
632 res = curl_easy_setopt(curl, CURLOPT_KRBLEVEL, "string");
633 if(UNEX(res)) {
634 err("KRBLEVEL", res, __LINE__); goto test_cleanup; }
635 res = curl_easy_setopt(curl, CURLOPT_KRBLEVEL, NULL);
636 if(UNEX(res)) {
637 err("KRBLEVEL", res, __LINE__); goto test_cleanup; }
638 res = curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L);
639 if(UNEX(res)) {
640 err("SSL_VERIFYPEER", res, __LINE__); goto test_cleanup; }
641 res = curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 22L);
642 if(UNEX(res)) {
643 err("SSL_VERIFYPEER", res, __LINE__); goto test_cleanup; }
644 res = curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, LO);
645 if(UNEX(res)) {
646 err("SSL_VERIFYPEER", res, __LINE__); goto test_cleanup; }
647 res = curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, HI);
648 if(UNEX(res)) {
649 err("SSL_VERIFYPEER", res, __LINE__); goto test_cleanup; }
650 res = curl_easy_setopt(curl, CURLOPT_CAINFO, "string");
651 if(UNEX(res)) {
652 err("CAINFO", res, __LINE__); goto test_cleanup; }
653 res = curl_easy_setopt(curl, CURLOPT_CAINFO, NULL);
654 if(UNEX(res)) {
655 err("CAINFO", res, __LINE__); goto test_cleanup; }
656 res = curl_easy_setopt(curl, CURLOPT_MAXREDIRS, 0L);
657 if(UNEX(res)) {
658 err("MAXREDIRS", res, __LINE__); goto test_cleanup; }
659 res = curl_easy_setopt(curl, CURLOPT_MAXREDIRS, 22L);
660 if(UNEX(res)) {
661 err("MAXREDIRS", res, __LINE__); goto test_cleanup; }
662 res = curl_easy_setopt(curl, CURLOPT_MAXREDIRS, LO);
663 if(UNEX(res)) {
664 err("MAXREDIRS", res, __LINE__); goto test_cleanup; }
665 res = curl_easy_setopt(curl, CURLOPT_MAXREDIRS, HI);
666 if(UNEX(res)) {
667 err("MAXREDIRS", res, __LINE__); goto test_cleanup; }
668 res = curl_easy_setopt(curl, CURLOPT_FILETIME, 0L);
669 if(UNEX(res)) {
670 err("FILETIME", res, __LINE__); goto test_cleanup; }
671 res = curl_easy_setopt(curl, CURLOPT_FILETIME, 22L);
672 if(UNEX(res)) {
673 err("FILETIME", res, __LINE__); goto test_cleanup; }
674 res = curl_easy_setopt(curl, CURLOPT_FILETIME, LO);
675 if(UNEX(res)) {
676 err("FILETIME", res, __LINE__); goto test_cleanup; }
677 res = curl_easy_setopt(curl, CURLOPT_FILETIME, HI);
678 if(UNEX(res)) {
679 err("FILETIME", res, __LINE__); goto test_cleanup; }
680 res = curl_easy_setopt(curl, CURLOPT_TELNETOPTIONS, slist);
681 if(UNEX(res)) {
682 err("TELNETOPTIONS", res, __LINE__); goto test_cleanup; }
683 res = curl_easy_setopt(curl, CURLOPT_MAXCONNECTS, 0L);
684 if(UNEX(res)) {
685 err("MAXCONNECTS", res, __LINE__); goto test_cleanup; }
686 res = curl_easy_setopt(curl, CURLOPT_MAXCONNECTS, 22L);
687 if(UNEX(res)) {
688 err("MAXCONNECTS", res, __LINE__); goto test_cleanup; }
689 res = curl_easy_setopt(curl, CURLOPT_MAXCONNECTS, LO);
690 if(UNEX(res)) {
691 err("MAXCONNECTS", res, __LINE__); goto test_cleanup; }
692 res = curl_easy_setopt(curl, CURLOPT_MAXCONNECTS, HI);
693 if(UNEX(res)) {
694 err("MAXCONNECTS", res, __LINE__); goto test_cleanup; }
695 res = curl_easy_setopt(curl, CURLOPT_OBSOLETE72, 0L);
696 if(UNEX(res)) {
697 err("OBSOLETE72", res, __LINE__); goto test_cleanup; }
698 res = curl_easy_setopt(curl, CURLOPT_OBSOLETE72, 22L);
699 if(UNEX(res)) {
700 err("OBSOLETE72", res, __LINE__); goto test_cleanup; }
701 res = curl_easy_setopt(curl, CURLOPT_OBSOLETE72, LO);
702 if(UNEX(res)) {
703 err("OBSOLETE72", res, __LINE__); goto test_cleanup; }
704 res = curl_easy_setopt(curl, CURLOPT_OBSOLETE72, HI);
705 if(UNEX(res)) {
706 err("OBSOLETE72", res, __LINE__); goto test_cleanup; }
707 res = curl_easy_setopt(curl, CURLOPT_FRESH_CONNECT, 0L);
708 if(UNEX(res)) {
709 err("FRESH_CONNECT", res, __LINE__); goto test_cleanup; }
710 res = curl_easy_setopt(curl, CURLOPT_FRESH_CONNECT, 22L);
711 if(UNEX(res)) {
712 err("FRESH_CONNECT", res, __LINE__); goto test_cleanup; }
713 res = curl_easy_setopt(curl, CURLOPT_FRESH_CONNECT, LO);
714 if(UNEX(res)) {
715 err("FRESH_CONNECT", res, __LINE__); goto test_cleanup; }
716 res = curl_easy_setopt(curl, CURLOPT_FRESH_CONNECT, HI);
717 if(UNEX(res)) {
718 err("FRESH_CONNECT", res, __LINE__); goto test_cleanup; }
719 res = curl_easy_setopt(curl, CURLOPT_FORBID_REUSE, 0L);
720 if(UNEX(res)) {
721 err("FORBID_REUSE", res, __LINE__); goto test_cleanup; }
722 res = curl_easy_setopt(curl, CURLOPT_FORBID_REUSE, 22L);
723 if(UNEX(res)) {
724 err("FORBID_REUSE", res, __LINE__); goto test_cleanup; }
725 res = curl_easy_setopt(curl, CURLOPT_FORBID_REUSE, LO);
726 if(UNEX(res)) {
727 err("FORBID_REUSE", res, __LINE__); goto test_cleanup; }
728 res = curl_easy_setopt(curl, CURLOPT_FORBID_REUSE, HI);
729 if(UNEX(res)) {
730 err("FORBID_REUSE", res, __LINE__); goto test_cleanup; }
731 res = curl_easy_setopt(curl, CURLOPT_RANDOM_FILE, "string");
732 if(UNEX(res)) {
733 err("RANDOM_FILE", res, __LINE__); goto test_cleanup; }
734 res = curl_easy_setopt(curl, CURLOPT_RANDOM_FILE, NULL);
735 if(UNEX(res)) {
736 err("RANDOM_FILE", res, __LINE__); goto test_cleanup; }
737 res = curl_easy_setopt(curl, CURLOPT_EGDSOCKET, "string");
738 if(UNEX(res)) {
739 err("EGDSOCKET", res, __LINE__); goto test_cleanup; }
740 res = curl_easy_setopt(curl, CURLOPT_EGDSOCKET, NULL);
741 if(UNEX(res)) {
742 err("EGDSOCKET", res, __LINE__); goto test_cleanup; }
743 res = curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, 0L);
744 if(UNEX(res)) {
745 err("CONNECTTIMEOUT", res, __LINE__); goto test_cleanup; }
746 res = curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, 22L);
747 if(UNEX(res)) {
748 err("CONNECTTIMEOUT", res, __LINE__); goto test_cleanup; }
749 res = curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, LO);
750 if(UNEX(res)) {
751 err("CONNECTTIMEOUT", res, __LINE__); goto test_cleanup; }
752 res = curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, HI);
753 if(UNEX(res)) {
754 err("CONNECTTIMEOUT", res, __LINE__); goto test_cleanup; }
755 res = curl_easy_setopt(curl, CURLOPT_HEADERFUNCTION,
756 headercb);
757 if(UNEX(res)) {
758 err("HEADERFUNCTION", res, __LINE__); goto test_cleanup; }
759 res = curl_easy_setopt(curl, CURLOPT_HEADERFUNCTION, NULL);
760 if(UNEX(res)) {
761 err("HEADERFUNCTION", res, __LINE__); goto test_cleanup; }
762 res = curl_easy_setopt(curl, CURLOPT_HTTPGET, 0L);
763 if(UNEX(res)) {
764 err("HTTPGET", res, __LINE__); goto test_cleanup; }
765 res = curl_easy_setopt(curl, CURLOPT_HTTPGET, 22L);
766 if(UNEX(res)) {
767 err("HTTPGET", res, __LINE__); goto test_cleanup; }
768 res = curl_easy_setopt(curl, CURLOPT_HTTPGET, LO);
769 if(UNEX(res)) {
770 err("HTTPGET", res, __LINE__); goto test_cleanup; }
771 res = curl_easy_setopt(curl, CURLOPT_HTTPGET, HI);
772 if(UNEX(res)) {
773 err("HTTPGET", res, __LINE__); goto test_cleanup; }
774 res = curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L);
775 if(UNEX(res)) {
776 err("SSL_VERIFYHOST", res, __LINE__); goto test_cleanup; }
777 res = curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 22L);
778 if(UNEX(res)) {
779 err("SSL_VERIFYHOST", res, __LINE__); goto test_cleanup; }
780 res = curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, LO);
781 if(UNEX(res)) {
782 err("SSL_VERIFYHOST", res, __LINE__); goto test_cleanup; }
783 res = curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, HI);
784 if(UNEX(res)) {
785 err("SSL_VERIFYHOST", res, __LINE__); goto test_cleanup; }
786 res = curl_easy_setopt(curl, CURLOPT_COOKIEJAR, "string");
787 if(UNEX(res)) {
788 err("COOKIEJAR", res, __LINE__); goto test_cleanup; }
789 res = curl_easy_setopt(curl, CURLOPT_COOKIEJAR, NULL);
790 if(UNEX(res)) {
791 err("COOKIEJAR", res, __LINE__); goto test_cleanup; }
792 res = curl_easy_setopt(curl, CURLOPT_SSL_CIPHER_LIST, "string");
793 if(UNEX(res)) {
794 err("SSL_CIPHER_LIST", res, __LINE__); goto test_cleanup; }
795 res = curl_easy_setopt(curl, CURLOPT_SSL_CIPHER_LIST, NULL);
796 if(UNEX(res)) {
797 err("SSL_CIPHER_LIST", res, __LINE__); goto test_cleanup; }
798 res = curl_easy_setopt(curl, CURLOPT_HTTP_VERSION, 0L);
799 if(UNEX(res)) {
800 err("HTTP_VERSION", res, __LINE__); goto test_cleanup; }
801 res = curl_easy_setopt(curl, CURLOPT_HTTP_VERSION, 22L);
802 if(UNEX(res)) {
803 err("HTTP_VERSION", res, __LINE__); goto test_cleanup; }
804 res = curl_easy_setopt(curl, CURLOPT_HTTP_VERSION, LO);
805 if(UNEX(res)) {
806 err("HTTP_VERSION", res, __LINE__); goto test_cleanup; }
807 res = curl_easy_setopt(curl, CURLOPT_HTTP_VERSION, HI);
808 if(UNEX(res)) {
809 err("HTTP_VERSION", res, __LINE__); goto test_cleanup; }
810 res = curl_easy_setopt(curl, CURLOPT_FTP_USE_EPSV, 0L);
811 if(UNEX(res)) {
812 err("FTP_USE_EPSV", res, __LINE__); goto test_cleanup; }
813 res = curl_easy_setopt(curl, CURLOPT_FTP_USE_EPSV, 22L);
814 if(UNEX(res)) {
815 err("FTP_USE_EPSV", res, __LINE__); goto test_cleanup; }
816 res = curl_easy_setopt(curl, CURLOPT_FTP_USE_EPSV, LO);
817 if(UNEX(res)) {
818 err("FTP_USE_EPSV", res, __LINE__); goto test_cleanup; }
819 res = curl_easy_setopt(curl, CURLOPT_FTP_USE_EPSV, HI);
820 if(UNEX(res)) {
821 err("FTP_USE_EPSV", res, __LINE__); goto test_cleanup; }
822 res = curl_easy_setopt(curl, CURLOPT_SSLCERTTYPE, "string");
823 if(UNEX(res)) {
824 err("SSLCERTTYPE", res, __LINE__); goto test_cleanup; }
825 res = curl_easy_setopt(curl, CURLOPT_SSLCERTTYPE, NULL);
826 if(UNEX(res)) {
827 err("SSLCERTTYPE", res, __LINE__); goto test_cleanup; }
828 res = curl_easy_setopt(curl, CURLOPT_SSLKEY, "string");
829 if(UNEX(res)) {
830 err("SSLKEY", res, __LINE__); goto test_cleanup; }
831 res = curl_easy_setopt(curl, CURLOPT_SSLKEY, NULL);
832 if(UNEX(res)) {
833 err("SSLKEY", res, __LINE__); goto test_cleanup; }
834 res = curl_easy_setopt(curl, CURLOPT_SSLKEYTYPE, "string");
835 if(UNEX(res)) {
836 err("SSLKEYTYPE", res, __LINE__); goto test_cleanup; }
837 res = curl_easy_setopt(curl, CURLOPT_SSLKEYTYPE, NULL);
838 if(UNEX(res)) {
839 err("SSLKEYTYPE", res, __LINE__); goto test_cleanup; }
840 res = curl_easy_setopt(curl, CURLOPT_SSLENGINE, "string");
841 if(UNEX(res)) {
842 err("SSLENGINE", res, __LINE__); goto test_cleanup; }
843 res = curl_easy_setopt(curl, CURLOPT_SSLENGINE, NULL);
844 if(UNEX(res)) {
845 err("SSLENGINE", res, __LINE__); goto test_cleanup; }
846 res = curl_easy_setopt(curl, CURLOPT_SSLENGINE_DEFAULT, 0L);
847 if(UNEX(res)) {
848 err("SSLENGINE_DEFAULT", res, __LINE__); goto test_cleanup; }
849 res = curl_easy_setopt(curl, CURLOPT_SSLENGINE_DEFAULT, 22L);
850 if(UNEX(res)) {
851 err("SSLENGINE_DEFAULT", res, __LINE__); goto test_cleanup; }
852 res = curl_easy_setopt(curl, CURLOPT_SSLENGINE_DEFAULT, LO);
853 if(UNEX(res)) {
854 err("SSLENGINE_DEFAULT", res, __LINE__); goto test_cleanup; }
855 res = curl_easy_setopt(curl, CURLOPT_SSLENGINE_DEFAULT, HI);
856 if(UNEX(res)) {
857 err("SSLENGINE_DEFAULT", res, __LINE__); goto test_cleanup; }
858 res = curl_easy_setopt(curl, CURLOPT_DNS_USE_GLOBAL_CACHE, 0L);
859 if(UNEX(res)) {
860 err("DNS_USE_GLOBAL_CACHE", res, __LINE__); goto test_cleanup; }
861 res = curl_easy_setopt(curl, CURLOPT_DNS_USE_GLOBAL_CACHE, 22L);
862 if(UNEX(res)) {
863 err("DNS_USE_GLOBAL_CACHE", res, __LINE__); goto test_cleanup; }
864 res = curl_easy_setopt(curl, CURLOPT_DNS_USE_GLOBAL_CACHE, LO);
865 if(UNEX(res)) {
866 err("DNS_USE_GLOBAL_CACHE", res, __LINE__); goto test_cleanup; }
867 res = curl_easy_setopt(curl, CURLOPT_DNS_USE_GLOBAL_CACHE, HI);
868 if(UNEX(res)) {
869 err("DNS_USE_GLOBAL_CACHE", res, __LINE__); goto test_cleanup; }
870 res = curl_easy_setopt(curl, CURLOPT_DNS_CACHE_TIMEOUT, 0L);
871 if(UNEX(res)) {
872 err("DNS_CACHE_TIMEOUT", res, __LINE__); goto test_cleanup; }
873 res = curl_easy_setopt(curl, CURLOPT_DNS_CACHE_TIMEOUT, 22L);
874 if(UNEX(res)) {
875 err("DNS_CACHE_TIMEOUT", res, __LINE__); goto test_cleanup; }
876 res = curl_easy_setopt(curl, CURLOPT_DNS_CACHE_TIMEOUT, LO);
877 if(UNEX(res)) {
878 err("DNS_CACHE_TIMEOUT", res, __LINE__); goto test_cleanup; }
879 res = curl_easy_setopt(curl, CURLOPT_DNS_CACHE_TIMEOUT, HI);
880 if(UNEX(res)) {
881 err("DNS_CACHE_TIMEOUT", res, __LINE__); goto test_cleanup; }
882 res = curl_easy_setopt(curl, CURLOPT_PREQUOTE, slist);
883 if(UNEX(res)) {
884 err("PREQUOTE", res, __LINE__); goto test_cleanup; }
885 res = curl_easy_setopt(curl, CURLOPT_DEBUGFUNCTION,
886 debugcb);
887 if(UNEX(res)) {
888 err("DEBUGFUNCTION", res, __LINE__); goto test_cleanup; }
889 res = curl_easy_setopt(curl, CURLOPT_DEBUGFUNCTION, NULL);
890 if(UNEX(res)) {
891 err("DEBUGFUNCTION", res, __LINE__); goto test_cleanup; }
892 res = curl_easy_setopt(curl, CURLOPT_DEBUGDATA, &object);
893 if(UNEX(res)) {
894 err("DEBUGDATA", res, __LINE__); goto test_cleanup; }
895 res = curl_easy_setopt(curl, CURLOPT_DEBUGDATA, NULL);
896 if(UNEX(res)) {
897 err("DEBUGDATA", res, __LINE__); goto test_cleanup; }
898 res = curl_easy_setopt(curl, CURLOPT_COOKIESESSION, 0L);
899 if(UNEX(res)) {
900 err("COOKIESESSION", res, __LINE__); goto test_cleanup; }
901 res = curl_easy_setopt(curl, CURLOPT_COOKIESESSION, 22L);
902 if(UNEX(res)) {
903 err("COOKIESESSION", res, __LINE__); goto test_cleanup; }
904 res = curl_easy_setopt(curl, CURLOPT_COOKIESESSION, LO);
905 if(UNEX(res)) {
906 err("COOKIESESSION", res, __LINE__); goto test_cleanup; }
907 res = curl_easy_setopt(curl, CURLOPT_COOKIESESSION, HI);
908 if(UNEX(res)) {
909 err("COOKIESESSION", res, __LINE__); goto test_cleanup; }
910 res = curl_easy_setopt(curl, CURLOPT_CAPATH, "string");
911 if(UNEX(res)) {
912 err("CAPATH", res, __LINE__); goto test_cleanup; }
913 res = curl_easy_setopt(curl, CURLOPT_CAPATH, NULL);
914 if(UNEX(res)) {
915 err("CAPATH", res, __LINE__); goto test_cleanup; }
916 res = curl_easy_setopt(curl, CURLOPT_BUFFERSIZE, 0L);
917 if(UNEX(res)) {
918 err("BUFFERSIZE", res, __LINE__); goto test_cleanup; }
919 res = curl_easy_setopt(curl, CURLOPT_BUFFERSIZE, 22L);
920 if(UNEX(res)) {
921 err("BUFFERSIZE", res, __LINE__); goto test_cleanup; }
922 res = curl_easy_setopt(curl, CURLOPT_BUFFERSIZE, LO);
923 if(UNEX(res)) {
924 err("BUFFERSIZE", res, __LINE__); goto test_cleanup; }
925 res = curl_easy_setopt(curl, CURLOPT_BUFFERSIZE, HI);
926 if(UNEX(res)) {
927 err("BUFFERSIZE", res, __LINE__); goto test_cleanup; }
928 res = curl_easy_setopt(curl, CURLOPT_NOSIGNAL, 0L);
929 if(UNEX(res)) {
930 err("NOSIGNAL", res, __LINE__); goto test_cleanup; }
931 res = curl_easy_setopt(curl, CURLOPT_NOSIGNAL, 22L);
932 if(UNEX(res)) {
933 err("NOSIGNAL", res, __LINE__); goto test_cleanup; }
934 res = curl_easy_setopt(curl, CURLOPT_NOSIGNAL, LO);
935 if(UNEX(res)) {
936 err("NOSIGNAL", res, __LINE__); goto test_cleanup; }
937 res = curl_easy_setopt(curl, CURLOPT_NOSIGNAL, HI);
938 if(UNEX(res)) {
939 err("NOSIGNAL", res, __LINE__); goto test_cleanup; }
940 res = curl_easy_setopt(curl, CURLOPT_SHARE, share);
941 if(UNEX(res)) {
942 err("SHARE", res, __LINE__); goto test_cleanup; }
943 res = curl_easy_setopt(curl, CURLOPT_SHARE, NULL);
944 if(UNEX(res)) {
945 err("SHARE", res, __LINE__); goto test_cleanup; }
946 res = curl_easy_setopt(curl, CURLOPT_PROXYTYPE, 0L);
947 if(UNEX(res)) {
948 err("PROXYTYPE", res, __LINE__); goto test_cleanup; }
949 res = curl_easy_setopt(curl, CURLOPT_PROXYTYPE, 22L);
950 if(UNEX(res)) {
951 err("PROXYTYPE", res, __LINE__); goto test_cleanup; }
952 res = curl_easy_setopt(curl, CURLOPT_PROXYTYPE, LO);
953 if(UNEX(res)) {
954 err("PROXYTYPE", res, __LINE__); goto test_cleanup; }
955 res = curl_easy_setopt(curl, CURLOPT_PROXYTYPE, HI);
956 if(UNEX(res)) {
957 err("PROXYTYPE", res, __LINE__); goto test_cleanup; }
958 res = curl_easy_setopt(curl, CURLOPT_ACCEPT_ENCODING, "string");
959 if(UNEX(res)) {
960 err("ACCEPT_ENCODING", res, __LINE__); goto test_cleanup; }
961 res = curl_easy_setopt(curl, CURLOPT_ACCEPT_ENCODING, NULL);
962 if(UNEX(res)) {
963 err("ACCEPT_ENCODING", res, __LINE__); goto test_cleanup; }
964 res = curl_easy_setopt(curl, CURLOPT_PRIVATE, &object);
965 if(UNEX(res)) {
966 err("PRIVATE", res, __LINE__); goto test_cleanup; }
967 res = curl_easy_setopt(curl, CURLOPT_PRIVATE, NULL);
968 if(UNEX(res)) {
969 err("PRIVATE", res, __LINE__); goto test_cleanup; }
970 res = curl_easy_setopt(curl, CURLOPT_HTTP200ALIASES, slist);
971 if(UNEX(res)) {
972 err("HTTP200ALIASES", res, __LINE__); goto test_cleanup; }
973 res = curl_easy_setopt(curl, CURLOPT_UNRESTRICTED_AUTH, 0L);
974 if(UNEX(res)) {
975 err("UNRESTRICTED_AUTH", res, __LINE__); goto test_cleanup; }
976 res = curl_easy_setopt(curl, CURLOPT_UNRESTRICTED_AUTH, 22L);
977 if(UNEX(res)) {
978 err("UNRESTRICTED_AUTH", res, __LINE__); goto test_cleanup; }
979 res = curl_easy_setopt(curl, CURLOPT_UNRESTRICTED_AUTH, LO);
980 if(UNEX(res)) {
981 err("UNRESTRICTED_AUTH", res, __LINE__); goto test_cleanup; }
982 res = curl_easy_setopt(curl, CURLOPT_UNRESTRICTED_AUTH, HI);
983 if(UNEX(res)) {
984 err("UNRESTRICTED_AUTH", res, __LINE__); goto test_cleanup; }
985 res = curl_easy_setopt(curl, CURLOPT_FTP_USE_EPRT, 0L);
986 if(UNEX(res)) {
987 err("FTP_USE_EPRT", res, __LINE__); goto test_cleanup; }
988 res = curl_easy_setopt(curl, CURLOPT_FTP_USE_EPRT, 22L);
989 if(UNEX(res)) {
990 err("FTP_USE_EPRT", res, __LINE__); goto test_cleanup; }
991 res = curl_easy_setopt(curl, CURLOPT_FTP_USE_EPRT, LO);
992 if(UNEX(res)) {
993 err("FTP_USE_EPRT", res, __LINE__); goto test_cleanup; }
994 res = curl_easy_setopt(curl, CURLOPT_FTP_USE_EPRT, HI);
995 if(UNEX(res)) {
996 err("FTP_USE_EPRT", res, __LINE__); goto test_cleanup; }
997 res = curl_easy_setopt(curl, CURLOPT_HTTPAUTH, 0L);
998 if(UNEX(res)) {
999 err("HTTPAUTH", res, __LINE__); goto test_cleanup; }
1000 res = curl_easy_setopt(curl, CURLOPT_HTTPAUTH, 22L);
1001 if(UNEX(res)) {
1002 err("HTTPAUTH", res, __LINE__); goto test_cleanup; }
1003 res = curl_easy_setopt(curl, CURLOPT_HTTPAUTH, LO);
1004 if(UNEX(res)) {
1005 err("HTTPAUTH", res, __LINE__); goto test_cleanup; }
1006 res = curl_easy_setopt(curl, CURLOPT_HTTPAUTH, HI);
1007 if(UNEX(res)) {
1008 err("HTTPAUTH", res, __LINE__); goto test_cleanup; }
1009 res = curl_easy_setopt(curl, CURLOPT_SSL_CTX_FUNCTION,
1010 ssl_ctx_cb);
1011 if(UNEX(res)) {
1012 err("SSL_CTX_FUNCTION", res, __LINE__); goto test_cleanup; }
1013 res = curl_easy_setopt(curl, CURLOPT_SSL_CTX_FUNCTION, NULL);
1014 if(UNEX(res)) {
1015 err("SSL_CTX_FUNCTION", res, __LINE__); goto test_cleanup; }
1016 res = curl_easy_setopt(curl, CURLOPT_SSL_CTX_DATA, &object);
1017 if(UNEX(res)) {
1018 err("SSL_CTX_DATA", res, __LINE__); goto test_cleanup; }
1019 res = curl_easy_setopt(curl, CURLOPT_SSL_CTX_DATA, NULL);
1020 if(UNEX(res)) {
1021 err("SSL_CTX_DATA", res, __LINE__); goto test_cleanup; }
1022 res = curl_easy_setopt(curl, CURLOPT_FTP_CREATE_MISSING_DIRS, 0L);
1023 if(UNEX(res)) {
1024 err("FTP_CREATE_MISSING_DIRS", res, __LINE__); goto test_cleanup; }
1025 res = curl_easy_setopt(curl, CURLOPT_FTP_CREATE_MISSING_DIRS, 22L);
1026 if(UNEX(res)) {
1027 err("FTP_CREATE_MISSING_DIRS", res, __LINE__); goto test_cleanup; }
1028 res = curl_easy_setopt(curl, CURLOPT_FTP_CREATE_MISSING_DIRS, LO);
1029 if(UNEX(res)) {
1030 err("FTP_CREATE_MISSING_DIRS", res, __LINE__); goto test_cleanup; }
1031 res = curl_easy_setopt(curl, CURLOPT_FTP_CREATE_MISSING_DIRS, HI);
1032 if(UNEX(res)) {
1033 err("FTP_CREATE_MISSING_DIRS", res, __LINE__); goto test_cleanup; }
1034 res = curl_easy_setopt(curl, CURLOPT_PROXYAUTH, 0L);
1035 if(UNEX(res)) {
1036 err("PROXYAUTH", res, __LINE__); goto test_cleanup; }
1037 res = curl_easy_setopt(curl, CURLOPT_PROXYAUTH, 22L);
1038 if(UNEX(res)) {
1039 err("PROXYAUTH", res, __LINE__); goto test_cleanup; }
1040 res = curl_easy_setopt(curl, CURLOPT_PROXYAUTH, LO);
1041 if(UNEX(res)) {
1042 err("PROXYAUTH", res, __LINE__); goto test_cleanup; }
1043 res = curl_easy_setopt(curl, CURLOPT_PROXYAUTH, HI);
1044 if(UNEX(res)) {
1045 err("PROXYAUTH", res, __LINE__); goto test_cleanup; }
1046 res = curl_easy_setopt(curl, CURLOPT_FTP_RESPONSE_TIMEOUT, 0L);
1047 if(UNEX(res)) {
1048 err("FTP_RESPONSE_TIMEOUT", res, __LINE__); goto test_cleanup; }
1049 res = curl_easy_setopt(curl, CURLOPT_FTP_RESPONSE_TIMEOUT, 22L);
1050 if(UNEX(res)) {
1051 err("FTP_RESPONSE_TIMEOUT", res, __LINE__); goto test_cleanup; }
1052 res = curl_easy_setopt(curl, CURLOPT_FTP_RESPONSE_TIMEOUT, LO);
1053 if(UNEX(res)) {
1054 err("FTP_RESPONSE_TIMEOUT", res, __LINE__); goto test_cleanup; }
1055 res = curl_easy_setopt(curl, CURLOPT_FTP_RESPONSE_TIMEOUT, HI);
1056 if(UNEX(res)) {
1057 err("FTP_RESPONSE_TIMEOUT", res, __LINE__); goto test_cleanup; }
1058 res = curl_easy_setopt(curl, CURLOPT_IPRESOLVE, 0L);
1059 if(UNEX(res)) {
1060 err("IPRESOLVE", res, __LINE__); goto test_cleanup; }
1061 res = curl_easy_setopt(curl, CURLOPT_IPRESOLVE, 22L);
1062 if(UNEX(res)) {
1063 err("IPRESOLVE", res, __LINE__); goto test_cleanup; }
1064 res = curl_easy_setopt(curl, CURLOPT_IPRESOLVE, LO);
1065 if(UNEX(res)) {
1066 err("IPRESOLVE", res, __LINE__); goto test_cleanup; }
1067 res = curl_easy_setopt(curl, CURLOPT_IPRESOLVE, HI);
1068 if(UNEX(res)) {
1069 err("IPRESOLVE", res, __LINE__); goto test_cleanup; }
1070 res = curl_easy_setopt(curl, CURLOPT_MAXFILESIZE, 0L);
1071 if(UNEX(res)) {
1072 err("MAXFILESIZE", res, __LINE__); goto test_cleanup; }
1073 res = curl_easy_setopt(curl, CURLOPT_MAXFILESIZE, 22L);
1074 if(UNEX(res)) {
1075 err("MAXFILESIZE", res, __LINE__); goto test_cleanup; }
1076 res = curl_easy_setopt(curl, CURLOPT_MAXFILESIZE, LO);
1077 if(UNEX(res)) {
1078 err("MAXFILESIZE", res, __LINE__); goto test_cleanup; }
1079 res = curl_easy_setopt(curl, CURLOPT_MAXFILESIZE, HI);
1080 if(UNEX(res)) {
1081 err("MAXFILESIZE", res, __LINE__); goto test_cleanup; }
1082 res = curl_easy_setopt(curl, CURLOPT_INFILESIZE_LARGE, OFF_NO);
1083 if(UNEX(res)) {
1084 err("INFILESIZE_LARGE", res, __LINE__); goto test_cleanup; }
1085 res = curl_easy_setopt(curl, CURLOPT_INFILESIZE_LARGE, OFF_HI);
1086 if(UNEX(res)) {
1087 err("INFILESIZE_LARGE", res, __LINE__); goto test_cleanup; }
1088 res = curl_easy_setopt(curl, CURLOPT_INFILESIZE_LARGE, OFF_LO);
1089 if(UNEX(res)) {
1090 err("INFILESIZE_LARGE", res, __LINE__); goto test_cleanup; }
1091 res = curl_easy_setopt(curl, CURLOPT_RESUME_FROM_LARGE, OFF_NO);
1092 if(UNEX(res)) {
1093 err("RESUME_FROM_LARGE", res, __LINE__); goto test_cleanup; }
1094 res = curl_easy_setopt(curl, CURLOPT_RESUME_FROM_LARGE, OFF_HI);
1095 if(UNEX(res)) {
1096 err("RESUME_FROM_LARGE", res, __LINE__); goto test_cleanup; }
1097 res = curl_easy_setopt(curl, CURLOPT_RESUME_FROM_LARGE, OFF_LO);
1098 if(UNEX(res)) {
1099 err("RESUME_FROM_LARGE", res, __LINE__); goto test_cleanup; }
1100 res = curl_easy_setopt(curl, CURLOPT_MAXFILESIZE_LARGE, OFF_NO);
1101 if(UNEX(res)) {
1102 err("MAXFILESIZE_LARGE", res, __LINE__); goto test_cleanup; }
1103 res = curl_easy_setopt(curl, CURLOPT_MAXFILESIZE_LARGE, OFF_HI);
1104 if(UNEX(res)) {
1105 err("MAXFILESIZE_LARGE", res, __LINE__); goto test_cleanup; }
1106 res = curl_easy_setopt(curl, CURLOPT_MAXFILESIZE_LARGE, OFF_LO);
1107 if(UNEX(res)) {
1108 err("MAXFILESIZE_LARGE", res, __LINE__); goto test_cleanup; }
1109 res = curl_easy_setopt(curl, CURLOPT_NETRC_FILE, "string");
1110 if(UNEX(res)) {
1111 err("NETRC_FILE", res, __LINE__); goto test_cleanup; }
1112 res = curl_easy_setopt(curl, CURLOPT_NETRC_FILE, NULL);
1113 if(UNEX(res)) {
1114 err("NETRC_FILE", res, __LINE__); goto test_cleanup; }
1115 res = curl_easy_setopt(curl, CURLOPT_USE_SSL, 0L);
1116 if(UNEX(res)) {
1117 err("USE_SSL", res, __LINE__); goto test_cleanup; }
1118 res = curl_easy_setopt(curl, CURLOPT_USE_SSL, 22L);
1119 if(UNEX(res)) {
1120 err("USE_SSL", res, __LINE__); goto test_cleanup; }
1121 res = curl_easy_setopt(curl, CURLOPT_USE_SSL, LO);
1122 if(UNEX(res)) {
1123 err("USE_SSL", res, __LINE__); goto test_cleanup; }
1124 res = curl_easy_setopt(curl, CURLOPT_USE_SSL, HI);
1125 if(UNEX(res)) {
1126 err("USE_SSL", res, __LINE__); goto test_cleanup; }
1127 res = curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE_LARGE, OFF_NO);
1128 if(UNEX(res)) {
1129 err("POSTFIELDSIZE_LARGE", res, __LINE__); goto test_cleanup; }
1130 res = curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE_LARGE, OFF_HI);
1131 if(UNEX(res)) {
1132 err("POSTFIELDSIZE_LARGE", res, __LINE__); goto test_cleanup; }
1133 res = curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE_LARGE, OFF_LO);
1134 if(UNEX(res)) {
1135 err("POSTFIELDSIZE_LARGE", res, __LINE__); goto test_cleanup; }
1136 res = curl_easy_setopt(curl, CURLOPT_TCP_NODELAY, 0L);
1137 if(UNEX(res)) {
1138 err("TCP_NODELAY", res, __LINE__); goto test_cleanup; }
1139 res = curl_easy_setopt(curl, CURLOPT_TCP_NODELAY, 22L);
1140 if(UNEX(res)) {
1141 err("TCP_NODELAY", res, __LINE__); goto test_cleanup; }
1142 res = curl_easy_setopt(curl, CURLOPT_TCP_NODELAY, LO);
1143 if(UNEX(res)) {
1144 err("TCP_NODELAY", res, __LINE__); goto test_cleanup; }
1145 res = curl_easy_setopt(curl, CURLOPT_TCP_NODELAY, HI);
1146 if(UNEX(res)) {
1147 err("TCP_NODELAY", res, __LINE__); goto test_cleanup; }
1148 res = curl_easy_setopt(curl, CURLOPT_FTPSSLAUTH, 0L);
1149 if(UNEX(res)) {
1150 err("FTPSSLAUTH", res, __LINE__); goto test_cleanup; }
1151 res = curl_easy_setopt(curl, CURLOPT_FTPSSLAUTH, 22L);
1152 if(UNEX(res)) {
1153 err("FTPSSLAUTH", res, __LINE__); goto test_cleanup; }
1154 res = curl_easy_setopt(curl, CURLOPT_FTPSSLAUTH, LO);
1155 if(UNEX(res)) {
1156 err("FTPSSLAUTH", res, __LINE__); goto test_cleanup; }
1157 res = curl_easy_setopt(curl, CURLOPT_FTPSSLAUTH, HI);
1158 if(UNEX(res)) {
1159 err("FTPSSLAUTH", res, __LINE__); goto test_cleanup; }
1160 res = curl_easy_setopt(curl, CURLOPT_IOCTLFUNCTION,
1161 ioctlcb);
1162 if(UNEX(res)) {
1163 err("IOCTLFUNCTION", res, __LINE__); goto test_cleanup; }
1164 res = curl_easy_setopt(curl, CURLOPT_IOCTLFUNCTION, NULL);
1165 if(UNEX(res)) {
1166 err("IOCTLFUNCTION", res, __LINE__); goto test_cleanup; }
1167 res = curl_easy_setopt(curl, CURLOPT_IOCTLDATA, &object);
1168 if(UNEX(res)) {
1169 err("IOCTLDATA", res, __LINE__); goto test_cleanup; }
1170 res = curl_easy_setopt(curl, CURLOPT_IOCTLDATA, NULL);
1171 if(UNEX(res)) {
1172 err("IOCTLDATA", res, __LINE__); goto test_cleanup; }
1173 res = curl_easy_setopt(curl, CURLOPT_FTP_ACCOUNT, "string");
1174 if(UNEX(res)) {
1175 err("FTP_ACCOUNT", res, __LINE__); goto test_cleanup; }
1176 res = curl_easy_setopt(curl, CURLOPT_FTP_ACCOUNT, NULL);
1177 if(UNEX(res)) {
1178 err("FTP_ACCOUNT", res, __LINE__); goto test_cleanup; }
1179 res = curl_easy_setopt(curl, CURLOPT_COOKIELIST, "string");
1180 if(UNEX(res)) {
1181 err("COOKIELIST", res, __LINE__); goto test_cleanup; }
1182 res = curl_easy_setopt(curl, CURLOPT_COOKIELIST, NULL);
1183 if(UNEX(res)) {
1184 err("COOKIELIST", res, __LINE__); goto test_cleanup; }
1185 res = curl_easy_setopt(curl, CURLOPT_IGNORE_CONTENT_LENGTH, 0L);
1186 if(UNEX(res)) {
1187 err("IGNORE_CONTENT_LENGTH", res, __LINE__); goto test_cleanup; }
1188 res = curl_easy_setopt(curl, CURLOPT_IGNORE_CONTENT_LENGTH, 22L);
1189 if(UNEX(res)) {
1190 err("IGNORE_CONTENT_LENGTH", res, __LINE__); goto test_cleanup; }
1191 res = curl_easy_setopt(curl, CURLOPT_IGNORE_CONTENT_LENGTH, LO);
1192 if(UNEX(res)) {
1193 err("IGNORE_CONTENT_LENGTH", res, __LINE__); goto test_cleanup; }
1194 res = curl_easy_setopt(curl, CURLOPT_IGNORE_CONTENT_LENGTH, HI);
1195 if(UNEX(res)) {
1196 err("IGNORE_CONTENT_LENGTH", res, __LINE__); goto test_cleanup; }
1197 res = curl_easy_setopt(curl, CURLOPT_FTP_SKIP_PASV_IP, 0L);
1198 if(UNEX(res)) {
1199 err("FTP_SKIP_PASV_IP", res, __LINE__); goto test_cleanup; }
1200 res = curl_easy_setopt(curl, CURLOPT_FTP_SKIP_PASV_IP, 22L);
1201 if(UNEX(res)) {
1202 err("FTP_SKIP_PASV_IP", res, __LINE__); goto test_cleanup; }
1203 res = curl_easy_setopt(curl, CURLOPT_FTP_SKIP_PASV_IP, LO);
1204 if(UNEX(res)) {
1205 err("FTP_SKIP_PASV_IP", res, __LINE__); goto test_cleanup; }
1206 res = curl_easy_setopt(curl, CURLOPT_FTP_SKIP_PASV_IP, HI);
1207 if(UNEX(res)) {
1208 err("FTP_SKIP_PASV_IP", res, __LINE__); goto test_cleanup; }
1209 res = curl_easy_setopt(curl, CURLOPT_FTP_FILEMETHOD, 0L);
1210 if(UNEX(res)) {
1211 err("FTP_FILEMETHOD", res, __LINE__); goto test_cleanup; }
1212 res = curl_easy_setopt(curl, CURLOPT_FTP_FILEMETHOD, 22L);
1213 if(UNEX(res)) {
1214 err("FTP_FILEMETHOD", res, __LINE__); goto test_cleanup; }
1215 res = curl_easy_setopt(curl, CURLOPT_FTP_FILEMETHOD, LO);
1216 if(UNEX(res)) {
1217 err("FTP_FILEMETHOD", res, __LINE__); goto test_cleanup; }
1218 res = curl_easy_setopt(curl, CURLOPT_FTP_FILEMETHOD, HI);
1219 if(UNEX(res)) {
1220 err("FTP_FILEMETHOD", res, __LINE__); goto test_cleanup; }
1221 res = curl_easy_setopt(curl, CURLOPT_LOCALPORT, 0L);
1222 if(UNEX(res)) {
1223 err("LOCALPORT", res, __LINE__); goto test_cleanup; }
1224 res = curl_easy_setopt(curl, CURLOPT_LOCALPORT, 22L);
1225 if(UNEX(res)) {
1226 err("LOCALPORT", res, __LINE__); goto test_cleanup; }
1227 res = curl_easy_setopt(curl, CURLOPT_LOCALPORT, LO);
1228 if(UNEX(res)) {
1229 err("LOCALPORT", res, __LINE__); goto test_cleanup; }
1230 res = curl_easy_setopt(curl, CURLOPT_LOCALPORT, HI);
1231 if(UNEX(res)) {
1232 err("LOCALPORT", res, __LINE__); goto test_cleanup; }
1233 res = curl_easy_setopt(curl, CURLOPT_LOCALPORTRANGE, 0L);
1234 if(UNEX(res)) {
1235 err("LOCALPORTRANGE", res, __LINE__); goto test_cleanup; }
1236 res = curl_easy_setopt(curl, CURLOPT_LOCALPORTRANGE, 22L);
1237 if(UNEX(res)) {
1238 err("LOCALPORTRANGE", res, __LINE__); goto test_cleanup; }
1239 res = curl_easy_setopt(curl, CURLOPT_LOCALPORTRANGE, LO);
1240 if(UNEX(res)) {
1241 err("LOCALPORTRANGE", res, __LINE__); goto test_cleanup; }
1242 res = curl_easy_setopt(curl, CURLOPT_LOCALPORTRANGE, HI);
1243 if(UNEX(res)) {
1244 err("LOCALPORTRANGE", res, __LINE__); goto test_cleanup; }
1245 res = curl_easy_setopt(curl, CURLOPT_CONNECT_ONLY, 0L);
1246 if(UNEX(res)) {
1247 err("CONNECT_ONLY", res, __LINE__); goto test_cleanup; }
1248 res = curl_easy_setopt(curl, CURLOPT_CONNECT_ONLY, 22L);
1249 if(UNEX(res)) {
1250 err("CONNECT_ONLY", res, __LINE__); goto test_cleanup; }
1251 res = curl_easy_setopt(curl, CURLOPT_CONNECT_ONLY, LO);
1252 if(UNEX(res)) {
1253 err("CONNECT_ONLY", res, __LINE__); goto test_cleanup; }
1254 res = curl_easy_setopt(curl, CURLOPT_CONNECT_ONLY, HI);
1255 if(UNEX(res)) {
1256 err("CONNECT_ONLY", res, __LINE__); goto test_cleanup; }
1257 res = curl_easy_setopt(curl, CURLOPT_CONV_FROM_NETWORK_FUNCTION,
1258 conv_from_network_cb);
1259 if(UNEX(res)) {
1260 err("CONV_FROM_NETWORK_FUNCTION", res, __LINE__); goto test_cleanup; }
1261 res = curl_easy_setopt(curl, CURLOPT_CONV_FROM_NETWORK_FUNCTION, NULL);
1262 if(UNEX(res)) {
1263 err("CONV_FROM_NETWORK_FUNCTION", res, __LINE__); goto test_cleanup; }
1264 res = curl_easy_setopt(curl, CURLOPT_CONV_TO_NETWORK_FUNCTION,
1265 conv_to_network_cb);
1266 if(UNEX(res)) {
1267 err("CONV_TO_NETWORK_FUNCTION", res, __LINE__); goto test_cleanup; }
1268 res = curl_easy_setopt(curl, CURLOPT_CONV_TO_NETWORK_FUNCTION, NULL);
1269 if(UNEX(res)) {
1270 err("CONV_TO_NETWORK_FUNCTION", res, __LINE__); goto test_cleanup; }
1271 res = curl_easy_setopt(curl, CURLOPT_CONV_FROM_UTF8_FUNCTION,
1272 conv_from_utf8_cb);
1273 if(UNEX(res)) {
1274 err("CONV_FROM_UTF8_FUNCTION", res, __LINE__); goto test_cleanup; }
1275 res = curl_easy_setopt(curl, CURLOPT_CONV_FROM_UTF8_FUNCTION, NULL);
1276 if(UNEX(res)) {
1277 err("CONV_FROM_UTF8_FUNCTION", res, __LINE__); goto test_cleanup; }
1278 res = curl_easy_setopt(curl, CURLOPT_MAX_SEND_SPEED_LARGE, OFF_NO);
1279 if(UNEX(res)) {
1280 err("MAX_SEND_SPEED_LARGE", res, __LINE__); goto test_cleanup; }
1281 res = curl_easy_setopt(curl, CURLOPT_MAX_SEND_SPEED_LARGE, OFF_HI);
1282 if(UNEX(res)) {
1283 err("MAX_SEND_SPEED_LARGE", res, __LINE__); goto test_cleanup; }
1284 res = curl_easy_setopt(curl, CURLOPT_MAX_SEND_SPEED_LARGE, OFF_LO);
1285 if(UNEX(res)) {
1286 err("MAX_SEND_SPEED_LARGE", res, __LINE__); goto test_cleanup; }
1287 res = curl_easy_setopt(curl, CURLOPT_MAX_RECV_SPEED_LARGE, OFF_NO);
1288 if(UNEX(res)) {
1289 err("MAX_RECV_SPEED_LARGE", res, __LINE__); goto test_cleanup; }
1290 res = curl_easy_setopt(curl, CURLOPT_MAX_RECV_SPEED_LARGE, OFF_HI);
1291 if(UNEX(res)) {
1292 err("MAX_RECV_SPEED_LARGE", res, __LINE__); goto test_cleanup; }
1293 res = curl_easy_setopt(curl, CURLOPT_MAX_RECV_SPEED_LARGE, OFF_LO);
1294 if(UNEX(res)) {
1295 err("MAX_RECV_SPEED_LARGE", res, __LINE__); goto test_cleanup; }
1296 res = curl_easy_setopt(curl, CURLOPT_FTP_ALTERNATIVE_TO_USER, "string");
1297 if(UNEX(res)) {
1298 err("FTP_ALTERNATIVE_TO_USER", res, __LINE__); goto test_cleanup; }
1299 res = curl_easy_setopt(curl, CURLOPT_FTP_ALTERNATIVE_TO_USER, NULL);
1300 if(UNEX(res)) {
1301 err("FTP_ALTERNATIVE_TO_USER", res, __LINE__); goto test_cleanup; }
1302 res = curl_easy_setopt(curl, CURLOPT_SOCKOPTFUNCTION,
1303 sockoptcb);
1304 if(UNEX(res)) {
1305 err("SOCKOPTFUNCTION", res, __LINE__); goto test_cleanup; }
1306 res = curl_easy_setopt(curl, CURLOPT_SOCKOPTFUNCTION, NULL);
1307 if(UNEX(res)) {
1308 err("SOCKOPTFUNCTION", res, __LINE__); goto test_cleanup; }
1309 res = curl_easy_setopt(curl, CURLOPT_SOCKOPTDATA, &object);
1310 if(UNEX(res)) {
1311 err("SOCKOPTDATA", res, __LINE__); goto test_cleanup; }
1312 res = curl_easy_setopt(curl, CURLOPT_SOCKOPTDATA, NULL);
1313 if(UNEX(res)) {
1314 err("SOCKOPTDATA", res, __LINE__); goto test_cleanup; }
1315 res = curl_easy_setopt(curl, CURLOPT_SSL_SESSIONID_CACHE, 0L);
1316 if(UNEX(res)) {
1317 err("SSL_SESSIONID_CACHE", res, __LINE__); goto test_cleanup; }
1318 res = curl_easy_setopt(curl, CURLOPT_SSL_SESSIONID_CACHE, 22L);
1319 if(UNEX(res)) {
1320 err("SSL_SESSIONID_CACHE", res, __LINE__); goto test_cleanup; }
1321 res = curl_easy_setopt(curl, CURLOPT_SSL_SESSIONID_CACHE, LO);
1322 if(UNEX(res)) {
1323 err("SSL_SESSIONID_CACHE", res, __LINE__); goto test_cleanup; }
1324 res = curl_easy_setopt(curl, CURLOPT_SSL_SESSIONID_CACHE, HI);
1325 if(UNEX(res)) {
1326 err("SSL_SESSIONID_CACHE", res, __LINE__); goto test_cleanup; }
1327 res = curl_easy_setopt(curl, CURLOPT_SSH_AUTH_TYPES, 0L);
1328 if(UNEX(res)) {
1329 err("SSH_AUTH_TYPES", res, __LINE__); goto test_cleanup; }
1330 res = curl_easy_setopt(curl, CURLOPT_SSH_AUTH_TYPES, 22L);
1331 if(UNEX(res)) {
1332 err("SSH_AUTH_TYPES", res, __LINE__); goto test_cleanup; }
1333 res = curl_easy_setopt(curl, CURLOPT_SSH_AUTH_TYPES, LO);
1334 if(UNEX(res)) {
1335 err("SSH_AUTH_TYPES", res, __LINE__); goto test_cleanup; }
1336 res = curl_easy_setopt(curl, CURLOPT_SSH_AUTH_TYPES, HI);
1337 if(UNEX(res)) {
1338 err("SSH_AUTH_TYPES", res, __LINE__); goto test_cleanup; }
1339 res = curl_easy_setopt(curl, CURLOPT_SSH_PUBLIC_KEYFILE, "string");
1340 if(UNEX(res)) {
1341 err("SSH_PUBLIC_KEYFILE", res, __LINE__); goto test_cleanup; }
1342 res = curl_easy_setopt(curl, CURLOPT_SSH_PUBLIC_KEYFILE, NULL);
1343 if(UNEX(res)) {
1344 err("SSH_PUBLIC_KEYFILE", res, __LINE__); goto test_cleanup; }
1345 res = curl_easy_setopt(curl, CURLOPT_SSH_PRIVATE_KEYFILE, "string");
1346 if(UNEX(res)) {
1347 err("SSH_PRIVATE_KEYFILE", res, __LINE__); goto test_cleanup; }
1348 res = curl_easy_setopt(curl, CURLOPT_SSH_PRIVATE_KEYFILE, NULL);
1349 if(UNEX(res)) {
1350 err("SSH_PRIVATE_KEYFILE", res, __LINE__); goto test_cleanup; }
1351 res = curl_easy_setopt(curl, CURLOPT_FTP_SSL_CCC, 0L);
1352 if(UNEX(res)) {
1353 err("FTP_SSL_CCC", res, __LINE__); goto test_cleanup; }
1354 res = curl_easy_setopt(curl, CURLOPT_FTP_SSL_CCC, 22L);
1355 if(UNEX(res)) {
1356 err("FTP_SSL_CCC", res, __LINE__); goto test_cleanup; }
1357 res = curl_easy_setopt(curl, CURLOPT_FTP_SSL_CCC, LO);
1358 if(UNEX(res)) {
1359 err("FTP_SSL_CCC", res, __LINE__); goto test_cleanup; }
1360 res = curl_easy_setopt(curl, CURLOPT_FTP_SSL_CCC, HI);
1361 if(UNEX(res)) {
1362 err("FTP_SSL_CCC", res, __LINE__); goto test_cleanup; }
1363 res = curl_easy_setopt(curl, CURLOPT_TIMEOUT_MS, 0L);
1364 if(UNEX(res)) {
1365 err("TIMEOUT_MS", res, __LINE__); goto test_cleanup; }
1366 res = curl_easy_setopt(curl, CURLOPT_TIMEOUT_MS, 22L);
1367 if(UNEX(res)) {
1368 err("TIMEOUT_MS", res, __LINE__); goto test_cleanup; }
1369 res = curl_easy_setopt(curl, CURLOPT_TIMEOUT_MS, LO);
1370 if(UNEX(res)) {
1371 err("TIMEOUT_MS", res, __LINE__); goto test_cleanup; }
1372 res = curl_easy_setopt(curl, CURLOPT_TIMEOUT_MS, HI);
1373 if(UNEX(res)) {
1374 err("TIMEOUT_MS", res, __LINE__); goto test_cleanup; }
1375 res = curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT_MS, 0L);
1376 if(UNEX(res)) {
1377 err("CONNECTTIMEOUT_MS", res, __LINE__); goto test_cleanup; }
1378 res = curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT_MS, 22L);
1379 if(UNEX(res)) {
1380 err("CONNECTTIMEOUT_MS", res, __LINE__); goto test_cleanup; }
1381 res = curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT_MS, LO);
1382 if(UNEX(res)) {
1383 err("CONNECTTIMEOUT_MS", res, __LINE__); goto test_cleanup; }
1384 res = curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT_MS, HI);
1385 if(UNEX(res)) {
1386 err("CONNECTTIMEOUT_MS", res, __LINE__); goto test_cleanup; }
1387 res = curl_easy_setopt(curl, CURLOPT_HTTP_TRANSFER_DECODING, 0L);
1388 if(UNEX(res)) {
1389 err("HTTP_TRANSFER_DECODING", res, __LINE__); goto test_cleanup; }
1390 res = curl_easy_setopt(curl, CURLOPT_HTTP_TRANSFER_DECODING, 22L);
1391 if(UNEX(res)) {
1392 err("HTTP_TRANSFER_DECODING", res, __LINE__); goto test_cleanup; }
1393 res = curl_easy_setopt(curl, CURLOPT_HTTP_TRANSFER_DECODING, LO);
1394 if(UNEX(res)) {
1395 err("HTTP_TRANSFER_DECODING", res, __LINE__); goto test_cleanup; }
1396 res = curl_easy_setopt(curl, CURLOPT_HTTP_TRANSFER_DECODING, HI);
1397 if(UNEX(res)) {
1398 err("HTTP_TRANSFER_DECODING", res, __LINE__); goto test_cleanup; }
1399 res = curl_easy_setopt(curl, CURLOPT_HTTP_CONTENT_DECODING, 0L);
1400 if(UNEX(res)) {
1401 err("HTTP_CONTENT_DECODING", res, __LINE__); goto test_cleanup; }
1402 res = curl_easy_setopt(curl, CURLOPT_HTTP_CONTENT_DECODING, 22L);
1403 if(UNEX(res)) {
1404 err("HTTP_CONTENT_DECODING", res, __LINE__); goto test_cleanup; }
1405 res = curl_easy_setopt(curl, CURLOPT_HTTP_CONTENT_DECODING, LO);
1406 if(UNEX(res)) {
1407 err("HTTP_CONTENT_DECODING", res, __LINE__); goto test_cleanup; }
1408 res = curl_easy_setopt(curl, CURLOPT_HTTP_CONTENT_DECODING, HI);
1409 if(UNEX(res)) {
1410 err("HTTP_CONTENT_DECODING", res, __LINE__); goto test_cleanup; }
1411 res = curl_easy_setopt(curl, CURLOPT_NEW_FILE_PERMS, 0L);
1412 if(UNEX(res)) {
1413 err("NEW_FILE_PERMS", res, __LINE__); goto test_cleanup; }
1414 res = curl_easy_setopt(curl, CURLOPT_NEW_FILE_PERMS, 22L);
1415 if(UNEX(res)) {
1416 err("NEW_FILE_PERMS", res, __LINE__); goto test_cleanup; }
1417 res = curl_easy_setopt(curl, CURLOPT_NEW_FILE_PERMS, LO);
1418 if(UNEX(res)) {
1419 err("NEW_FILE_PERMS", res, __LINE__); goto test_cleanup; }
1420 res = curl_easy_setopt(curl, CURLOPT_NEW_FILE_PERMS, HI);
1421 if(UNEX(res)) {
1422 err("NEW_FILE_PERMS", res, __LINE__); goto test_cleanup; }
1423 res = curl_easy_setopt(curl, CURLOPT_NEW_DIRECTORY_PERMS, 0L);
1424 if(UNEX(res)) {
1425 err("NEW_DIRECTORY_PERMS", res, __LINE__); goto test_cleanup; }
1426 res = curl_easy_setopt(curl, CURLOPT_NEW_DIRECTORY_PERMS, 22L);
1427 if(UNEX(res)) {
1428 err("NEW_DIRECTORY_PERMS", res, __LINE__); goto test_cleanup; }
1429 res = curl_easy_setopt(curl, CURLOPT_NEW_DIRECTORY_PERMS, LO);
1430 if(UNEX(res)) {
1431 err("NEW_DIRECTORY_PERMS", res, __LINE__); goto test_cleanup; }
1432 res = curl_easy_setopt(curl, CURLOPT_NEW_DIRECTORY_PERMS, HI);
1433 if(UNEX(res)) {
1434 err("NEW_DIRECTORY_PERMS", res, __LINE__); goto test_cleanup; }
1435 res = curl_easy_setopt(curl, CURLOPT_POSTREDIR, 0L);
1436 if(UNEX(res)) {
1437 err("POSTREDIR", res, __LINE__); goto test_cleanup; }
1438 res = curl_easy_setopt(curl, CURLOPT_POSTREDIR, 22L);
1439 if(UNEX(res)) {
1440 err("POSTREDIR", res, __LINE__); goto test_cleanup; }
1441 res = curl_easy_setopt(curl, CURLOPT_POSTREDIR, LO);
1442 if(UNEX(res)) {
1443 err("POSTREDIR", res, __LINE__); goto test_cleanup; }
1444 res = curl_easy_setopt(curl, CURLOPT_POSTREDIR, HI);
1445 if(UNEX(res)) {
1446 err("POSTREDIR", res, __LINE__); goto test_cleanup; }
1447 res = curl_easy_setopt(curl, CURLOPT_SSH_HOST_PUBLIC_KEY_MD5, "string");
1448 if(UNEX(res)) {
1449 err("SSH_HOST_PUBLIC_KEY_MD5", res, __LINE__); goto test_cleanup; }
1450 res = curl_easy_setopt(curl, CURLOPT_SSH_HOST_PUBLIC_KEY_MD5, NULL);
1451 if(UNEX(res)) {
1452 err("SSH_HOST_PUBLIC_KEY_MD5", res, __LINE__); goto test_cleanup; }
1453 res = curl_easy_setopt(curl, CURLOPT_OPENSOCKETFUNCTION,
1454 opensocketcb);
1455 if(UNEX(res)) {
1456 err("OPENSOCKETFUNCTION", res, __LINE__); goto test_cleanup; }
1457 res = curl_easy_setopt(curl, CURLOPT_OPENSOCKETFUNCTION, NULL);
1458 if(UNEX(res)) {
1459 err("OPENSOCKETFUNCTION", res, __LINE__); goto test_cleanup; }
1460 res = curl_easy_setopt(curl, CURLOPT_OPENSOCKETDATA, &object);
1461 if(UNEX(res)) {
1462 err("OPENSOCKETDATA", res, __LINE__); goto test_cleanup; }
1463 res = curl_easy_setopt(curl, CURLOPT_OPENSOCKETDATA, NULL);
1464 if(UNEX(res)) {
1465 err("OPENSOCKETDATA", res, __LINE__); goto test_cleanup; }
1466 (void)curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE, 0);
1467 res = curl_easy_setopt(curl, CURLOPT_COPYPOSTFIELDS, stringpointerextra);
1468 if(UNEX(res)) {
1469 err("COPYPOSTFIELDS", res, __LINE__); goto test_cleanup; }
1470 res = curl_easy_setopt(curl, CURLOPT_COPYPOSTFIELDS, NULL);
1471 if(UNEX(res)) {
1472 err("COPYPOSTFIELDS", res, __LINE__); goto test_cleanup; }
1473 res = curl_easy_setopt(curl, CURLOPT_PROXY_TRANSFER_MODE, 0L);
1474 if(UNEX(res)) {
1475 err("PROXY_TRANSFER_MODE", res, __LINE__); goto test_cleanup; }
1476 res = curl_easy_setopt(curl, CURLOPT_PROXY_TRANSFER_MODE, 22L);
1477 if(UNEX(res)) {
1478 err("PROXY_TRANSFER_MODE", res, __LINE__); goto test_cleanup; }
1479 res = curl_easy_setopt(curl, CURLOPT_PROXY_TRANSFER_MODE, LO);
1480 if(UNEX(res)) {
1481 err("PROXY_TRANSFER_MODE", res, __LINE__); goto test_cleanup; }
1482 res = curl_easy_setopt(curl, CURLOPT_PROXY_TRANSFER_MODE, HI);
1483 if(UNEX(res)) {
1484 err("PROXY_TRANSFER_MODE", res, __LINE__); goto test_cleanup; }
1485 res = curl_easy_setopt(curl, CURLOPT_SEEKFUNCTION,
1486 seekcb);
1487 if(UNEX(res)) {
1488 err("SEEKFUNCTION", res, __LINE__); goto test_cleanup; }
1489 res = curl_easy_setopt(curl, CURLOPT_SEEKFUNCTION, NULL);
1490 if(UNEX(res)) {
1491 err("SEEKFUNCTION", res, __LINE__); goto test_cleanup; }
1492 res = curl_easy_setopt(curl, CURLOPT_SEEKDATA, &object);
1493 if(UNEX(res)) {
1494 err("SEEKDATA", res, __LINE__); goto test_cleanup; }
1495 res = curl_easy_setopt(curl, CURLOPT_SEEKDATA, NULL);
1496 if(UNEX(res)) {
1497 err("SEEKDATA", res, __LINE__); goto test_cleanup; }
1498 res = curl_easy_setopt(curl, CURLOPT_CRLFILE, "string");
1499 if(UNEX(res)) {
1500 err("CRLFILE", res, __LINE__); goto test_cleanup; }
1501 res = curl_easy_setopt(curl, CURLOPT_CRLFILE, NULL);
1502 if(UNEX(res)) {
1503 err("CRLFILE", res, __LINE__); goto test_cleanup; }
1504 res = curl_easy_setopt(curl, CURLOPT_ISSUERCERT, "string");
1505 if(UNEX(res)) {
1506 err("ISSUERCERT", res, __LINE__); goto test_cleanup; }
1507 res = curl_easy_setopt(curl, CURLOPT_ISSUERCERT, NULL);
1508 if(UNEX(res)) {
1509 err("ISSUERCERT", res, __LINE__); goto test_cleanup; }
1510 res = curl_easy_setopt(curl, CURLOPT_ADDRESS_SCOPE, 0L);
1511 if(UNEX(res)) {
1512 err("ADDRESS_SCOPE", res, __LINE__); goto test_cleanup; }
1513 res = curl_easy_setopt(curl, CURLOPT_ADDRESS_SCOPE, 22L);
1514 if(UNEX(res)) {
1515 err("ADDRESS_SCOPE", res, __LINE__); goto test_cleanup; }
1516 res = curl_easy_setopt(curl, CURLOPT_ADDRESS_SCOPE, LO);
1517 if(UNEX(res)) {
1518 err("ADDRESS_SCOPE", res, __LINE__); goto test_cleanup; }
1519 res = curl_easy_setopt(curl, CURLOPT_ADDRESS_SCOPE, HI);
1520 if(UNEX(res)) {
1521 err("ADDRESS_SCOPE", res, __LINE__); goto test_cleanup; }
1522 res = curl_easy_setopt(curl, CURLOPT_CERTINFO, 0L);
1523 if(UNEX(res)) {
1524 err("CERTINFO", res, __LINE__); goto test_cleanup; }
1525 res = curl_easy_setopt(curl, CURLOPT_CERTINFO, 22L);
1526 if(UNEX(res)) {
1527 err("CERTINFO", res, __LINE__); goto test_cleanup; }
1528 res = curl_easy_setopt(curl, CURLOPT_CERTINFO, LO);
1529 if(UNEX(res)) {
1530 err("CERTINFO", res, __LINE__); goto test_cleanup; }
1531 res = curl_easy_setopt(curl, CURLOPT_CERTINFO, HI);
1532 if(UNEX(res)) {
1533 err("CERTINFO", res, __LINE__); goto test_cleanup; }
1534 res = curl_easy_setopt(curl, CURLOPT_USERNAME, "string");
1535 if(UNEX(res)) {
1536 err("USERNAME", res, __LINE__); goto test_cleanup; }
1537 res = curl_easy_setopt(curl, CURLOPT_USERNAME, NULL);
1538 if(UNEX(res)) {
1539 err("USERNAME", res, __LINE__); goto test_cleanup; }
1540 res = curl_easy_setopt(curl, CURLOPT_PASSWORD, "string");
1541 if(UNEX(res)) {
1542 err("PASSWORD", res, __LINE__); goto test_cleanup; }
1543 res = curl_easy_setopt(curl, CURLOPT_PASSWORD, NULL);
1544 if(UNEX(res)) {
1545 err("PASSWORD", res, __LINE__); goto test_cleanup; }
1546 res = curl_easy_setopt(curl, CURLOPT_PROXYUSERNAME, "string");
1547 if(UNEX(res)) {
1548 err("PROXYUSERNAME", res, __LINE__); goto test_cleanup; }
1549 res = curl_easy_setopt(curl, CURLOPT_PROXYUSERNAME, NULL);
1550 if(UNEX(res)) {
1551 err("PROXYUSERNAME", res, __LINE__); goto test_cleanup; }
1552 res = curl_easy_setopt(curl, CURLOPT_PROXYPASSWORD, "string");
1553 if(UNEX(res)) {
1554 err("PROXYPASSWORD", res, __LINE__); goto test_cleanup; }
1555 res = curl_easy_setopt(curl, CURLOPT_PROXYPASSWORD, NULL);
1556 if(UNEX(res)) {
1557 err("PROXYPASSWORD", res, __LINE__); goto test_cleanup; }
1558 res = curl_easy_setopt(curl, CURLOPT_NOPROXY, "string");
1559 if(UNEX(res)) {
1560 err("NOPROXY", res, __LINE__); goto test_cleanup; }
1561 res = curl_easy_setopt(curl, CURLOPT_NOPROXY, NULL);
1562 if(UNEX(res)) {
1563 err("NOPROXY", res, __LINE__); goto test_cleanup; }
1564 res = curl_easy_setopt(curl, CURLOPT_TFTP_BLKSIZE, 0L);
1565 if(UNEX(res)) {
1566 err("TFTP_BLKSIZE", res, __LINE__); goto test_cleanup; }
1567 res = curl_easy_setopt(curl, CURLOPT_TFTP_BLKSIZE, 22L);
1568 if(UNEX(res)) {
1569 err("TFTP_BLKSIZE", res, __LINE__); goto test_cleanup; }
1570 res = curl_easy_setopt(curl, CURLOPT_TFTP_BLKSIZE, LO);
1571 if(UNEX(res)) {
1572 err("TFTP_BLKSIZE", res, __LINE__); goto test_cleanup; }
1573 res = curl_easy_setopt(curl, CURLOPT_TFTP_BLKSIZE, HI);
1574 if(UNEX(res)) {
1575 err("TFTP_BLKSIZE", res, __LINE__); goto test_cleanup; }
1576 res = curl_easy_setopt(curl, CURLOPT_SOCKS5_GSSAPI_SERVICE, "string");
1577 if(UNEX(res)) {
1578 err("SOCKS5_GSSAPI_SERVICE", res, __LINE__); goto test_cleanup; }
1579 res = curl_easy_setopt(curl, CURLOPT_SOCKS5_GSSAPI_SERVICE, NULL);
1580 if(UNEX(res)) {
1581 err("SOCKS5_GSSAPI_SERVICE", res, __LINE__); goto test_cleanup; }
1582 res = curl_easy_setopt(curl, CURLOPT_SOCKS5_GSSAPI_NEC, 0L);
1583 if(UNEX(res)) {
1584 err("SOCKS5_GSSAPI_NEC", res, __LINE__); goto test_cleanup; }
1585 res = curl_easy_setopt(curl, CURLOPT_SOCKS5_GSSAPI_NEC, 22L);
1586 if(UNEX(res)) {
1587 err("SOCKS5_GSSAPI_NEC", res, __LINE__); goto test_cleanup; }
1588 res = curl_easy_setopt(curl, CURLOPT_SOCKS5_GSSAPI_NEC, LO);
1589 if(UNEX(res)) {
1590 err("SOCKS5_GSSAPI_NEC", res, __LINE__); goto test_cleanup; }
1591 res = curl_easy_setopt(curl, CURLOPT_SOCKS5_GSSAPI_NEC, HI);
1592 if(UNEX(res)) {
1593 err("SOCKS5_GSSAPI_NEC", res, __LINE__); goto test_cleanup; }
1594 res = curl_easy_setopt(curl, CURLOPT_PROTOCOLS, 0L);
1595 if(UNEX(res)) {
1596 err("PROTOCOLS", res, __LINE__); goto test_cleanup; }
1597 res = curl_easy_setopt(curl, CURLOPT_PROTOCOLS, 22L);
1598 if(UNEX(res)) {
1599 err("PROTOCOLS", res, __LINE__); goto test_cleanup; }
1600 res = curl_easy_setopt(curl, CURLOPT_PROTOCOLS, LO);
1601 if(UNEX(res)) {
1602 err("PROTOCOLS", res, __LINE__); goto test_cleanup; }
1603 res = curl_easy_setopt(curl, CURLOPT_PROTOCOLS, HI);
1604 if(UNEX(res)) {
1605 err("PROTOCOLS", res, __LINE__); goto test_cleanup; }
1606 res = curl_easy_setopt(curl, CURLOPT_REDIR_PROTOCOLS, 0L);
1607 if(UNEX(res)) {
1608 err("REDIR_PROTOCOLS", res, __LINE__); goto test_cleanup; }
1609 res = curl_easy_setopt(curl, CURLOPT_REDIR_PROTOCOLS, 22L);
1610 if(UNEX(res)) {
1611 err("REDIR_PROTOCOLS", res, __LINE__); goto test_cleanup; }
1612 res = curl_easy_setopt(curl, CURLOPT_REDIR_PROTOCOLS, LO);
1613 if(UNEX(res)) {
1614 err("REDIR_PROTOCOLS", res, __LINE__); goto test_cleanup; }
1615 res = curl_easy_setopt(curl, CURLOPT_REDIR_PROTOCOLS, HI);
1616 if(UNEX(res)) {
1617 err("REDIR_PROTOCOLS", res, __LINE__); goto test_cleanup; }
1618 res = curl_easy_setopt(curl, CURLOPT_SSH_KNOWNHOSTS, "string");
1619 if(UNEX(res)) {
1620 err("SSH_KNOWNHOSTS", res, __LINE__); goto test_cleanup; }
1621 res = curl_easy_setopt(curl, CURLOPT_SSH_KNOWNHOSTS, NULL);
1622 if(UNEX(res)) {
1623 err("SSH_KNOWNHOSTS", res, __LINE__); goto test_cleanup; }
1624 res = curl_easy_setopt(curl, CURLOPT_SSH_KEYFUNCTION,
1625 ssh_keycb);
1626 if(UNEX(res)) {
1627 err("SSH_KEYFUNCTION", res, __LINE__); goto test_cleanup; }
1628 res = curl_easy_setopt(curl, CURLOPT_SSH_KEYFUNCTION, NULL);
1629 if(UNEX(res)) {
1630 err("SSH_KEYFUNCTION", res, __LINE__); goto test_cleanup; }
1631 res = curl_easy_setopt(curl, CURLOPT_SSH_KEYDATA, &object);
1632 if(UNEX(res)) {
1633 err("SSH_KEYDATA", res, __LINE__); goto test_cleanup; }
1634 res = curl_easy_setopt(curl, CURLOPT_SSH_KEYDATA, NULL);
1635 if(UNEX(res)) {
1636 err("SSH_KEYDATA", res, __LINE__); goto test_cleanup; }
1637 res = curl_easy_setopt(curl, CURLOPT_MAIL_FROM, "string");
1638 if(UNEX(res)) {
1639 err("MAIL_FROM", res, __LINE__); goto test_cleanup; }
1640 res = curl_easy_setopt(curl, CURLOPT_MAIL_FROM, NULL);
1641 if(UNEX(res)) {
1642 err("MAIL_FROM", res, __LINE__); goto test_cleanup; }
1643 res = curl_easy_setopt(curl, CURLOPT_MAIL_RCPT, slist);
1644 if(UNEX(res)) {
1645 err("MAIL_RCPT", res, __LINE__); goto test_cleanup; }
1646 res = curl_easy_setopt(curl, CURLOPT_FTP_USE_PRET, 0L);
1647 if(UNEX(res)) {
1648 err("FTP_USE_PRET", res, __LINE__); goto test_cleanup; }
1649 res = curl_easy_setopt(curl, CURLOPT_FTP_USE_PRET, 22L);
1650 if(UNEX(res)) {
1651 err("FTP_USE_PRET", res, __LINE__); goto test_cleanup; }
1652 res = curl_easy_setopt(curl, CURLOPT_FTP_USE_PRET, LO);
1653 if(UNEX(res)) {
1654 err("FTP_USE_PRET", res, __LINE__); goto test_cleanup; }
1655 res = curl_easy_setopt(curl, CURLOPT_FTP_USE_PRET, HI);
1656 if(UNEX(res)) {
1657 err("FTP_USE_PRET", res, __LINE__); goto test_cleanup; }
1658 res = curl_easy_setopt(curl, CURLOPT_RTSP_REQUEST, 0L);
1659 if(UNEX(res)) {
1660 err("RTSP_REQUEST", res, __LINE__); goto test_cleanup; }
1661 res = curl_easy_setopt(curl, CURLOPT_RTSP_REQUEST, 22L);
1662 if(UNEX(res)) {
1663 err("RTSP_REQUEST", res, __LINE__); goto test_cleanup; }
1664 res = curl_easy_setopt(curl, CURLOPT_RTSP_REQUEST, LO);
1665 if(UNEX(res)) {
1666 err("RTSP_REQUEST", res, __LINE__); goto test_cleanup; }
1667 res = curl_easy_setopt(curl, CURLOPT_RTSP_REQUEST, HI);
1668 if(UNEX(res)) {
1669 err("RTSP_REQUEST", res, __LINE__); goto test_cleanup; }
1670 res = curl_easy_setopt(curl, CURLOPT_RTSP_SESSION_ID, "string");
1671 if(UNEX(res)) {
1672 err("RTSP_SESSION_ID", res, __LINE__); goto test_cleanup; }
1673 res = curl_easy_setopt(curl, CURLOPT_RTSP_SESSION_ID, NULL);
1674 if(UNEX(res)) {
1675 err("RTSP_SESSION_ID", res, __LINE__); goto test_cleanup; }
1676 res = curl_easy_setopt(curl, CURLOPT_RTSP_STREAM_URI, "string");
1677 if(UNEX(res)) {
1678 err("RTSP_STREAM_URI", res, __LINE__); goto test_cleanup; }
1679 res = curl_easy_setopt(curl, CURLOPT_RTSP_STREAM_URI, NULL);
1680 if(UNEX(res)) {
1681 err("RTSP_STREAM_URI", res, __LINE__); goto test_cleanup; }
1682 res = curl_easy_setopt(curl, CURLOPT_RTSP_TRANSPORT, "string");
1683 if(UNEX(res)) {
1684 err("RTSP_TRANSPORT", res, __LINE__); goto test_cleanup; }
1685 res = curl_easy_setopt(curl, CURLOPT_RTSP_TRANSPORT, NULL);
1686 if(UNEX(res)) {
1687 err("RTSP_TRANSPORT", res, __LINE__); goto test_cleanup; }
1688 res = curl_easy_setopt(curl, CURLOPT_RTSP_CLIENT_CSEQ, 0L);
1689 if(UNEX(res)) {
1690 err("RTSP_CLIENT_CSEQ", res, __LINE__); goto test_cleanup; }
1691 res = curl_easy_setopt(curl, CURLOPT_RTSP_CLIENT_CSEQ, 22L);
1692 if(UNEX(res)) {
1693 err("RTSP_CLIENT_CSEQ", res, __LINE__); goto test_cleanup; }
1694 res = curl_easy_setopt(curl, CURLOPT_RTSP_CLIENT_CSEQ, LO);
1695 if(UNEX(res)) {
1696 err("RTSP_CLIENT_CSEQ", res, __LINE__); goto test_cleanup; }
1697 res = curl_easy_setopt(curl, CURLOPT_RTSP_CLIENT_CSEQ, HI);
1698 if(UNEX(res)) {
1699 err("RTSP_CLIENT_CSEQ", res, __LINE__); goto test_cleanup; }
1700 res = curl_easy_setopt(curl, CURLOPT_RTSP_SERVER_CSEQ, 0L);
1701 if(UNEX(res)) {
1702 err("RTSP_SERVER_CSEQ", res, __LINE__); goto test_cleanup; }
1703 res = curl_easy_setopt(curl, CURLOPT_RTSP_SERVER_CSEQ, 22L);
1704 if(UNEX(res)) {
1705 err("RTSP_SERVER_CSEQ", res, __LINE__); goto test_cleanup; }
1706 res = curl_easy_setopt(curl, CURLOPT_RTSP_SERVER_CSEQ, LO);
1707 if(UNEX(res)) {
1708 err("RTSP_SERVER_CSEQ", res, __LINE__); goto test_cleanup; }
1709 res = curl_easy_setopt(curl, CURLOPT_RTSP_SERVER_CSEQ, HI);
1710 if(UNEX(res)) {
1711 err("RTSP_SERVER_CSEQ", res, __LINE__); goto test_cleanup; }
1712 res = curl_easy_setopt(curl, CURLOPT_INTERLEAVEDATA, &object);
1713 if(UNEX(res)) {
1714 err("INTERLEAVEDATA", res, __LINE__); goto test_cleanup; }
1715 res = curl_easy_setopt(curl, CURLOPT_INTERLEAVEDATA, NULL);
1716 if(UNEX(res)) {
1717 err("INTERLEAVEDATA", res, __LINE__); goto test_cleanup; }
1718 res = curl_easy_setopt(curl, CURLOPT_INTERLEAVEFUNCTION,
1719 interleavecb);
1720 if(UNEX(res)) {
1721 err("INTERLEAVEFUNCTION", res, __LINE__); goto test_cleanup; }
1722 res = curl_easy_setopt(curl, CURLOPT_INTERLEAVEFUNCTION, NULL);
1723 if(UNEX(res)) {
1724 err("INTERLEAVEFUNCTION", res, __LINE__); goto test_cleanup; }
1725 res = curl_easy_setopt(curl, CURLOPT_WILDCARDMATCH, 0L);
1726 if(UNEX(res)) {
1727 err("WILDCARDMATCH", res, __LINE__); goto test_cleanup; }
1728 res = curl_easy_setopt(curl, CURLOPT_WILDCARDMATCH, 22L);
1729 if(UNEX(res)) {
1730 err("WILDCARDMATCH", res, __LINE__); goto test_cleanup; }
1731 res = curl_easy_setopt(curl, CURLOPT_WILDCARDMATCH, LO);
1732 if(UNEX(res)) {
1733 err("WILDCARDMATCH", res, __LINE__); goto test_cleanup; }
1734 res = curl_easy_setopt(curl, CURLOPT_WILDCARDMATCH, HI);
1735 if(UNEX(res)) {
1736 err("WILDCARDMATCH", res, __LINE__); goto test_cleanup; }
1737 res = curl_easy_setopt(curl, CURLOPT_CHUNK_BGN_FUNCTION,
1738 chunk_bgn_cb);
1739 if(UNEX(res)) {
1740 err("CHUNK_BGN_FUNCTION", res, __LINE__); goto test_cleanup; }
1741 res = curl_easy_setopt(curl, CURLOPT_CHUNK_BGN_FUNCTION, NULL);
1742 if(UNEX(res)) {
1743 err("CHUNK_BGN_FUNCTION", res, __LINE__); goto test_cleanup; }
1744 res = curl_easy_setopt(curl, CURLOPT_CHUNK_END_FUNCTION,
1745 chunk_end_cb);
1746 if(UNEX(res)) {
1747 err("CHUNK_END_FUNCTION", res, __LINE__); goto test_cleanup; }
1748 res = curl_easy_setopt(curl, CURLOPT_CHUNK_END_FUNCTION, NULL);
1749 if(UNEX(res)) {
1750 err("CHUNK_END_FUNCTION", res, __LINE__); goto test_cleanup; }
1751 res = curl_easy_setopt(curl, CURLOPT_FNMATCH_FUNCTION,
1752 fnmatch_cb);
1753 if(UNEX(res)) {
1754 err("FNMATCH_FUNCTION", res, __LINE__); goto test_cleanup; }
1755 res = curl_easy_setopt(curl, CURLOPT_FNMATCH_FUNCTION, NULL);
1756 if(UNEX(res)) {
1757 err("FNMATCH_FUNCTION", res, __LINE__); goto test_cleanup; }
1758 res = curl_easy_setopt(curl, CURLOPT_CHUNK_DATA, &object);
1759 if(UNEX(res)) {
1760 err("CHUNK_DATA", res, __LINE__); goto test_cleanup; }
1761 res = curl_easy_setopt(curl, CURLOPT_CHUNK_DATA, NULL);
1762 if(UNEX(res)) {
1763 err("CHUNK_DATA", res, __LINE__); goto test_cleanup; }
1764 res = curl_easy_setopt(curl, CURLOPT_FNMATCH_DATA, &object);
1765 if(UNEX(res)) {
1766 err("FNMATCH_DATA", res, __LINE__); goto test_cleanup; }
1767 res = curl_easy_setopt(curl, CURLOPT_FNMATCH_DATA, NULL);
1768 if(UNEX(res)) {
1769 err("FNMATCH_DATA", res, __LINE__); goto test_cleanup; }
1770 res = curl_easy_setopt(curl, CURLOPT_RESOLVE, slist);
1771 if(UNEX(res)) {
1772 err("RESOLVE", res, __LINE__); goto test_cleanup; }
1773 res = curl_easy_setopt(curl, CURLOPT_TLSAUTH_USERNAME, "string");
1774 if(UNEX(res)) {
1775 err("TLSAUTH_USERNAME", res, __LINE__); goto test_cleanup; }
1776 res = curl_easy_setopt(curl, CURLOPT_TLSAUTH_USERNAME, NULL);
1777 if(UNEX(res)) {
1778 err("TLSAUTH_USERNAME", res, __LINE__); goto test_cleanup; }
1779 res = curl_easy_setopt(curl, CURLOPT_TLSAUTH_PASSWORD, "string");
1780 if(UNEX(res)) {
1781 err("TLSAUTH_PASSWORD", res, __LINE__); goto test_cleanup; }
1782 res = curl_easy_setopt(curl, CURLOPT_TLSAUTH_PASSWORD, NULL);
1783 if(UNEX(res)) {
1784 err("TLSAUTH_PASSWORD", res, __LINE__); goto test_cleanup; }
1785 res = curl_easy_setopt(curl, CURLOPT_TLSAUTH_TYPE, "string");
1786 if(UNEX(res)) {
1787 err("TLSAUTH_TYPE", res, __LINE__); goto test_cleanup; }
1788 res = curl_easy_setopt(curl, CURLOPT_TLSAUTH_TYPE, NULL);
1789 if(UNEX(res)) {
1790 err("TLSAUTH_TYPE", res, __LINE__); goto test_cleanup; }
1791 res = curl_easy_setopt(curl, CURLOPT_TRANSFER_ENCODING, 0L);
1792 if(UNEX(res)) {
1793 err("TRANSFER_ENCODING", res, __LINE__); goto test_cleanup; }
1794 res = curl_easy_setopt(curl, CURLOPT_TRANSFER_ENCODING, 22L);
1795 if(UNEX(res)) {
1796 err("TRANSFER_ENCODING", res, __LINE__); goto test_cleanup; }
1797 res = curl_easy_setopt(curl, CURLOPT_TRANSFER_ENCODING, LO);
1798 if(UNEX(res)) {
1799 err("TRANSFER_ENCODING", res, __LINE__); goto test_cleanup; }
1800 res = curl_easy_setopt(curl, CURLOPT_TRANSFER_ENCODING, HI);
1801 if(UNEX(res)) {
1802 err("TRANSFER_ENCODING", res, __LINE__); goto test_cleanup; }
1803 res = curl_easy_setopt(curl, CURLOPT_CLOSESOCKETFUNCTION,
1804 closesocketcb);
1805 if(UNEX(res)) {
1806 err("CLOSESOCKETFUNCTION", res, __LINE__); goto test_cleanup; }
1807 res = curl_easy_setopt(curl, CURLOPT_CLOSESOCKETFUNCTION, NULL);
1808 if(UNEX(res)) {
1809 err("CLOSESOCKETFUNCTION", res, __LINE__); goto test_cleanup; }
1810 res = curl_easy_setopt(curl, CURLOPT_CLOSESOCKETDATA, &object);
1811 if(UNEX(res)) {
1812 err("CLOSESOCKETDATA", res, __LINE__); goto test_cleanup; }
1813 res = curl_easy_setopt(curl, CURLOPT_CLOSESOCKETDATA, NULL);
1814 if(UNEX(res)) {
1815 err("CLOSESOCKETDATA", res, __LINE__); goto test_cleanup; }
1816 res = curl_easy_setopt(curl, CURLOPT_GSSAPI_DELEGATION, 0L);
1817 if(UNEX(res)) {
1818 err("GSSAPI_DELEGATION", res, __LINE__); goto test_cleanup; }
1819 res = curl_easy_setopt(curl, CURLOPT_GSSAPI_DELEGATION, 22L);
1820 if(UNEX(res)) {
1821 err("GSSAPI_DELEGATION", res, __LINE__); goto test_cleanup; }
1822 res = curl_easy_setopt(curl, CURLOPT_GSSAPI_DELEGATION, LO);
1823 if(UNEX(res)) {
1824 err("GSSAPI_DELEGATION", res, __LINE__); goto test_cleanup; }
1825 res = curl_easy_setopt(curl, CURLOPT_GSSAPI_DELEGATION, HI);
1826 if(UNEX(res)) {
1827 err("GSSAPI_DELEGATION", res, __LINE__); goto test_cleanup; }
1828 res = curl_easy_setopt(curl, CURLOPT_DNS_SERVERS, "string");
1829 if(UNEX(res)) {
1830 err("DNS_SERVERS", res, __LINE__); goto test_cleanup; }
1831 res = curl_easy_setopt(curl, CURLOPT_DNS_SERVERS, NULL);
1832 if(UNEX(res)) {
1833 err("DNS_SERVERS", res, __LINE__); goto test_cleanup; }
1834 res = curl_easy_setopt(curl, CURLOPT_ACCEPTTIMEOUT_MS, 0L);
1835 if(UNEX(res)) {
1836 err("ACCEPTTIMEOUT_MS", res, __LINE__); goto test_cleanup; }
1837 res = curl_easy_setopt(curl, CURLOPT_ACCEPTTIMEOUT_MS, 22L);
1838 if(UNEX(res)) {
1839 err("ACCEPTTIMEOUT_MS", res, __LINE__); goto test_cleanup; }
1840 res = curl_easy_setopt(curl, CURLOPT_ACCEPTTIMEOUT_MS, LO);
1841 if(UNEX(res)) {
1842 err("ACCEPTTIMEOUT_MS", res, __LINE__); goto test_cleanup; }
1843 res = curl_easy_setopt(curl, CURLOPT_ACCEPTTIMEOUT_MS, HI);
1844 if(UNEX(res)) {
1845 err("ACCEPTTIMEOUT_MS", res, __LINE__); goto test_cleanup; }
1846 res = curl_easy_setopt(curl, CURLOPT_TCP_KEEPALIVE, 0L);
1847 if(UNEX(res)) {
1848 err("TCP_KEEPALIVE", res, __LINE__); goto test_cleanup; }
1849 res = curl_easy_setopt(curl, CURLOPT_TCP_KEEPALIVE, 22L);
1850 if(UNEX(res)) {
1851 err("TCP_KEEPALIVE", res, __LINE__); goto test_cleanup; }
1852 res = curl_easy_setopt(curl, CURLOPT_TCP_KEEPALIVE, LO);
1853 if(UNEX(res)) {
1854 err("TCP_KEEPALIVE", res, __LINE__); goto test_cleanup; }
1855 res = curl_easy_setopt(curl, CURLOPT_TCP_KEEPALIVE, HI);
1856 if(UNEX(res)) {
1857 err("TCP_KEEPALIVE", res, __LINE__); goto test_cleanup; }
1858 res = curl_easy_setopt(curl, CURLOPT_TCP_KEEPIDLE, 0L);
1859 if(UNEX(res)) {
1860 err("TCP_KEEPIDLE", res, __LINE__); goto test_cleanup; }
1861 res = curl_easy_setopt(curl, CURLOPT_TCP_KEEPIDLE, 22L);
1862 if(UNEX(res)) {
1863 err("TCP_KEEPIDLE", res, __LINE__); goto test_cleanup; }
1864 res = curl_easy_setopt(curl, CURLOPT_TCP_KEEPIDLE, LO);
1865 if(UNEX(res)) {
1866 err("TCP_KEEPIDLE", res, __LINE__); goto test_cleanup; }
1867 res = curl_easy_setopt(curl, CURLOPT_TCP_KEEPIDLE, HI);
1868 if(UNEX(res)) {
1869 err("TCP_KEEPIDLE", res, __LINE__); goto test_cleanup; }
1870 res = curl_easy_setopt(curl, CURLOPT_TCP_KEEPINTVL, 0L);
1871 if(UNEX(res)) {
1872 err("TCP_KEEPINTVL", res, __LINE__); goto test_cleanup; }
1873 res = curl_easy_setopt(curl, CURLOPT_TCP_KEEPINTVL, 22L);
1874 if(UNEX(res)) {
1875 err("TCP_KEEPINTVL", res, __LINE__); goto test_cleanup; }
1876 res = curl_easy_setopt(curl, CURLOPT_TCP_KEEPINTVL, LO);
1877 if(UNEX(res)) {
1878 err("TCP_KEEPINTVL", res, __LINE__); goto test_cleanup; }
1879 res = curl_easy_setopt(curl, CURLOPT_TCP_KEEPINTVL, HI);
1880 if(UNEX(res)) {
1881 err("TCP_KEEPINTVL", res, __LINE__); goto test_cleanup; }
1882 res = curl_easy_setopt(curl, CURLOPT_SSL_OPTIONS, 0L);
1883 if(UNEX(res)) {
1884 err("SSL_OPTIONS", res, __LINE__); goto test_cleanup; }
1885 res = curl_easy_setopt(curl, CURLOPT_SSL_OPTIONS, 22L);
1886 if(UNEX(res)) {
1887 err("SSL_OPTIONS", res, __LINE__); goto test_cleanup; }
1888 res = curl_easy_setopt(curl, CURLOPT_SSL_OPTIONS, LO);
1889 if(UNEX(res)) {
1890 err("SSL_OPTIONS", res, __LINE__); goto test_cleanup; }
1891 res = curl_easy_setopt(curl, CURLOPT_SSL_OPTIONS, HI);
1892 if(UNEX(res)) {
1893 err("SSL_OPTIONS", res, __LINE__); goto test_cleanup; }
1894 res = curl_easy_setopt(curl, CURLOPT_MAIL_AUTH, "string");
1895 if(UNEX(res)) {
1896 err("MAIL_AUTH", res, __LINE__); goto test_cleanup; }
1897 res = curl_easy_setopt(curl, CURLOPT_MAIL_AUTH, NULL);
1898 if(UNEX(res)) {
1899 err("MAIL_AUTH", res, __LINE__); goto test_cleanup; }
1900 res = curl_easy_setopt(curl, CURLOPT_SASL_IR, 0L);
1901 if(UNEX(res)) {
1902 err("SASL_IR", res, __LINE__); goto test_cleanup; }
1903 res = curl_easy_setopt(curl, CURLOPT_SASL_IR, 22L);
1904 if(UNEX(res)) {
1905 err("SASL_IR", res, __LINE__); goto test_cleanup; }
1906 res = curl_easy_setopt(curl, CURLOPT_SASL_IR, LO);
1907 if(UNEX(res)) {
1908 err("SASL_IR", res, __LINE__); goto test_cleanup; }
1909 res = curl_easy_setopt(curl, CURLOPT_SASL_IR, HI);
1910 if(UNEX(res)) {
1911 err("SASL_IR", res, __LINE__); goto test_cleanup; }
1912 res = curl_easy_setopt(curl, CURLOPT_XFERINFOFUNCTION,
1913 xferinfocb);
1914 if(UNEX(res)) {
1915 err("XFERINFOFUNCTION", res, __LINE__); goto test_cleanup; }
1916 res = curl_easy_setopt(curl, CURLOPT_XFERINFOFUNCTION, NULL);
1917 if(UNEX(res)) {
1918 err("XFERINFOFUNCTION", res, __LINE__); goto test_cleanup; }
1919 res = curl_easy_setopt(curl, CURLOPT_XOAUTH2_BEARER, "string");
1920 if(UNEX(res)) {
1921 err("XOAUTH2_BEARER", res, __LINE__); goto test_cleanup; }
1922 res = curl_easy_setopt(curl, CURLOPT_XOAUTH2_BEARER, NULL);
1923 if(UNEX(res)) {
1924 err("XOAUTH2_BEARER", res, __LINE__); goto test_cleanup; }
1925 res = curl_easy_setopt(curl, CURLOPT_DNS_INTERFACE, "string");
1926 if(UNEX(res)) {
1927 err("DNS_INTERFACE", res, __LINE__); goto test_cleanup; }
1928 res = curl_easy_setopt(curl, CURLOPT_DNS_INTERFACE, NULL);
1929 if(UNEX(res)) {
1930 err("DNS_INTERFACE", res, __LINE__); goto test_cleanup; }
1931 res = curl_easy_setopt(curl, CURLOPT_DNS_LOCAL_IP4, "string");
1932 if(UNEX(res)) {
1933 err("DNS_LOCAL_IP4", res, __LINE__); goto test_cleanup; }
1934 res = curl_easy_setopt(curl, CURLOPT_DNS_LOCAL_IP4, NULL);
1935 if(UNEX(res)) {
1936 err("DNS_LOCAL_IP4", res, __LINE__); goto test_cleanup; }
1937 res = curl_easy_setopt(curl, CURLOPT_DNS_LOCAL_IP6, "string");
1938 if(UNEX(res)) {
1939 err("DNS_LOCAL_IP6", res, __LINE__); goto test_cleanup; }
1940 res = curl_easy_setopt(curl, CURLOPT_DNS_LOCAL_IP6, NULL);
1941 if(UNEX(res)) {
1942 err("DNS_LOCAL_IP6", res, __LINE__); goto test_cleanup; }
1943 res = curl_easy_setopt(curl, CURLOPT_LOGIN_OPTIONS, "string");
1944 if(UNEX(res)) {
1945 err("LOGIN_OPTIONS", res, __LINE__); goto test_cleanup; }
1946 res = curl_easy_setopt(curl, CURLOPT_LOGIN_OPTIONS, NULL);
1947 if(UNEX(res)) {
1948 err("LOGIN_OPTIONS", res, __LINE__); goto test_cleanup; }
1949 res = curl_easy_setopt(curl, CURLOPT_SSL_ENABLE_NPN, 0L);
1950 if(UNEX(res)) {
1951 err("SSL_ENABLE_NPN", res, __LINE__); goto test_cleanup; }
1952 res = curl_easy_setopt(curl, CURLOPT_SSL_ENABLE_NPN, 22L);
1953 if(UNEX(res)) {
1954 err("SSL_ENABLE_NPN", res, __LINE__); goto test_cleanup; }
1955 res = curl_easy_setopt(curl, CURLOPT_SSL_ENABLE_NPN, LO);
1956 if(UNEX(res)) {
1957 err("SSL_ENABLE_NPN", res, __LINE__); goto test_cleanup; }
1958 res = curl_easy_setopt(curl, CURLOPT_SSL_ENABLE_NPN, HI);
1959 if(UNEX(res)) {
1960 err("SSL_ENABLE_NPN", res, __LINE__); goto test_cleanup; }
1961 res = curl_easy_setopt(curl, CURLOPT_SSL_ENABLE_ALPN, 0L);
1962 if(UNEX(res)) {
1963 err("SSL_ENABLE_ALPN", res, __LINE__); goto test_cleanup; }
1964 res = curl_easy_setopt(curl, CURLOPT_SSL_ENABLE_ALPN, 22L);
1965 if(UNEX(res)) {
1966 err("SSL_ENABLE_ALPN", res, __LINE__); goto test_cleanup; }
1967 res = curl_easy_setopt(curl, CURLOPT_SSL_ENABLE_ALPN, LO);
1968 if(UNEX(res)) {
1969 err("SSL_ENABLE_ALPN", res, __LINE__); goto test_cleanup; }
1970 res = curl_easy_setopt(curl, CURLOPT_SSL_ENABLE_ALPN, HI);
1971 if(UNEX(res)) {
1972 err("SSL_ENABLE_ALPN", res, __LINE__); goto test_cleanup; }
1973 res = curl_easy_setopt(curl, CURLOPT_EXPECT_100_TIMEOUT_MS, 0L);
1974 if(UNEX(res)) {
1975 err("EXPECT_100_TIMEOUT_MS", res, __LINE__); goto test_cleanup; }
1976 res = curl_easy_setopt(curl, CURLOPT_EXPECT_100_TIMEOUT_MS, 22L);
1977 if(UNEX(res)) {
1978 err("EXPECT_100_TIMEOUT_MS", res, __LINE__); goto test_cleanup; }
1979 res = curl_easy_setopt(curl, CURLOPT_EXPECT_100_TIMEOUT_MS, LO);
1980 if(UNEX(res)) {
1981 err("EXPECT_100_TIMEOUT_MS", res, __LINE__); goto test_cleanup; }
1982 res = curl_easy_setopt(curl, CURLOPT_EXPECT_100_TIMEOUT_MS, HI);
1983 if(UNEX(res)) {
1984 err("EXPECT_100_TIMEOUT_MS", res, __LINE__); goto test_cleanup; }
1985 res = curl_easy_setopt(curl, CURLOPT_PROXYHEADER, slist);
1986 if(UNEX(res)) {
1987 err("PROXYHEADER", res, __LINE__); goto test_cleanup; }
1988 res = curl_easy_setopt(curl, CURLOPT_HEADEROPT, 0L);
1989 if(UNEX(res)) {
1990 err("HEADEROPT", res, __LINE__); goto test_cleanup; }
1991 res = curl_easy_setopt(curl, CURLOPT_HEADEROPT, 22L);
1992 if(UNEX(res)) {
1993 err("HEADEROPT", res, __LINE__); goto test_cleanup; }
1994 res = curl_easy_setopt(curl, CURLOPT_HEADEROPT, LO);
1995 if(UNEX(res)) {
1996 err("HEADEROPT", res, __LINE__); goto test_cleanup; }
1997 res = curl_easy_setopt(curl, CURLOPT_HEADEROPT, HI);
1998 if(UNEX(res)) {
1999 err("HEADEROPT", res, __LINE__); goto test_cleanup; }
2000 res = curl_easy_setopt(curl, CURLOPT_PINNEDPUBLICKEY, "string");
2001 if(UNEX(res)) {
2002 err("PINNEDPUBLICKEY", res, __LINE__); goto test_cleanup; }
2003 res = curl_easy_setopt(curl, CURLOPT_PINNEDPUBLICKEY, NULL);
2004 if(UNEX(res)) {
2005 err("PINNEDPUBLICKEY", res, __LINE__); goto test_cleanup; }
2006 res = curl_easy_setopt(curl, CURLOPT_UNIX_SOCKET_PATH, "string");
2007 if(UNEX(res)) {
2008 err("UNIX_SOCKET_PATH", res, __LINE__); goto test_cleanup; }
2009 res = curl_easy_setopt(curl, CURLOPT_UNIX_SOCKET_PATH, NULL);
2010 if(UNEX(res)) {
2011 err("UNIX_SOCKET_PATH", res, __LINE__); goto test_cleanup; }
2012 res = curl_easy_setopt(curl, CURLOPT_SSL_VERIFYSTATUS, 0L);
2013 if(UNEX(res)) {
2014 err("SSL_VERIFYSTATUS", res, __LINE__); goto test_cleanup; }
2015 res = curl_easy_setopt(curl, CURLOPT_SSL_VERIFYSTATUS, 22L);
2016 if(UNEX(res)) {
2017 err("SSL_VERIFYSTATUS", res, __LINE__); goto test_cleanup; }
2018 res = curl_easy_setopt(curl, CURLOPT_SSL_VERIFYSTATUS, LO);
2019 if(UNEX(res)) {
2020 err("SSL_VERIFYSTATUS", res, __LINE__); goto test_cleanup; }
2021 res = curl_easy_setopt(curl, CURLOPT_SSL_VERIFYSTATUS, HI);
2022 if(UNEX(res)) {
2023 err("SSL_VERIFYSTATUS", res, __LINE__); goto test_cleanup; }
2024 res = curl_easy_setopt(curl, CURLOPT_SSL_FALSESTART, 0L);
2025 if(UNEX(res)) {
2026 err("SSL_FALSESTART", res, __LINE__); goto test_cleanup; }
2027 res = curl_easy_setopt(curl, CURLOPT_SSL_FALSESTART, 22L);
2028 if(UNEX(res)) {
2029 err("SSL_FALSESTART", res, __LINE__); goto test_cleanup; }
2030 res = curl_easy_setopt(curl, CURLOPT_SSL_FALSESTART, LO);
2031 if(UNEX(res)) {
2032 err("SSL_FALSESTART", res, __LINE__); goto test_cleanup; }
2033 res = curl_easy_setopt(curl, CURLOPT_SSL_FALSESTART, HI);
2034 if(UNEX(res)) {
2035 err("SSL_FALSESTART", res, __LINE__); goto test_cleanup; }
2036 res = curl_easy_setopt(curl, CURLOPT_PATH_AS_IS, 0L);
2037 if(UNEX(res)) {
2038 err("PATH_AS_IS", res, __LINE__); goto test_cleanup; }
2039 res = curl_easy_setopt(curl, CURLOPT_PATH_AS_IS, 22L);
2040 if(UNEX(res)) {
2041 err("PATH_AS_IS", res, __LINE__); goto test_cleanup; }
2042 res = curl_easy_setopt(curl, CURLOPT_PATH_AS_IS, LO);
2043 if(UNEX(res)) {
2044 err("PATH_AS_IS", res, __LINE__); goto test_cleanup; }
2045 res = curl_easy_setopt(curl, CURLOPT_PATH_AS_IS, HI);
2046 if(UNEX(res)) {
2047 err("PATH_AS_IS", res, __LINE__); goto test_cleanup; }
2048 res = curl_easy_setopt(curl, CURLOPT_PROXY_SERVICE_NAME, "string");
2049 if(UNEX(res)) {
2050 err("PROXY_SERVICE_NAME", res, __LINE__); goto test_cleanup; }
2051 res = curl_easy_setopt(curl, CURLOPT_PROXY_SERVICE_NAME, NULL);
2052 if(UNEX(res)) {
2053 err("PROXY_SERVICE_NAME", res, __LINE__); goto test_cleanup; }
2054 res = curl_easy_setopt(curl, CURLOPT_SERVICE_NAME, "string");
2055 if(UNEX(res)) {
2056 err("SERVICE_NAME", res, __LINE__); goto test_cleanup; }
2057 res = curl_easy_setopt(curl, CURLOPT_SERVICE_NAME, NULL);
2058 if(UNEX(res)) {
2059 err("SERVICE_NAME", res, __LINE__); goto test_cleanup; }
2060 res = curl_easy_setopt(curl, CURLOPT_PIPEWAIT, 0L);
2061 if(UNEX(res)) {
2062 err("PIPEWAIT", res, __LINE__); goto test_cleanup; }
2063 res = curl_easy_setopt(curl, CURLOPT_PIPEWAIT, 22L);
2064 if(UNEX(res)) {
2065 err("PIPEWAIT", res, __LINE__); goto test_cleanup; }
2066 res = curl_easy_setopt(curl, CURLOPT_PIPEWAIT, LO);
2067 if(UNEX(res)) {
2068 err("PIPEWAIT", res, __LINE__); goto test_cleanup; }
2069 res = curl_easy_setopt(curl, CURLOPT_PIPEWAIT, HI);
2070 if(UNEX(res)) {
2071 err("PIPEWAIT", res, __LINE__); goto test_cleanup; }
2072 res = curl_easy_setopt(curl, CURLOPT_DEFAULT_PROTOCOL, "string");
2073 if(UNEX(res)) {
2074 err("DEFAULT_PROTOCOL", res, __LINE__); goto test_cleanup; }
2075 res = curl_easy_setopt(curl, CURLOPT_DEFAULT_PROTOCOL, NULL);
2076 if(UNEX(res)) {
2077 err("DEFAULT_PROTOCOL", res, __LINE__); goto test_cleanup; }
2078 res = curl_easy_setopt(curl, CURLOPT_STREAM_WEIGHT, 0L);
2079 if(UNEX(res)) {
2080 err("STREAM_WEIGHT", res, __LINE__); goto test_cleanup; }
2081 res = curl_easy_setopt(curl, CURLOPT_STREAM_WEIGHT, 22L);
2082 if(UNEX(res)) {
2083 err("STREAM_WEIGHT", res, __LINE__); goto test_cleanup; }
2084 res = curl_easy_setopt(curl, CURLOPT_STREAM_WEIGHT, LO);
2085 if(UNEX(res)) {
2086 err("STREAM_WEIGHT", res, __LINE__); goto test_cleanup; }
2087 res = curl_easy_setopt(curl, CURLOPT_STREAM_WEIGHT, HI);
2088 if(UNEX(res)) {
2089 err("STREAM_WEIGHT", res, __LINE__); goto test_cleanup; }
2090 res = curl_easy_setopt(curl, CURLOPT_STREAM_DEPENDS, dep);
2091 if(UNEX(res)) {
2092 err("STREAM_DEPENDS", res, __LINE__); goto test_cleanup; }
2093 res = curl_easy_setopt(curl, CURLOPT_STREAM_DEPENDS, NULL);
2094 if(UNEX(res)) {
2095 err("STREAM_DEPENDS", res, __LINE__); goto test_cleanup; }
2096 res = curl_easy_setopt(curl, CURLOPT_STREAM_DEPENDS_E, dep);
2097 if(UNEX(res)) {
2098 err("STREAM_DEPENDS_E", res, __LINE__); goto test_cleanup; }
2099 res = curl_easy_setopt(curl, CURLOPT_STREAM_DEPENDS_E, NULL);
2100 if(UNEX(res)) {
2101 err("STREAM_DEPENDS_E", res, __LINE__); goto test_cleanup; }
2102 res = curl_easy_setopt(curl, CURLOPT_TFTP_NO_OPTIONS, 0L);
2103 if(UNEX(res)) {
2104 err("TFTP_NO_OPTIONS", res, __LINE__); goto test_cleanup; }
2105 res = curl_easy_setopt(curl, CURLOPT_TFTP_NO_OPTIONS, 22L);
2106 if(UNEX(res)) {
2107 err("TFTP_NO_OPTIONS", res, __LINE__); goto test_cleanup; }
2108 res = curl_easy_setopt(curl, CURLOPT_TFTP_NO_OPTIONS, LO);
2109 if(UNEX(res)) {
2110 err("TFTP_NO_OPTIONS", res, __LINE__); goto test_cleanup; }
2111 res = curl_easy_setopt(curl, CURLOPT_TFTP_NO_OPTIONS, HI);
2112 if(UNEX(res)) {
2113 err("TFTP_NO_OPTIONS", res, __LINE__); goto test_cleanup; }
2114 res = curl_easy_setopt(curl, CURLOPT_CONNECT_TO, slist);
2115 if(UNEX(res)) {
2116 err("CONNECT_TO", res, __LINE__); goto test_cleanup; }
2117 res = curl_easy_setopt(curl, CURLOPT_TCP_FASTOPEN, 0L);
2118 if(UNEX(res)) {
2119 err("TCP_FASTOPEN", res, __LINE__); goto test_cleanup; }
2120 res = curl_easy_setopt(curl, CURLOPT_TCP_FASTOPEN, 22L);
2121 if(UNEX(res)) {
2122 err("TCP_FASTOPEN", res, __LINE__); goto test_cleanup; }
2123 res = curl_easy_setopt(curl, CURLOPT_TCP_FASTOPEN, LO);
2124 if(UNEX(res)) {
2125 err("TCP_FASTOPEN", res, __LINE__); goto test_cleanup; }
2126 res = curl_easy_setopt(curl, CURLOPT_TCP_FASTOPEN, HI);
2127 if(UNEX(res)) {
2128 err("TCP_FASTOPEN", res, __LINE__); goto test_cleanup; }
2129 res = curl_easy_setopt(curl, CURLOPT_KEEP_SENDING_ON_ERROR, 0L);
2130 if(UNEX(res)) {
2131 err("KEEP_SENDING_ON_ERROR", res, __LINE__); goto test_cleanup; }
2132 res = curl_easy_setopt(curl, CURLOPT_KEEP_SENDING_ON_ERROR, 22L);
2133 if(UNEX(res)) {
2134 err("KEEP_SENDING_ON_ERROR", res, __LINE__); goto test_cleanup; }
2135 res = curl_easy_setopt(curl, CURLOPT_KEEP_SENDING_ON_ERROR, LO);
2136 if(UNEX(res)) {
2137 err("KEEP_SENDING_ON_ERROR", res, __LINE__); goto test_cleanup; }
2138 res = curl_easy_setopt(curl, CURLOPT_KEEP_SENDING_ON_ERROR, HI);
2139 if(UNEX(res)) {
2140 err("KEEP_SENDING_ON_ERROR", res, __LINE__); goto test_cleanup; }
2141 res = curl_easy_setopt(curl, CURLOPT_PROXY_CAINFO, "string");
2142 if(UNEX(res)) {
2143 err("PROXY_CAINFO", res, __LINE__); goto test_cleanup; }
2144 res = curl_easy_setopt(curl, CURLOPT_PROXY_CAINFO, NULL);
2145 if(UNEX(res)) {
2146 err("PROXY_CAINFO", res, __LINE__); goto test_cleanup; }
2147 res = curl_easy_setopt(curl, CURLOPT_PROXY_CAPATH, "string");
2148 if(UNEX(res)) {
2149 err("PROXY_CAPATH", res, __LINE__); goto test_cleanup; }
2150 res = curl_easy_setopt(curl, CURLOPT_PROXY_CAPATH, NULL);
2151 if(UNEX(res)) {
2152 err("PROXY_CAPATH", res, __LINE__); goto test_cleanup; }
2153 res = curl_easy_setopt(curl, CURLOPT_PROXY_SSL_VERIFYPEER, 0L);
2154 if(UNEX(res)) {
2155 err("PROXY_SSL_VERIFYPEER", res, __LINE__); goto test_cleanup; }
2156 res = curl_easy_setopt(curl, CURLOPT_PROXY_SSL_VERIFYPEER, 22L);
2157 if(UNEX(res)) {
2158 err("PROXY_SSL_VERIFYPEER", res, __LINE__); goto test_cleanup; }
2159 res = curl_easy_setopt(curl, CURLOPT_PROXY_SSL_VERIFYPEER, LO);
2160 if(UNEX(res)) {
2161 err("PROXY_SSL_VERIFYPEER", res, __LINE__); goto test_cleanup; }
2162 res = curl_easy_setopt(curl, CURLOPT_PROXY_SSL_VERIFYPEER, HI);
2163 if(UNEX(res)) {
2164 err("PROXY_SSL_VERIFYPEER", res, __LINE__); goto test_cleanup; }
2165 res = curl_easy_setopt(curl, CURLOPT_PROXY_SSL_VERIFYHOST, 0L);
2166 if(UNEX(res)) {
2167 err("PROXY_SSL_VERIFYHOST", res, __LINE__); goto test_cleanup; }
2168 res = curl_easy_setopt(curl, CURLOPT_PROXY_SSL_VERIFYHOST, 22L);
2169 if(UNEX(res)) {
2170 err("PROXY_SSL_VERIFYHOST", res, __LINE__); goto test_cleanup; }
2171 res = curl_easy_setopt(curl, CURLOPT_PROXY_SSL_VERIFYHOST, LO);
2172 if(UNEX(res)) {
2173 err("PROXY_SSL_VERIFYHOST", res, __LINE__); goto test_cleanup; }
2174 res = curl_easy_setopt(curl, CURLOPT_PROXY_SSL_VERIFYHOST, HI);
2175 if(UNEX(res)) {
2176 err("PROXY_SSL_VERIFYHOST", res, __LINE__); goto test_cleanup; }
2177 res = curl_easy_setopt(curl, CURLOPT_PROXY_SSLVERSION, 0L);
2178 if(UNEX(res)) {
2179 err("PROXY_SSLVERSION", res, __LINE__); goto test_cleanup; }
2180 res = curl_easy_setopt(curl, CURLOPT_PROXY_SSLVERSION, 22L);
2181 if(UNEX(res)) {
2182 err("PROXY_SSLVERSION", res, __LINE__); goto test_cleanup; }
2183 res = curl_easy_setopt(curl, CURLOPT_PROXY_SSLVERSION, LO);
2184 if(UNEX(res)) {
2185 err("PROXY_SSLVERSION", res, __LINE__); goto test_cleanup; }
2186 res = curl_easy_setopt(curl, CURLOPT_PROXY_SSLVERSION, HI);
2187 if(UNEX(res)) {
2188 err("PROXY_SSLVERSION", res, __LINE__); goto test_cleanup; }
2189 res = curl_easy_setopt(curl, CURLOPT_PROXY_TLSAUTH_USERNAME, "string");
2190 if(UNEX(res)) {
2191 err("PROXY_TLSAUTH_USERNAME", res, __LINE__); goto test_cleanup; }
2192 res = curl_easy_setopt(curl, CURLOPT_PROXY_TLSAUTH_USERNAME, NULL);
2193 if(UNEX(res)) {
2194 err("PROXY_TLSAUTH_USERNAME", res, __LINE__); goto test_cleanup; }
2195 res = curl_easy_setopt(curl, CURLOPT_PROXY_TLSAUTH_PASSWORD, "string");
2196 if(UNEX(res)) {
2197 err("PROXY_TLSAUTH_PASSWORD", res, __LINE__); goto test_cleanup; }
2198 res = curl_easy_setopt(curl, CURLOPT_PROXY_TLSAUTH_PASSWORD, NULL);
2199 if(UNEX(res)) {
2200 err("PROXY_TLSAUTH_PASSWORD", res, __LINE__); goto test_cleanup; }
2201 res = curl_easy_setopt(curl, CURLOPT_PROXY_TLSAUTH_TYPE, "string");
2202 if(UNEX(res)) {
2203 err("PROXY_TLSAUTH_TYPE", res, __LINE__); goto test_cleanup; }
2204 res = curl_easy_setopt(curl, CURLOPT_PROXY_TLSAUTH_TYPE, NULL);
2205 if(UNEX(res)) {
2206 err("PROXY_TLSAUTH_TYPE", res, __LINE__); goto test_cleanup; }
2207 res = curl_easy_setopt(curl, CURLOPT_PROXY_SSLCERT, "string");
2208 if(UNEX(res)) {
2209 err("PROXY_SSLCERT", res, __LINE__); goto test_cleanup; }
2210 res = curl_easy_setopt(curl, CURLOPT_PROXY_SSLCERT, NULL);
2211 if(UNEX(res)) {
2212 err("PROXY_SSLCERT", res, __LINE__); goto test_cleanup; }
2213 res = curl_easy_setopt(curl, CURLOPT_PROXY_SSLCERTTYPE, "string");
2214 if(UNEX(res)) {
2215 err("PROXY_SSLCERTTYPE", res, __LINE__); goto test_cleanup; }
2216 res = curl_easy_setopt(curl, CURLOPT_PROXY_SSLCERTTYPE, NULL);
2217 if(UNEX(res)) {
2218 err("PROXY_SSLCERTTYPE", res, __LINE__); goto test_cleanup; }
2219 res = curl_easy_setopt(curl, CURLOPT_PROXY_SSLKEY, "string");
2220 if(UNEX(res)) {
2221 err("PROXY_SSLKEY", res, __LINE__); goto test_cleanup; }
2222 res = curl_easy_setopt(curl, CURLOPT_PROXY_SSLKEY, NULL);
2223 if(UNEX(res)) {
2224 err("PROXY_SSLKEY", res, __LINE__); goto test_cleanup; }
2225 res = curl_easy_setopt(curl, CURLOPT_PROXY_SSLKEYTYPE, "string");
2226 if(UNEX(res)) {
2227 err("PROXY_SSLKEYTYPE", res, __LINE__); goto test_cleanup; }
2228 res = curl_easy_setopt(curl, CURLOPT_PROXY_SSLKEYTYPE, NULL);
2229 if(UNEX(res)) {
2230 err("PROXY_SSLKEYTYPE", res, __LINE__); goto test_cleanup; }
2231 res = curl_easy_setopt(curl, CURLOPT_PROXY_KEYPASSWD, "string");
2232 if(UNEX(res)) {
2233 err("PROXY_KEYPASSWD", res, __LINE__); goto test_cleanup; }
2234 res = curl_easy_setopt(curl, CURLOPT_PROXY_KEYPASSWD, NULL);
2235 if(UNEX(res)) {
2236 err("PROXY_KEYPASSWD", res, __LINE__); goto test_cleanup; }
2237 res = curl_easy_setopt(curl, CURLOPT_PROXY_SSL_CIPHER_LIST, "string");
2238 if(UNEX(res)) {
2239 err("PROXY_SSL_CIPHER_LIST", res, __LINE__); goto test_cleanup; }
2240 res = curl_easy_setopt(curl, CURLOPT_PROXY_SSL_CIPHER_LIST, NULL);
2241 if(UNEX(res)) {
2242 err("PROXY_SSL_CIPHER_LIST", res, __LINE__); goto test_cleanup; }
2243 res = curl_easy_setopt(curl, CURLOPT_PROXY_CRLFILE, "string");
2244 if(UNEX(res)) {
2245 err("PROXY_CRLFILE", res, __LINE__); goto test_cleanup; }
2246 res = curl_easy_setopt(curl, CURLOPT_PROXY_CRLFILE, NULL);
2247 if(UNEX(res)) {
2248 err("PROXY_CRLFILE", res, __LINE__); goto test_cleanup; }
2249 res = curl_easy_setopt(curl, CURLOPT_PROXY_SSL_OPTIONS, 0L);
2250 if(UNEX(res)) {
2251 err("PROXY_SSL_OPTIONS", res, __LINE__); goto test_cleanup; }
2252 res = curl_easy_setopt(curl, CURLOPT_PROXY_SSL_OPTIONS, 22L);
2253 if(UNEX(res)) {
2254 err("PROXY_SSL_OPTIONS", res, __LINE__); goto test_cleanup; }
2255 res = curl_easy_setopt(curl, CURLOPT_PROXY_SSL_OPTIONS, LO);
2256 if(UNEX(res)) {
2257 err("PROXY_SSL_OPTIONS", res, __LINE__); goto test_cleanup; }
2258 res = curl_easy_setopt(curl, CURLOPT_PROXY_SSL_OPTIONS, HI);
2259 if(UNEX(res)) {
2260 err("PROXY_SSL_OPTIONS", res, __LINE__); goto test_cleanup; }
2261 res = curl_easy_setopt(curl, CURLOPT_PRE_PROXY, "string");
2262 if(UNEX(res)) {
2263 err("PRE_PROXY", res, __LINE__); goto test_cleanup; }
2264 res = curl_easy_setopt(curl, CURLOPT_PRE_PROXY, NULL);
2265 if(UNEX(res)) {
2266 err("PRE_PROXY", res, __LINE__); goto test_cleanup; }
2267 res = curl_easy_setopt(curl, CURLOPT_PROXY_PINNEDPUBLICKEY, "string");
2268 if(UNEX(res)) {
2269 err("PROXY_PINNEDPUBLICKEY", res, __LINE__); goto test_cleanup; }
2270 res = curl_easy_setopt(curl, CURLOPT_PROXY_PINNEDPUBLICKEY, NULL);
2271 if(UNEX(res)) {
2272 err("PROXY_PINNEDPUBLICKEY", res, __LINE__); goto test_cleanup; }
2273 res = curl_easy_setopt(curl, CURLOPT_ABSTRACT_UNIX_SOCKET, "string");
2274 if(UNEX(res)) {
2275 err("ABSTRACT_UNIX_SOCKET", res, __LINE__); goto test_cleanup; }
2276 res = curl_easy_setopt(curl, CURLOPT_ABSTRACT_UNIX_SOCKET, NULL);
2277 if(UNEX(res)) {
2278 err("ABSTRACT_UNIX_SOCKET", res, __LINE__); goto test_cleanup; }
2279 res = curl_easy_setopt(curl, CURLOPT_SUPPRESS_CONNECT_HEADERS, 0L);
2280 if(UNEX(res)) {
2281 err("SUPPRESS_CONNECT_HEADERS", res, __LINE__); goto test_cleanup; }
2282 res = curl_easy_setopt(curl, CURLOPT_SUPPRESS_CONNECT_HEADERS, 22L);
2283 if(UNEX(res)) {
2284 err("SUPPRESS_CONNECT_HEADERS", res, __LINE__); goto test_cleanup; }
2285 res = curl_easy_setopt(curl, CURLOPT_SUPPRESS_CONNECT_HEADERS, LO);
2286 if(UNEX(res)) {
2287 err("SUPPRESS_CONNECT_HEADERS", res, __LINE__); goto test_cleanup; }
2288 res = curl_easy_setopt(curl, CURLOPT_SUPPRESS_CONNECT_HEADERS, HI);
2289 if(UNEX(res)) {
2290 err("SUPPRESS_CONNECT_HEADERS", res, __LINE__); goto test_cleanup; }
2291 res = curl_easy_setopt(curl, CURLOPT_REQUEST_TARGET, "string");
2292 if(UNEX(res)) {
2293 err("REQUEST_TARGET", res, __LINE__); goto test_cleanup; }
2294 res = curl_easy_setopt(curl, CURLOPT_REQUEST_TARGET, NULL);
2295 if(UNEX(res)) {
2296 err("REQUEST_TARGET", res, __LINE__); goto test_cleanup; }
2297 res = curl_easy_setopt(curl, CURLOPT_SOCKS5_AUTH, 0L);
2298 if(UNEX(res)) {
2299 err("SOCKS5_AUTH", res, __LINE__); goto test_cleanup; }
2300 res = curl_easy_setopt(curl, CURLOPT_SOCKS5_AUTH, 22L);
2301 if(UNEX(res)) {
2302 err("SOCKS5_AUTH", res, __LINE__); goto test_cleanup; }
2303 res = curl_easy_setopt(curl, CURLOPT_SOCKS5_AUTH, LO);
2304 if(UNEX(res)) {
2305 err("SOCKS5_AUTH", res, __LINE__); goto test_cleanup; }
2306 res = curl_easy_setopt(curl, CURLOPT_SOCKS5_AUTH, HI);
2307 if(UNEX(res)) {
2308 err("SOCKS5_AUTH", res, __LINE__); goto test_cleanup; }
2309 res = curl_easy_setopt(curl, CURLOPT_SSH_COMPRESSION, 0L);
2310 if(UNEX(res)) {
2311 err("SSH_COMPRESSION", res, __LINE__); goto test_cleanup; }
2312 res = curl_easy_setopt(curl, CURLOPT_SSH_COMPRESSION, 22L);
2313 if(UNEX(res)) {
2314 err("SSH_COMPRESSION", res, __LINE__); goto test_cleanup; }
2315 res = curl_easy_setopt(curl, CURLOPT_SSH_COMPRESSION, LO);
2316 if(UNEX(res)) {
2317 err("SSH_COMPRESSION", res, __LINE__); goto test_cleanup; }
2318 res = curl_easy_setopt(curl, CURLOPT_SSH_COMPRESSION, HI);
2319 if(UNEX(res)) {
2320 err("SSH_COMPRESSION", res, __LINE__); goto test_cleanup; }
2321 res = curl_easy_setopt(curl, CURLOPT_MIMEPOST, mimepost);
2322 if(UNEX(res)) {
2323 err("MIMEPOST", res, __LINE__); goto test_cleanup; }
2324 res = curl_easy_setopt(curl, CURLOPT_MIMEPOST, NULL);
2325 if(UNEX(res)) {
2326 err("MIMEPOST", res, __LINE__); goto test_cleanup; }
2327 res = curl_easy_setopt(curl, CURLOPT_TIMEVALUE_LARGE, OFF_NO);
2328 if(UNEX(res)) {
2329 err("TIMEVALUE_LARGE", res, __LINE__); goto test_cleanup; }
2330 res = curl_easy_setopt(curl, CURLOPT_TIMEVALUE_LARGE, OFF_HI);
2331 if(UNEX(res)) {
2332 err("TIMEVALUE_LARGE", res, __LINE__); goto test_cleanup; }
2333 res = curl_easy_setopt(curl, CURLOPT_TIMEVALUE_LARGE, OFF_LO);
2334 if(UNEX(res)) {
2335 err("TIMEVALUE_LARGE", res, __LINE__); goto test_cleanup; }
2336 res = curl_easy_setopt(curl, CURLOPT_HAPPY_EYEBALLS_TIMEOUT_MS, 0L);
2337 if(UNEX(res)) {
2338 err("HAPPY_EYEBALLS_TIMEOUT_MS", res, __LINE__); goto test_cleanup; }
2339 res = curl_easy_setopt(curl, CURLOPT_HAPPY_EYEBALLS_TIMEOUT_MS, 22L);
2340 if(UNEX(res)) {
2341 err("HAPPY_EYEBALLS_TIMEOUT_MS", res, __LINE__); goto test_cleanup; }
2342 res = curl_easy_setopt(curl, CURLOPT_HAPPY_EYEBALLS_TIMEOUT_MS, LO);
2343 if(UNEX(res)) {
2344 err("HAPPY_EYEBALLS_TIMEOUT_MS", res, __LINE__); goto test_cleanup; }
2345 res = curl_easy_setopt(curl, CURLOPT_HAPPY_EYEBALLS_TIMEOUT_MS, HI);
2346 if(UNEX(res)) {
2347 err("HAPPY_EYEBALLS_TIMEOUT_MS", res, __LINE__); goto test_cleanup; }
2348 res = curl_easy_setopt(curl, CURLOPT_RESOLVER_START_FUNCTION,
2349 resolver_start_cb);
2350 if(UNEX(res)) {
2351 err("RESOLVER_START_FUNCTION", res, __LINE__); goto test_cleanup; }
2352 res = curl_easy_setopt(curl, CURLOPT_RESOLVER_START_FUNCTION, NULL);
2353 if(UNEX(res)) {
2354 err("RESOLVER_START_FUNCTION", res, __LINE__); goto test_cleanup; }
2355 res = curl_easy_setopt(curl, CURLOPT_RESOLVER_START_DATA, &object);
2356 if(UNEX(res)) {
2357 err("RESOLVER_START_DATA", res, __LINE__); goto test_cleanup; }
2358 res = curl_easy_setopt(curl, CURLOPT_RESOLVER_START_DATA, NULL);
2359 if(UNEX(res)) {
2360 err("RESOLVER_START_DATA", res, __LINE__); goto test_cleanup; }
2361 res = curl_easy_setopt(curl, CURLOPT_HAPROXYPROTOCOL, 0L);
2362 if(UNEX(res)) {
2363 err("HAPROXYPROTOCOL", res, __LINE__); goto test_cleanup; }
2364 res = curl_easy_setopt(curl, CURLOPT_HAPROXYPROTOCOL, 22L);
2365 if(UNEX(res)) {
2366 err("HAPROXYPROTOCOL", res, __LINE__); goto test_cleanup; }
2367 res = curl_easy_setopt(curl, CURLOPT_HAPROXYPROTOCOL, LO);
2368 if(UNEX(res)) {
2369 err("HAPROXYPROTOCOL", res, __LINE__); goto test_cleanup; }
2370 res = curl_easy_setopt(curl, CURLOPT_HAPROXYPROTOCOL, HI);
2371 if(UNEX(res)) {
2372 err("HAPROXYPROTOCOL", res, __LINE__); goto test_cleanup; }
2373 res = curl_easy_setopt(curl, CURLOPT_DNS_SHUFFLE_ADDRESSES, 0L);
2374 if(UNEX(res)) {
2375 err("DNS_SHUFFLE_ADDRESSES", res, __LINE__); goto test_cleanup; }
2376 res = curl_easy_setopt(curl, CURLOPT_DNS_SHUFFLE_ADDRESSES, 22L);
2377 if(UNEX(res)) {
2378 err("DNS_SHUFFLE_ADDRESSES", res, __LINE__); goto test_cleanup; }
2379 res = curl_easy_setopt(curl, CURLOPT_DNS_SHUFFLE_ADDRESSES, LO);
2380 if(UNEX(res)) {
2381 err("DNS_SHUFFLE_ADDRESSES", res, __LINE__); goto test_cleanup; }
2382 res = curl_easy_setopt(curl, CURLOPT_DNS_SHUFFLE_ADDRESSES, HI);
2383 if(UNEX(res)) {
2384 err("DNS_SHUFFLE_ADDRESSES", res, __LINE__); goto test_cleanup; }
2385 res = curl_easy_setopt(curl, CURLOPT_TLS13_CIPHERS, "string");
2386 if(UNEX(res)) {
2387 err("TLS13_CIPHERS", res, __LINE__); goto test_cleanup; }
2388 res = curl_easy_setopt(curl, CURLOPT_TLS13_CIPHERS, NULL);
2389 if(UNEX(res)) {
2390 err("TLS13_CIPHERS", res, __LINE__); goto test_cleanup; }
2391 res = curl_easy_setopt(curl, CURLOPT_PROXY_TLS13_CIPHERS, "string");
2392 if(UNEX(res)) {
2393 err("PROXY_TLS13_CIPHERS", res, __LINE__); goto test_cleanup; }
2394 res = curl_easy_setopt(curl, CURLOPT_PROXY_TLS13_CIPHERS, NULL);
2395 if(UNEX(res)) {
2396 err("PROXY_TLS13_CIPHERS", res, __LINE__); goto test_cleanup; }
2397 res = curl_easy_setopt(curl, CURLOPT_DISALLOW_USERNAME_IN_URL, 0L);
2398 if(UNEX(res)) {
2399 err("DISALLOW_USERNAME_IN_URL", res, __LINE__); goto test_cleanup; }
2400 res = curl_easy_setopt(curl, CURLOPT_DISALLOW_USERNAME_IN_URL, 22L);
2401 if(UNEX(res)) {
2402 err("DISALLOW_USERNAME_IN_URL", res, __LINE__); goto test_cleanup; }
2403 res = curl_easy_setopt(curl, CURLOPT_DISALLOW_USERNAME_IN_URL, LO);
2404 if(UNEX(res)) {
2405 err("DISALLOW_USERNAME_IN_URL", res, __LINE__); goto test_cleanup; }
2406 res = curl_easy_setopt(curl, CURLOPT_DISALLOW_USERNAME_IN_URL, HI);
2407 if(UNEX(res)) {
2408 err("DISALLOW_USERNAME_IN_URL", res, __LINE__); goto test_cleanup; }
2409 res = curl_easy_setopt(curl, CURLOPT_DOH_URL, "string");
2410 if(UNEX(res)) {
2411 err("DOH_URL", res, __LINE__); goto test_cleanup; }
2412 res = curl_easy_setopt(curl, CURLOPT_DOH_URL, NULL);
2413 if(UNEX(res)) {
2414 err("DOH_URL", res, __LINE__); goto test_cleanup; }
2415 res = curl_easy_setopt(curl, CURLOPT_UPLOAD_BUFFERSIZE, 0L);
2416 if(UNEX(res)) {
2417 err("UPLOAD_BUFFERSIZE", res, __LINE__); goto test_cleanup; }
2418 res = curl_easy_setopt(curl, CURLOPT_UPLOAD_BUFFERSIZE, 22L);
2419 if(UNEX(res)) {
2420 err("UPLOAD_BUFFERSIZE", res, __LINE__); goto test_cleanup; }
2421 res = curl_easy_setopt(curl, CURLOPT_UPLOAD_BUFFERSIZE, LO);
2422 if(UNEX(res)) {
2423 err("UPLOAD_BUFFERSIZE", res, __LINE__); goto test_cleanup; }
2424 res = curl_easy_setopt(curl, CURLOPT_UPLOAD_BUFFERSIZE, HI);
2425 if(UNEX(res)) {
2426 err("UPLOAD_BUFFERSIZE", res, __LINE__); goto test_cleanup; }
2427 res = curl_easy_setopt(curl, CURLOPT_UPKEEP_INTERVAL_MS, 0L);
2428 if(UNEX(res)) {
2429 err("UPKEEP_INTERVAL_MS", res, __LINE__); goto test_cleanup; }
2430 res = curl_easy_setopt(curl, CURLOPT_UPKEEP_INTERVAL_MS, 22L);
2431 if(UNEX(res)) {
2432 err("UPKEEP_INTERVAL_MS", res, __LINE__); goto test_cleanup; }
2433 res = curl_easy_setopt(curl, CURLOPT_UPKEEP_INTERVAL_MS, LO);
2434 if(UNEX(res)) {
2435 err("UPKEEP_INTERVAL_MS", res, __LINE__); goto test_cleanup; }
2436 res = curl_easy_setopt(curl, CURLOPT_UPKEEP_INTERVAL_MS, HI);
2437 if(UNEX(res)) {
2438 err("UPKEEP_INTERVAL_MS", res, __LINE__); goto test_cleanup; }
2439 res = curl_easy_setopt(curl, CURLOPT_CURLU, &object);
2440 if(UNEX(res)) {
2441 err("CURLU", res, __LINE__); goto test_cleanup; }
2442 res = curl_easy_setopt(curl, CURLOPT_CURLU, NULL);
2443 if(UNEX(res)) {
2444 err("CURLU", res, __LINE__); goto test_cleanup; }
2445 res = curl_easy_setopt(curl, CURLOPT_TRAILERFUNCTION,
2446 trailercb);
2447 if(UNEX(res)) {
2448 err("TRAILERFUNCTION", res, __LINE__); goto test_cleanup; }
2449 res = curl_easy_setopt(curl, CURLOPT_TRAILERFUNCTION, NULL);
2450 if(UNEX(res)) {
2451 err("TRAILERFUNCTION", res, __LINE__); goto test_cleanup; }
2452 res = curl_easy_setopt(curl, CURLOPT_TRAILERDATA, &object);
2453 if(UNEX(res)) {
2454 err("TRAILERDATA", res, __LINE__); goto test_cleanup; }
2455 res = curl_easy_setopt(curl, CURLOPT_TRAILERDATA, NULL);
2456 if(UNEX(res)) {
2457 err("TRAILERDATA", res, __LINE__); goto test_cleanup; }
2458 res = curl_easy_setopt(curl, CURLOPT_HTTP09_ALLOWED, 0L);
2459 if(UNEX(res)) {
2460 err("HTTP09_ALLOWED", res, __LINE__); goto test_cleanup; }
2461 res = curl_easy_setopt(curl, CURLOPT_HTTP09_ALLOWED, 22L);
2462 if(UNEX(res)) {
2463 err("HTTP09_ALLOWED", res, __LINE__); goto test_cleanup; }
2464 res = curl_easy_setopt(curl, CURLOPT_HTTP09_ALLOWED, LO);
2465 if(UNEX(res)) {
2466 err("HTTP09_ALLOWED", res, __LINE__); goto test_cleanup; }
2467 res = curl_easy_setopt(curl, CURLOPT_HTTP09_ALLOWED, HI);
2468 if(UNEX(res)) {
2469 err("HTTP09_ALLOWED", res, __LINE__); goto test_cleanup; }
2470 res = curl_easy_setopt(curl, CURLOPT_ALTSVC_CTRL, 0L);
2471 if(UNEX(res)) {
2472 err("ALTSVC_CTRL", res, __LINE__); goto test_cleanup; }
2473 res = curl_easy_setopt(curl, CURLOPT_ALTSVC_CTRL, 22L);
2474 if(UNEX(res)) {
2475 err("ALTSVC_CTRL", res, __LINE__); goto test_cleanup; }
2476 res = curl_easy_setopt(curl, CURLOPT_ALTSVC_CTRL, LO);
2477 if(UNEX(res)) {
2478 err("ALTSVC_CTRL", res, __LINE__); goto test_cleanup; }
2479 res = curl_easy_setopt(curl, CURLOPT_ALTSVC_CTRL, HI);
2480 if(UNEX(res)) {
2481 err("ALTSVC_CTRL", res, __LINE__); goto test_cleanup; }
2482 res = curl_easy_setopt(curl, CURLOPT_ALTSVC, "string");
2483 if(UNEX(res)) {
2484 err("ALTSVC", res, __LINE__); goto test_cleanup; }
2485 res = curl_easy_setopt(curl, CURLOPT_ALTSVC, NULL);
2486 if(UNEX(res)) {
2487 err("ALTSVC", res, __LINE__); goto test_cleanup; }
2488 res = curl_easy_setopt(curl, CURLOPT_MAXAGE_CONN, 0L);
2489 if(UNEX(res)) {
2490 err("MAXAGE_CONN", res, __LINE__); goto test_cleanup; }
2491 res = curl_easy_setopt(curl, CURLOPT_MAXAGE_CONN, 22L);
2492 if(UNEX(res)) {
2493 err("MAXAGE_CONN", res, __LINE__); goto test_cleanup; }
2494 res = curl_easy_setopt(curl, CURLOPT_MAXAGE_CONN, LO);
2495 if(UNEX(res)) {
2496 err("MAXAGE_CONN", res, __LINE__); goto test_cleanup; }
2497 res = curl_easy_setopt(curl, CURLOPT_MAXAGE_CONN, HI);
2498 if(UNEX(res)) {
2499 err("MAXAGE_CONN", res, __LINE__); goto test_cleanup; }
2500 res = curl_easy_setopt(curl, CURLOPT_SASL_AUTHZID, "string");
2501 if(UNEX(res)) {
2502 err("SASL_AUTHZID", res, __LINE__); goto test_cleanup; }
2503 res = curl_easy_setopt(curl, CURLOPT_SASL_AUTHZID, NULL);
2504 if(UNEX(res)) {
2505 err("SASL_AUTHZID", res, __LINE__); goto test_cleanup; }
2506 res = curl_easy_getinfo(curl, CURLINFO_EFFECTIVE_URL, &charp);
2507 if(UNEX(res)) {
2508 geterr("EFFECTIVE_URL", res, __LINE__); goto test_cleanup; }
2509 res = curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &val);
2510 if(UNEX(res)) {
2511 geterr("RESPONSE_CODE", res, __LINE__); goto test_cleanup; }
2512 res = curl_easy_getinfo(curl, CURLINFO_TOTAL_TIME, &dval);
2513 if(UNEX(res)) {
2514 geterr("TOTAL_TIME", res, __LINE__); goto test_cleanup; }
2515 res = curl_easy_getinfo(curl, CURLINFO_NAMELOOKUP_TIME, &dval);
2516 if(UNEX(res)) {
2517 geterr("NAMELOOKUP_TIME", res, __LINE__); goto test_cleanup; }
2518 res = curl_easy_getinfo(curl, CURLINFO_CONNECT_TIME, &dval);
2519 if(UNEX(res)) {
2520 geterr("CONNECT_TIME", res, __LINE__); goto test_cleanup; }
2521 res = curl_easy_getinfo(curl, CURLINFO_PRETRANSFER_TIME, &dval);
2522 if(UNEX(res)) {
2523 geterr("PRETRANSFER_TIME", res, __LINE__); goto test_cleanup; }
2524 res = curl_easy_getinfo(curl, CURLINFO_SIZE_UPLOAD, &dval);
2525 if(UNEX(res)) {
2526 geterr("SIZE_UPLOAD", res, __LINE__); goto test_cleanup; }
2527 res = curl_easy_getinfo(curl, CURLINFO_SIZE_UPLOAD_T, &oval);
2528 if(UNEX(res)) {
2529 geterr("SIZE_UPLOAD_T", res, __LINE__); goto test_cleanup; }
2530 res = curl_easy_getinfo(curl, CURLINFO_SIZE_DOWNLOAD, &dval);
2531 if(UNEX(res)) {
2532 geterr("SIZE_DOWNLOAD", res, __LINE__); goto test_cleanup; }
2533 res = curl_easy_getinfo(curl, CURLINFO_SIZE_DOWNLOAD_T, &oval);
2534 if(UNEX(res)) {
2535 geterr("SIZE_DOWNLOAD_T", res, __LINE__); goto test_cleanup; }
2536 res = curl_easy_getinfo(curl, CURLINFO_SPEED_DOWNLOAD, &dval);
2537 if(UNEX(res)) {
2538 geterr("SPEED_DOWNLOAD", res, __LINE__); goto test_cleanup; }
2539 res = curl_easy_getinfo(curl, CURLINFO_SPEED_DOWNLOAD_T, &oval);
2540 if(UNEX(res)) {
2541 geterr("SPEED_DOWNLOAD_T", res, __LINE__); goto test_cleanup; }
2542 res = curl_easy_getinfo(curl, CURLINFO_SPEED_UPLOAD, &dval);
2543 if(UNEX(res)) {
2544 geterr("SPEED_UPLOAD", res, __LINE__); goto test_cleanup; }
2545 res = curl_easy_getinfo(curl, CURLINFO_SPEED_UPLOAD_T, &oval);
2546 if(UNEX(res)) {
2547 geterr("SPEED_UPLOAD_T", res, __LINE__); goto test_cleanup; }
2548 res = curl_easy_getinfo(curl, CURLINFO_HEADER_SIZE, &val);
2549 if(UNEX(res)) {
2550 geterr("HEADER_SIZE", res, __LINE__); goto test_cleanup; }
2551 res = curl_easy_getinfo(curl, CURLINFO_REQUEST_SIZE, &val);
2552 if(UNEX(res)) {
2553 geterr("REQUEST_SIZE", res, __LINE__); goto test_cleanup; }
2554 res = curl_easy_getinfo(curl, CURLINFO_SSL_VERIFYRESULT, &val);
2555 if(UNEX(res)) {
2556 geterr("SSL_VERIFYRESULT", res, __LINE__); goto test_cleanup; }
2557 res = curl_easy_getinfo(curl, CURLINFO_FILETIME, &val);
2558 if(UNEX(res)) {
2559 geterr("FILETIME", res, __LINE__); goto test_cleanup; }
2560 res = curl_easy_getinfo(curl, CURLINFO_FILETIME_T, &oval);
2561 if(UNEX(res)) {
2562 geterr("FILETIME_T", res, __LINE__); goto test_cleanup; }
2563 res = curl_easy_getinfo(curl, CURLINFO_CONTENT_LENGTH_DOWNLOAD, &dval);
2564 if(UNEX(res)) {
2565 geterr("CONTENT_LENGTH_DOWNLOAD", res, __LINE__); goto test_cleanup; }
2566 res = curl_easy_getinfo(curl, CURLINFO_CONTENT_LENGTH_DOWNLOAD_T, &oval);
2567 if(UNEX(res)) {
2568 geterr("CONTENT_LENGTH_DOWNLOAD_T", res, __LINE__); goto test_cleanup; }
2569 res = curl_easy_getinfo(curl, CURLINFO_CONTENT_LENGTH_UPLOAD, &dval);
2570 if(UNEX(res)) {
2571 geterr("CONTENT_LENGTH_UPLOAD", res, __LINE__); goto test_cleanup; }
2572 res = curl_easy_getinfo(curl, CURLINFO_CONTENT_LENGTH_UPLOAD_T, &oval);
2573 if(UNEX(res)) {
2574 geterr("CONTENT_LENGTH_UPLOAD_T", res, __LINE__); goto test_cleanup; }
2575 res = curl_easy_getinfo(curl, CURLINFO_STARTTRANSFER_TIME, &dval);
2576 if(UNEX(res)) {
2577 geterr("STARTTRANSFER_TIME", res, __LINE__); goto test_cleanup; }
2578 res = curl_easy_getinfo(curl, CURLINFO_CONTENT_TYPE, &charp);
2579 if(UNEX(res)) {
2580 geterr("CONTENT_TYPE", res, __LINE__); goto test_cleanup; }
2581 res = curl_easy_getinfo(curl, CURLINFO_REDIRECT_TIME, &dval);
2582 if(UNEX(res)) {
2583 geterr("REDIRECT_TIME", res, __LINE__); goto test_cleanup; }
2584 res = curl_easy_getinfo(curl, CURLINFO_REDIRECT_COUNT, &val);
2585 if(UNEX(res)) {
2586 geterr("REDIRECT_COUNT", res, __LINE__); goto test_cleanup; }
2587 res = curl_easy_getinfo(curl, CURLINFO_PRIVATE, &charp);
2588 if(UNEX(res)) {
2589 geterr("PRIVATE", res, __LINE__); goto test_cleanup; }
2590 res = curl_easy_getinfo(curl, CURLINFO_HTTP_CONNECTCODE, &val);
2591 if(UNEX(res)) {
2592 geterr("HTTP_CONNECTCODE", res, __LINE__); goto test_cleanup; }
2593 res = curl_easy_getinfo(curl, CURLINFO_HTTPAUTH_AVAIL, &val);
2594 if(UNEX(res)) {
2595 geterr("HTTPAUTH_AVAIL", res, __LINE__); goto test_cleanup; }
2596 res = curl_easy_getinfo(curl, CURLINFO_PROXYAUTH_AVAIL, &val);
2597 if(UNEX(res)) {
2598 geterr("PROXYAUTH_AVAIL", res, __LINE__); goto test_cleanup; }
2599 res = curl_easy_getinfo(curl, CURLINFO_OS_ERRNO, &val);
2600 if(UNEX(res)) {
2601 geterr("OS_ERRNO", res, __LINE__); goto test_cleanup; }
2602 res = curl_easy_getinfo(curl, CURLINFO_NUM_CONNECTS, &val);
2603 if(UNEX(res)) {
2604 geterr("NUM_CONNECTS", res, __LINE__); goto test_cleanup; }
2605 res = curl_easy_getinfo(curl, CURLINFO_SSL_ENGINES, &slist);
2606 if(UNEX(res)) {
2607 geterr("SSL_ENGINES", res, __LINE__); goto test_cleanup; }
2608 if(slist)
2609 curl_slist_free_all(slist);
2610 res = curl_easy_getinfo(curl, CURLINFO_COOKIELIST, &slist);
2611 if(UNEX(res)) {
2612 geterr("COOKIELIST", res, __LINE__); goto test_cleanup; }
2613 if(slist)
2614 curl_slist_free_all(slist);
2615 res = curl_easy_getinfo(curl, CURLINFO_LASTSOCKET, &val);
2616 if(UNEX(res)) {
2617 geterr("LASTSOCKET", res, __LINE__); goto test_cleanup; }
2618 res = curl_easy_getinfo(curl, CURLINFO_FTP_ENTRY_PATH, &charp);
2619 if(UNEX(res)) {
2620 geterr("FTP_ENTRY_PATH", res, __LINE__); goto test_cleanup; }
2621 res = curl_easy_getinfo(curl, CURLINFO_REDIRECT_URL, &charp);
2622 if(UNEX(res)) {
2623 geterr("REDIRECT_URL", res, __LINE__); goto test_cleanup; }
2624 res = curl_easy_getinfo(curl, CURLINFO_PRIMARY_IP, &charp);
2625 if(UNEX(res)) {
2626 geterr("PRIMARY_IP", res, __LINE__); goto test_cleanup; }
2627 res = curl_easy_getinfo(curl, CURLINFO_APPCONNECT_TIME, &dval);
2628 if(UNEX(res)) {
2629 geterr("APPCONNECT_TIME", res, __LINE__); goto test_cleanup; }
2630 res = curl_easy_getinfo(curl, CURLINFO_CERTINFO, &certinfo);
2631 if(UNEX(res)) {
2632 geterr("CERTINFO", res, __LINE__); goto test_cleanup; }
2633 res = curl_easy_getinfo(curl, CURLINFO_CONDITION_UNMET, &val);
2634 if(UNEX(res)) {
2635 geterr("CONDITION_UNMET", res, __LINE__); goto test_cleanup; }
2636 res = curl_easy_getinfo(curl, CURLINFO_RTSP_SESSION_ID, &charp);
2637 if(UNEX(res)) {
2638 geterr("RTSP_SESSION_ID", res, __LINE__); goto test_cleanup; }
2639 res = curl_easy_getinfo(curl, CURLINFO_RTSP_CLIENT_CSEQ, &val);
2640 if(UNEX(res)) {
2641 geterr("RTSP_CLIENT_CSEQ", res, __LINE__); goto test_cleanup; }
2642 res = curl_easy_getinfo(curl, CURLINFO_RTSP_SERVER_CSEQ, &val);
2643 if(UNEX(res)) {
2644 geterr("RTSP_SERVER_CSEQ", res, __LINE__); goto test_cleanup; }
2645 res = curl_easy_getinfo(curl, CURLINFO_RTSP_CSEQ_RECV, &val);
2646 if(UNEX(res)) {
2647 geterr("RTSP_CSEQ_RECV", res, __LINE__); goto test_cleanup; }
2648 res = curl_easy_getinfo(curl, CURLINFO_PRIMARY_PORT, &val);
2649 if(UNEX(res)) {
2650 geterr("PRIMARY_PORT", res, __LINE__); goto test_cleanup; }
2651 res = curl_easy_getinfo(curl, CURLINFO_LOCAL_IP, &charp);
2652 if(UNEX(res)) {
2653 geterr("LOCAL_IP", res, __LINE__); goto test_cleanup; }
2654 res = curl_easy_getinfo(curl, CURLINFO_LOCAL_PORT, &val);
2655 if(UNEX(res)) {
2656 geterr("LOCAL_PORT", res, __LINE__); goto test_cleanup; }
2657 res = curl_easy_getinfo(curl, CURLINFO_TLS_SESSION, &tlssession);
2658 if(UNEX(res)) {
2659 geterr("TLS_SESSION", res, __LINE__); goto test_cleanup; }
2660 res = curl_easy_getinfo(curl, CURLINFO_ACTIVESOCKET, &sockfd);
2661 if(UNEX(res)) {
2662 geterr("ACTIVESOCKET", res, __LINE__); goto test_cleanup; }
2663 res = curl_easy_getinfo(curl, CURLINFO_TLS_SSL_PTR, &tlssession);
2664 if(UNEX(res)) {
2665 geterr("TLS_SSL_PTR", res, __LINE__); goto test_cleanup; }
2666 res = curl_easy_getinfo(curl, CURLINFO_HTTP_VERSION, &val);
2667 if(UNEX(res)) {
2668 geterr("HTTP_VERSION", res, __LINE__); goto test_cleanup; }
2669 res = curl_easy_getinfo(curl, CURLINFO_PROXY_SSL_VERIFYRESULT, &val);
2670 if(UNEX(res)) {
2671 geterr("PROXY_SSL_VERIFYRESULT", res, __LINE__); goto test_cleanup; }
2672 res = curl_easy_getinfo(curl, CURLINFO_PROTOCOL, &val);
2673 if(UNEX(res)) {
2674 geterr("PROTOCOL", res, __LINE__); goto test_cleanup; }
2675 res = curl_easy_getinfo(curl, CURLINFO_SCHEME, &charp);
2676 if(UNEX(res)) {
2677 geterr("SCHEME", res, __LINE__); goto test_cleanup; }
2678 res = curl_easy_getinfo(curl, CURLINFO_TOTAL_TIME_T, &oval);
2679 if(UNEX(res)) {
2680 geterr("TOTAL_TIME_T", res, __LINE__); goto test_cleanup; }
2681 res = curl_easy_getinfo(curl, CURLINFO_NAMELOOKUP_TIME_T, &oval);
2682 if(UNEX(res)) {
2683 geterr("NAMELOOKUP_TIME_T", res, __LINE__); goto test_cleanup; }
2684 res = curl_easy_getinfo(curl, CURLINFO_CONNECT_TIME_T, &oval);
2685 if(UNEX(res)) {
2686 geterr("CONNECT_TIME_T", res, __LINE__); goto test_cleanup; }
2687 res = curl_easy_getinfo(curl, CURLINFO_PRETRANSFER_TIME_T, &oval);
2688 if(UNEX(res)) {
2689 geterr("PRETRANSFER_TIME_T", res, __LINE__); goto test_cleanup; }
2690 res = curl_easy_getinfo(curl, CURLINFO_STARTTRANSFER_TIME_T, &oval);
2691 if(UNEX(res)) {
2692 geterr("STARTTRANSFER_TIME_T", res, __LINE__); goto test_cleanup; }
2693 res = curl_easy_getinfo(curl, CURLINFO_REDIRECT_TIME_T, &oval);
2694 if(UNEX(res)) {
2695 geterr("REDIRECT_TIME_T", res, __LINE__); goto test_cleanup; }
2696 res = curl_easy_getinfo(curl, CURLINFO_APPCONNECT_TIME_T, &oval);
2697 if(UNEX(res)) {
2698 geterr("APPCONNECT_TIME_T", res, __LINE__); goto test_cleanup; }
2699 res = curl_easy_getinfo(curl, CURLINFO_RETRY_AFTER, &oval);
2700 if(UNEX(res)) {
2701 geterr("RETRY_AFTER", res, __LINE__); goto test_cleanup; }
2702 curl_easy_setopt(curl, 1, 0);
2703 res = CURLE_OK;
2704test_cleanup:
2705 curl_easy_cleanup(curl);
2706 curl_easy_cleanup(dep);
2707 curl_share_cleanup(share);
2708 curl_global_cleanup();
2709
2710 return (int)res;
2711}
2712