diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-01-20 16:36:40 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-01-20 20:40:44 +0100 |
commit | 8f6950587ab7b4d6fe1b51241759cc3a4682b96d (patch) | |
tree | 26725324e6c459e0601630e9ca4269cc3981df41 /src/import/import-util.c | |
parent | 950a1705dcedf7c71ee28ee995fb51f95cfb2ed5 (diff) |
import: make image verification optional
Diffstat (limited to 'src/import/import-util.c')
-rw-r--r-- | src/import/import-util.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/import/import-util.c b/src/import/import-util.c index 1212025d43..79c60b376d 100644 --- a/src/import/import-util.c +++ b/src/import/import-util.c @@ -270,3 +270,11 @@ int import_url_change_last_component(const char *url, const char *suffix, char * *ret = s; return 0; } + +static const char* const import_verify_table[_IMPORT_VERIFY_MAX] = { + [IMPORT_VERIFY_NO] = "no", + [IMPORT_VERIFY_SUM] = "sum", + [IMPORT_VERIFY_SIGNATURE] = "signature", +}; + +DEFINE_STRING_TABLE_LOOKUP(import_verify, ImportVerify); |