aboutsummaryrefslogtreecommitdiffstats
path: root/src/add.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/add.c
parent50fed1063e080530c7654ebd168e833af2d98c98 (diff)
downloadaports-3f4f9e9957a27be4efb29498f8fecd63eafcd16c.tar.bz2
aports-3f4f9e9957a27be4efb29498f8fecd63eafcd16c.tar.xz
verify: new applet (ref #46)
an utility to check package signature and integrity.
Diffstat (limited to 'src/add.c')
-rw-r--r--src/add.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/add.c b/src/add.c
index 8f067b7545..c05d257705 100644
--- a/src/add.c
+++ b/src/add.c
@@ -117,8 +117,11 @@ static int add_main(void *ctx, int argc, char **argv)
if (strstr(argv[i], ".apk") != NULL) {
struct apk_package *pkg;
+ struct apk_sign_ctx sctx;
- pkg = apk_pkg_read(&db, argv[i], APK_SIGN_VERIFY);
+ apk_sign_ctx_init(&sctx, APK_SIGN_VERIFY);
+ pkg = apk_pkg_read(&db, argv[i], &sctx);
+ apk_sign_ctx_free(&sctx);
if (pkg == NULL) {
apk_error("Unable to read '%s'", argv[i]);
goto err;