1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04:00

mk-lib1521: generate code for testing BLOB options as well

Follow-up to cac5374298

Closes #5478
This commit is contained in:
Daniel Stenberg 2020-05-28 22:42:49 +02:00
parent 2110b996a6
commit 32d4d6b969
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -158,6 +158,7 @@ int test(char *URL)
curl_socket_t sockfd;
struct curl_certinfo *certinfo;
struct curl_tlssessioninfo *tlssession;
struct curl_blob blob = { (void *)"silly", 5, 0};
CURLcode res = CURLE_OK;
(void)URL; /* not used */
global_init(CURL_GLOBAL_ALL);
@ -239,8 +240,12 @@ while(<STDIN>) {
print "${pref} OFF_HI);\n$check";
print "${pref} OFF_LO);\n$check";
}
elsif($type eq "CURLOPTTYPE_BLOB") {
print "${pref} &blob);\n$check";
}
else {
print STDERR "\n---- $type\n";
exit; # exit to make this noticed!
}
}
elsif($_ =~ /^ CURLINFO_NONE/) {