summaryrefslogtreecommitdiff
path: root/src/app_verify.c
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2020-10-05 16:47:24 +0300
committerTimo Teräs <timo.teras@iki.fi>2020-10-09 16:09:19 +0300
commit7a7eca86709fcf31dbb1acf8b82ff411828fb67b (patch)
treeeb737b2604480caa4140f53b106e2cb361678e4d /src/app_verify.c
parent9afb4e8fd117d7d130e5b4b75869765ecfbe2fa7 (diff)
downloadapk-tools-7a7eca86709fcf31dbb1acf8b82ff411828fb67b.tar.gz
apk-tools-7a7eca86709fcf31dbb1acf8b82ff411828fb67b.tar.bz2
apk-tools-7a7eca86709fcf31dbb1acf8b82ff411828fb67b.tar.xz
apk-tools-7a7eca86709fcf31dbb1acf8b82ff411828fb67b.zip
make apk_flags non-global, make progress printing state non-global
ref #10682
Diffstat (limited to 'src/app_verify.c')
-rw-r--r--src/app_verify.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/app_verify.c b/src/app_verify.c
index 7975268..8f78d82 100644
--- a/src/app_verify.c
+++ b/src/app_verify.c
@@ -22,7 +22,7 @@ static int verify_main(void *ctx, struct apk_database *db, struct apk_string_arr
int r, ok, rc = 0;
foreach_array_item(parg, args) {
- apk_sign_ctx_init(&sctx, APK_SIGN_VERIFY, NULL, db->keys_fd);
+ apk_sign_ctx_init(&sctx, APK_SIGN_VERIFY, NULL, db->keys_fd, 1);
r = apk_tar_parse(
apk_istream_gunzip_mpart(apk_istream_from_file(AT_FDCWD, *parg),
apk_sign_ctx_mpart_cb, &sctx),
@@ -47,7 +47,6 @@ static int verify_main(void *ctx, struct apk_database *db, struct apk_string_arr
static struct apk_applet apk_verify = {
.name = "verify",
.open_flags = APK_OPENF_READ | APK_OPENF_NO_STATE,
- .forced_flags = APK_ALLOW_UNTRUSTED,
.main = verify_main,
};