}
last = bluesky_string_dup(last);
- bluesky_cloudlog_decrypt(last->data, last->len, fs->keys);
+ bluesky_cloudlog_decrypt(last->data, last->len, fs->keys, NULL);
/* Scan through the contents of the last log segment to find a checkpoint
* record. We need to do a linear scan since at this point we don't have a
len -= size;
}
+ if (checkpoint_size == 0) {
+ g_error("Unable to locate checkpoint record!\n");
+ }
+
g_print("Found checkpoint record at %zd (size %zd)\n",
checkpoint - last->data, checkpoint_size);