From 7ce4cc4b739127c0b4b36ffcabc007e5781b13c9 Mon Sep 17 00:00:00 2001 From: Timo Teräs Date: Wed, 9 Jun 2021 18:21:40 +0300 Subject: add basic abstraction for cryptographic operations - basic digesting and signing apis (subject still to fine tuning) - update digest code, and adb signing for the thin wrapping layer - old v1 package and database handling not updated - default mkpkg file hash to sha256 ref #10744 --- src/app_mkndx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/app_mkndx.c') diff --git a/src/app_mkndx.c b/src/app_mkndx.c index 8c29ce6..1281702 100644 --- a/src/app_mkndx.c +++ b/src/app_mkndx.c @@ -213,7 +213,7 @@ static int mkndx_main(void *pctx, struct apk_ctx *ac, struct apk_string_array *a adb_wo_alloca(&ctx->pkgs, &schema_pkginfo_array, &ctx->db); if (ctx->index) { - apk_fileinfo_get(AT_FDCWD, ctx->index, APK_CHECKSUM_NONE, &fi, 0); + apk_fileinfo_get(AT_FDCWD, ctx->index, 0, &fi, 0); index_mtime = fi.mtime; r = adb_m_map(&odb, open(ctx->index, O_RDONLY), ADB_SCHEMA_INDEX, trust); @@ -225,7 +225,7 @@ static int mkndx_main(void *pctx, struct apk_ctx *ac, struct apk_string_array *a } foreach_array_item(parg, args) { - r = apk_fileinfo_get(AT_FDCWD, *parg, APK_CHECKSUM_NONE, &fi, 0); + r = apk_fileinfo_get(AT_FDCWD, *parg, 0, &fi, 0); if (r < 0) { err_pkg: apk_err(out, "%s: %s", *parg, apk_error_str(r)); -- cgit v1.2.3-70-g09d2