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