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/add.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/add.c') diff --git a/src/add.c b/src/add.c index 8f067b7..c05d257 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; -- cgit v1.2.3-60-g2f50