Lines Matching refs:rc
58 CURLcode rc; variable
60 rc = Curl_base64_encode("i", 1, &output, &size);
61 fail_unless(rc == CURLE_OK, "return code should be CURLE_OK");
66 rc = Curl_base64_encode("ii", 2, &output, &size);
67 fail_unless(rc == CURLE_OK, "return code should be CURLE_OK");
72 rc = Curl_base64_encode("iii", 3, &output, &size);
73 fail_unless(rc == CURLE_OK, "return code should be CURLE_OK");
78 rc = Curl_base64_encode("iiii", 4, &output, &size);
79 fail_unless(rc == CURLE_OK, "return code should be CURLE_OK");
84 rc = Curl_base64_encode("\xff\x01\xfe\x02", 4, &output, &size);
85 fail_unless(rc == CURLE_OK, "return code should be CURLE_OK");
90 rc = Curl_base64url_encode("\xff\x01\xfe\x02", 4, &output, &size);
91 fail_unless(rc == CURLE_OK, "return code should be CURLE_OK");
96 rc = Curl_base64url_encode("iiii", 4, &output, &size);
97 fail_unless(rc == CURLE_OK, "return code should be CURLE_OK");
103 rc = Curl_base64_encode("iiii", 0, &output, &size);
104 fail_unless(rc == CURLE_OK, "return code should be CURLE_OK");
109 rc = Curl_base64_encode("", 0, &output, &size);
110 fail_unless(rc == CURLE_OK, "return code should be CURLE_OK");
115 rc = Curl_base64url_encode("", 0, &output, &size);
116 fail_unless(rc == CURLE_OK, "return code should be CURLE_OK");
121 rc = Curl_base64_decode("aWlpaQ==", &decoded, &size);
122 fail_unless(rc == CURLE_OK, "return code should be CURLE_OK");
127 rc = Curl_base64_decode("aWlp", &decoded, &size);
128 fail_unless(rc == CURLE_OK, "return code should be CURLE_OK");
133 rc = Curl_base64_decode("aWk=", &decoded, &size);
134 fail_unless(rc == CURLE_OK, "return code should be CURLE_OK");
139 rc = Curl_base64_decode("aQ==", &decoded, &size);
140 fail_unless(rc == CURLE_OK, "return code should be CURLE_OK");
148 rc = Curl_base64_decode("aQ", &decoded, &size);
149 fail_unless(rc == CURLE_BAD_CONTENT_ENCODING,
157 rc = Curl_base64_decode("a===", &decoded, &size);
158 fail_unless(rc == CURLE_BAD_CONTENT_ENCODING,
166 rc = Curl_base64_decode("a=Q=", &decoded, &size);
167 fail_unless(rc == CURLE_BAD_CONTENT_ENCODING,
175 rc = Curl_base64_decode("aWlpa=Q=", &decoded, &size);
176 fail_unless(rc == CURLE_BAD_CONTENT_ENCODING,
184 rc = Curl_base64_decode("a\x1f==", &decoded, &size);
185 fail_unless(rc == CURLE_BAD_CONTENT_ENCODING,