diff options
author | Timo Teras <timo.teras@iki.fi> | 2009-07-22 21:04:54 +0300 |
---|---|---|
committer | Timo Teras <timo.teras@iki.fi> | 2009-07-22 21:04:54 +0300 |
commit | 79f43861e60e83d916c8499f247523dd73586248 (patch) | |
tree | f59a7de1067b0132bb8b3dc78cc58985ccee9161 /src/add.c | |
parent | 718ef3079ea18fcb588264d26e3316628ad18ba0 (diff) | |
download | apk-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) { |