summaryrefslogtreecommitdiff
path: root/src/import/import-util.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-util.h
parent5a3b1abd0ef47de9984d921463c2aaccc630fad6 (diff)
import: make verification code generic, in preparation for using it pull-tar
Diffstat (limited to 'src/import/import-util.h')
-rw-r--r--src/import/import-util.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/import/import-util.h b/src/import/import-util.h
index 811f3fa6d2..6c63fc32a4 100644
--- a/src/import/import-util.h
+++ b/src/import/import-util.h
@@ -23,6 +23,8 @@
#include <stdbool.h>
+#include "import-job.h"
+
typedef enum ImportVerify {
IMPORT_VERIFY_NO,
IMPORT_VERIFY_SUM,
@@ -47,3 +49,6 @@ int import_url_change_last_component(const char *url, const char *suffix, char *
const char* import_verify_to_string(ImportVerify v) _const_;
ImportVerify import_verify_from_string(const char *s) _pure_;
+
+int import_make_verification_jobs(ImportJob **ret_checksum_job, ImportJob **ret_signature_job, ImportVerify verify, const char *url, CurlGlue *glue, ImportJobFinished on_finished, void *userdata);
+int import_verify(ImportJob *main_job, ImportJob *checksum_job, ImportJob *signature_job);