summaryrefslogtreecommitdiff
path: root/src/index.c
diff options
context:
space:
mode:
authorTimo Teras <timo.teras@iki.fi>2009-07-17 13:07:52 +0300
committerTimo Teras <timo.teras@iki.fi>2009-07-17 13:07:52 +0300
commit3f4f9e9957a27be4efb29498f8fecd63eafcd16c (patch)
treef9306fef078e62423f38ab58300b98bba4c4ab08 /src/index.c
parent50fed1063e080530c7654ebd168e833af2d98c98 (diff)
downloadapk-tools-3f4f9e9957a27be4efb29498f8fecd63eafcd16c.tar.gz
apk-tools-3f4f9e9957a27be4efb29498f8fecd63eafcd16c.tar.bz2
apk-tools-3f4f9e9957a27be4efb29498f8fecd63eafcd16c.tar.xz
apk-tools-3f4f9e9957a27be4efb29498f8fecd63eafcd16c.zip
verify: new applet (ref #46)
an utility to check package signature and integrity.
Diffstat (limited to 'src/index.c')
-rw-r--r--src/index.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/index.c b/src/index.c
index 86c1f44..12f21fe 100644
--- a/src/index.c
+++ b/src/index.c
@@ -158,8 +158,11 @@ static int index_main(void *ctx, int argc, char **argv)
} while (0);
if (!found) {
- if (apk_pkg_read(&db, argv[i], ictx->method) != NULL)
+ struct apk_sign_ctx sctx;
+ apk_sign_ctx_init(&sctx, ictx->method);
+ if (apk_pkg_read(&db, argv[i], &sctx) != NULL)
newpkgs++;
+ apk_sign_ctx_free(&sctx);
}
}