Lines Matching refs:output
54 char *output; variable
60 rc = Curl_base64_encode("i", 1, &output, &size);
63 verify_memory(output, "aQ==", 4);
64 Curl_safefree(output);
66 rc = Curl_base64_encode("ii", 2, &output, &size);
69 verify_memory(output, "aWk=", 4);
70 Curl_safefree(output);
72 rc = Curl_base64_encode("iii", 3, &output, &size);
75 verify_memory(output, "aWlp", 4);
76 Curl_safefree(output);
78 rc = Curl_base64_encode("iiii", 4, &output, &size);
81 verify_memory(output, "aWlpaQ==", 8);
82 Curl_safefree(output);
84 rc = Curl_base64_encode("\xff\x01\xfe\x02", 4, &output, &size);
87 verify_memory(output, "/wH+Ag==", 8);
88 Curl_safefree(output);
90 rc = Curl_base64url_encode("\xff\x01\xfe\x02", 4, &output, &size);
93 verify_memory(output, "_wH-Ag", 6);
94 Curl_safefree(output);
96 rc = Curl_base64url_encode("iiii", 4, &output, &size);
99 verify_memory(output, "aWlpaQ", 6);
100 Curl_safefree(output);
103 rc = Curl_base64_encode("iiii", 0, &output, &size);
106 verify_memory(output, "aWlpaQ==", 8);
107 Curl_safefree(output);
109 rc = Curl_base64_encode("", 0, &output, &size);
112 fail_unless(output && !output[0], "output should be a zero-length string");
113 Curl_safefree(output);
115 rc = Curl_base64url_encode("", 0, &output, &size);
118 fail_unless(output && !output[0], "output should be a zero-length string");
119 Curl_safefree(output);