summaryrefslogtreecommitdiff
path: root/src/import/import-job.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-01-21 03:46:01 +0100
committerLennart Poettering <lennart@poettering.net>2015-01-21 04:03:54 +0100
commit98c3800184cfc961b19d605f69d555d0cea8bb7a (patch)
treee651ba6248c4b2f52b504acdd13403ee773a2639 /src/import/import-job.h
parent5a3b1abd0ef47de9984d921463c2aaccc630fad6 (diff)
import: make verification code generic, in preparation for using it pull-tar
Diffstat (limited to 'src/import/import-job.h')
-rw-r--r--src/import/import-job.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/import/import-job.h b/src/import/import-job.h
index 9ccaaf2c04..a9b58e6339 100644
--- a/src/import/import-job.h
+++ b/src/import/import-job.h
@@ -96,10 +96,10 @@ struct ImportJob {
bool allow_sparse;
- bool calc_hash;
- gcry_md_hd_t hash_context;
+ bool calc_checksum;
+ gcry_md_hd_t checksum_context;
- char *sha256;
+ char *checksum;
};
int import_job_new(ImportJob **job, const char *url, CurlGlue *glue, void *userdata);
@@ -108,3 +108,5 @@ ImportJob* import_job_unref(ImportJob *job);
int import_job_begin(ImportJob *j);
void import_job_curl_on_finished(CurlGlue *g, CURL *curl, CURLcode result);
+
+DEFINE_TRIVIAL_CLEANUP_FUNC(ImportJob*, import_job_unref);