From 3f4f9e9957a27be4efb29498f8fecd63eafcd16c Mon Sep 17 00:00:00 2001 From: Timo Teras Date: Fri, 17 Jul 2009 13:07:52 +0300 Subject: verify: new applet (ref #46) an utility to check package signature and integrity. --- src/index.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/index.c') 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); } } -- cgit v1.2.3-60-g2f50