size_t length = 0;
// Encode data as base64
- ASSERT_SUCCESS(pakfire_b64encode(t->pakfire, &base64, data, sizeof(data)));
+ ASSERT_SUCCESS(pakfire_b64encode(t->ctx, &base64, data, sizeof(data)));
// Print the encoded data
printf("%s\n", base64);
// Decode the data
- ASSERT_SUCCESS(pakfire_b64decode(t->pakfire, &output, &length, base64));
+ ASSERT_SUCCESS(pakfire_b64decode(t->ctx, &output, &length, base64));
// Print the decoded data
printf("%.*s\n", length, output);
int main(int argc, const char* argv[]) {
testsuite_add_test(test_mkdir, TEST_WANTS_PAKFIRE);
- testsuite_add_test(test_path_match, TEST_WANTS_PAKFIRE);
- testsuite_add_test(test_base64, TEST_WANTS_PAKFIRE);
+ testsuite_add_test(test_path_match, 0);
+ testsuite_add_test(test_base64, 0);
return testsuite_run(argc, argv);
}