summaryrefslogtreecommitdiff
path: root/src/add.c
diff options
context:
space:
mode:
authorTimo Teras <timo.teras@iki.fi>2009-07-22 21:04:54 +0300
committerTimo Teras <timo.teras@iki.fi>2009-07-22 21:04:54 +0300
commit79f43861e60e83d916c8499f247523dd73586248 (patch)
treef59a7de1067b0132bb8b3dc78cc58985ccee9161 /src/add.c
parent718ef3079ea18fcb588264d26e3316628ad18ba0 (diff)
downloadapk-tools-79f43861e60e83d916c8499f247523dd73586248.tar.gz
apk-tools-79f43861e60e83d916c8499f247523dd73586248.tar.bz2
apk-tools-79f43861e60e83d916c8499f247523dd73586248.tar.xz
apk-tools-79f43861e60e83d916c8499f247523dd73586248.zip
signing: verify and generate identity
fixes verification of non-repository packages while installing them. this is final thing needed for full signing support (fixes #46).
Diffstat (limited to 'src/add.c')
-rw-r--r--src/add.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/add.c b/src/add.c
index 0b402fe..03fc96a 100644
--- a/src/add.c
+++ b/src/add.c
@@ -128,8 +128,8 @@ static int add_main(void *ctx, int argc, char **argv)
goto err;
}
- /* FIXME: should verify the package too */
- apk_sign_ctx_init(&sctx, APK_SIGN_GENERATE, NULL);
+ apk_sign_ctx_init(&sctx, APK_SIGN_VERIFY_AND_GENERATE,
+ NULL);
r = apk_pkg_read(&db, argv[i], &sctx, &pkg);
apk_sign_ctx_free(&sctx);
if (r != 0) {