summaryrefslogtreecommitdiff
path: root/src/import/import-util.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-01-20 16:36:40 +0100
committerLennart Poettering <lennart@poettering.net>2015-01-20 20:40:44 +0100
commit8f6950587ab7b4d6fe1b51241759cc3a4682b96d (patch)
tree26725324e6c459e0601630e9ca4269cc3981df41 /src/import/import-util.h
parent950a1705dcedf7c71ee28ee995fb51f95cfb2ed5 (diff)
import: make image verification optional
Diffstat (limited to 'src/import/import-util.h')
-rw-r--r--src/import/import-util.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/import/import-util.h b/src/import/import-util.h
index a8a5ca5699..811f3fa6d2 100644
--- a/src/import/import-util.h
+++ b/src/import/import-util.h
@@ -23,6 +23,14 @@
#include <stdbool.h>
+typedef enum ImportVerify {
+ IMPORT_VERIFY_NO,
+ IMPORT_VERIFY_SUM,
+ IMPORT_VERIFY_SIGNATURE,
+ _IMPORT_VERIFY_MAX,
+ _IMPORT_VERIFY_INVALID = -1,
+} ImportVerify;
+
bool http_etag_is_valid(const char *etag);
int import_make_local_copy(const char *final, const char *root, const char *local, bool force_local);
@@ -36,3 +44,6 @@ int import_make_path(const char *url, const char *etag, const char *image_root,
int import_url_last_component(const char *url, char **ret);
int import_url_change_last_component(const char *url, const char *suffix, char **ret);
+
+const char* import_verify_to_string(ImportVerify v) _const_;
+ImportVerify import_verify_from_string(const char *s) _pure_;