summaryrefslogtreecommitdiff
path: root/src/app_mkndx.c
AgeCommit message (Collapse)AuthorFilesLines
2022-03-21mkndx: fix v3 package handlingTimo Teräs1-2/+0
remove incorrect intialization of the ctx->pkginfo fixes commit 950972a5 "mkndx: fix index generation for v2 and v3 packages"
2022-03-21mkndx, adb: fix index searchingTimo Teräs1-5/+2
Additioal logic is needed to search objects on array: the object comparer needs separate modes to match index, template or exact object template. This should fix mkndx to be able to use old index. fixes #10828
2022-03-21mkndx: fix index generation for v2 and v3 packagesTimo Teräs1-36/+35
For v2 packages, the identity was never set. For v3 packages, the file size was never set. This fixes both issues.
2021-09-03extract: pass root object instead of databaseTimo Teräs1-5/+3
2021-07-30mkndx: support v3 packagesTimo Teräs1-0/+14
2021-07-27Further refactor extract API to have separate ops vtableTimo Teräs1-14/+13
This splits the callbacks by type, and further prepares the API to be usable for v3 files too.
2021-07-27Refactor .apk extraction codeTimo Teräs1-21/+13
This moves and isolates the tar code to tar.c. And the actual file extraction to disk is moved to extract.c. A new API is introduced and used for v2 file extraction. This essentially moves and isolates the apk_sign_ctx_* beast into extract_v2.c and offers a saner interface to handling packages. A place holder is added for v3 extraction.
2021-07-22io: rework apk_istream_get_* to not return erros in blob valueTimo Teräs1-11/+12
The interface was slightly cumbersome, so replace these functions to return explicit error, and make the return blob a pointer arg.
2021-07-22adb: unify various interfaces to adb_m_processTimo Teräs1-1/+3
Removes code duplication, and puts important checks in one place. Support seamless decompression in adbdump.
2021-06-19reduce misuse of error codes from errno.hTimo Teräs1-1/+1
2021-06-19fixup some includesTimo Teräs1-1/+0
- remove unneeded assert.h - add needed limits.h
2021-06-11add basic abstraction for cryptographic operationsTimo Teräs1-2/+2
- 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
2020-10-09rename adb_trust to apk_trust, and use it as package signature keystore tooTimo Teräs1-2/+2
2020-10-09make apk_database optional for applets that don't need itTimo Teräs1-7/+8
The new v3 applets don't use it, and eventually all applets will use the new formats only. This prepares the code for this, and moves trust, id_cache, and root_fd to apk_ctx which is enough for v3 applets at this time. The generic code is made to not initialize apk_database if it's not needed.
2020-10-09rename apk_db_options to apk_ctx, rework loggingTimo Teräs1-12/+12
makes apk_verbosity non-global fixes #10682
2020-10-09make apk_flags non-global, make progress printing state non-globalTimo Teräs1-1/+1
ref #10682
2020-10-09io: make ostream_file always use tmpnameTimo Teräs1-1/+1
2020-10-09adb: introduce apk-tools database format, and few appletsTimo Teräs1-0/+329
This is a flat buffers inspired format that allows fast mmaped access to the data with low overhead, signature support and relatively good forward support.