Lines Matching refs:rc
50 CURLcode rc; variable
52 rc = Curl_base64_encode(data, "i", 1, &output, &size);
53 fail_unless(rc == CURLE_OK, "return code should be CURLE_OK");
58 rc = Curl_base64_encode(data, "ii", 2, &output, &size);
59 fail_unless(rc == CURLE_OK, "return code should be CURLE_OK");
64 rc = Curl_base64_encode(data, "iii", 3, &output, &size);
65 fail_unless(rc == CURLE_OK, "return code should be CURLE_OK");
70 rc = Curl_base64_encode(data, "iiii", 4, &output, &size);
71 fail_unless(rc == CURLE_OK, "return code should be CURLE_OK");
76 rc = Curl_base64_encode(data, "\xff\x01\xfe\x02", 4, &output, &size);
77 fail_unless(rc == CURLE_OK, "return code should be CURLE_OK");
82 rc = Curl_base64url_encode(data, "\xff\x01\xfe\x02", 4, &output, &size);
83 fail_unless(rc == CURLE_OK, "return code should be CURLE_OK");
88 rc = Curl_base64url_encode(data, "iiii", 4, &output, &size);
89 fail_unless(rc == CURLE_OK, "return code should be CURLE_OK");
95 rc = Curl_base64_encode(data, "iiii", 0, &output, &size);
96 fail_unless(rc == CURLE_OK, "return code should be CURLE_OK");
101 rc = Curl_base64_decode("aWlpaQ==", &decoded, &size);
102 fail_unless(rc == CURLE_OK, "return code should be CURLE_OK");
107 rc = Curl_base64_decode("aWlp", &decoded, &size);
108 fail_unless(rc == CURLE_OK, "return code should be CURLE_OK");
113 rc = Curl_base64_decode("aWk=", &decoded, &size);
114 fail_unless(rc == CURLE_OK, "return code should be CURLE_OK");
119 rc = Curl_base64_decode("aQ==", &decoded, &size);
120 fail_unless(rc == CURLE_OK, "return code should be CURLE_OK");
128 rc = Curl_base64_decode("aQ", &decoded, &size);
129 fail_unless(rc == CURLE_BAD_CONTENT_ENCODING, "return code should be CURLE_BAD_CONTENT_ENCODING");
136 rc = Curl_base64_decode("a===", &decoded, &size);
137 fail_unless(rc == CURLE_BAD_CONTENT_ENCODING, "return code should be CURLE_BAD_CONTENT_ENCODING");
144 rc = Curl_base64_decode("a=Q=", &decoded, &size);
145 fail_unless(rc == CURLE_BAD_CONTENT_ENCODING, "return code should be CURLE_BAD_CONTENT_ENCODING");
152 rc = Curl_base64_decode("a\x1f==", &decoded, &size);
153 fail_unless(rc == CURLE_BAD_CONTENT_ENCODING, "return code should be CURLE_BAD_CONTENT_ENCODING");