+
+char *
+do_checksum (const char *csumtype, const char *path)
+{
+ /* Make the path relative to /sysroot. */
+ char *buf = sysroot_path (path);
+ if (!buf) {
+ reply_with_perror ("malloc");
+ return NULL;
+ }
+
+ char *r = checksum (csumtype, buf);
+ free (buf);
+ return r;
+}
+
+char *
+do_checksum_device (const char *csumtype, const char *device)
+{
+ return checksum (csumtype, device);
+}