Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2022-03-21 | adb: use qsort_r | Timo Teräs | 1 | -33/+35 | |
2022-03-21 | mkndx, adb: fix index searching | Timo Teräs | 1 | -40/+82 | |
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-21 | mkndx: fix index generation for v2 and v3 packages | Timo Teräs | 1 | -0/+14 | |
For v2 packages, the identity was never set. For v3 packages, the file size was never set. This fixes both issues. | |||||
2022-02-01 | mkpkg, adb: validate version and dependency format | Timo Teräs | 1 | -2/+2 | |
Fail if the package or dependency version format is not valid. fixes #10807 | |||||
2021-12-14 | adb: use sys/uio.h for iovec operations | Ariadne Conill | 1 | -0/+1 | |
readv/writev and struct iovec are declared in sys/uio.h per POSIX. using it without sys/uio.h is a GNU extension. ref #10794 | |||||
2021-12-14 | everywhere: use stdlib.h for malloc(3) definition, not GNU-specific malloc.h | Ariadne Conill | 1 | -1/+0 | |
musl implements support for malloc.h, but it is only a stub. we do not use any of the GNU-specific malloc interfaces, so just use POSIX stdlib.h instead. ref #10794 | |||||
2021-10-27 | db, add: support adding v3 package files | Timo Teräs | 1 | -2/+2 | |
2021-10-25 | mkpkg: make unique-id field a blob | Timo Teräs | 1 | -0/+18 | |
2021-09-13 | adb: fix --allow-untrusted to work again | Timo Teräs | 1 | -4/+10 | |
and fix the error code if untrusted adb is seen | |||||
2021-08-23 | trust: always use have valid struct apk_trust * | Timo Teräs | 1 | -2/+0 | |
Make sure we always have valid struct apk_trust * for code using it. Load the signing keys directly when being specified to produce sane error message if loading them fails. | |||||
2021-08-23 | remove IS_ERR_OR_NULL | Timo Teräs | 1 | -2/+2 | |
In most places where pointer can be an 'error' it cannot be null pointer. Further, in those cases just calling PTR_ERR() is not enough to handle the null case. Simplify code by removing this case. If NULL case needs to be handled, it's better to add separate check and return fixed error code in that case. | |||||
2021-07-30 | extract: use extraction api, and implement it for v3 packages | Timo Teräs | 1 | -5/+9 | |
The extract applet now works with both v2 and v3 packages. | |||||
2021-07-26 | adb: fix some error handling paths | Timo Teräs | 1 | -7/+7 | |
2021-07-25 | adb: fix error handling of non-adb files | Timo Teräs | 1 | -1/+4 | |
2021-07-22 | adb: add a small adb blob header with versions and root object | Timo Teräs | 1 | -37/+59 | |
2021-07-22 | adb: refactor struct adb_header to adb_file_header | Timo Teräs | 1 | -31/+29 | |
In struct adb, do not keep the whole header, just the schema in host byte order. | |||||
2021-07-22 | adb: make adb mmap/stream parser more united, add ADB_BLOCK_DATAX | Timo Teräs | 1 | -43/+54 | |
Harden the error checking of expected block types and their order. Add ADB_BLOCK_DATAX as reserved for >1GB blocks. | |||||
2021-07-22 | adb, convndx: check istream_close result | Timo Teräs | 1 | -2/+1 | |
2021-07-22 | io: make apk_istream_get/read() fail on incomplete read | Timo Teräs | 1 | -3/+3 | |
2021-07-22 | rework apk_istream_splice and apk_istream_tee | Timo Teräs | 1 | -2/+1 | |
- apk_istream_splice usage is converted to apk_stream_copy which is the newer variant. With caching enabled by default, this makes more sense mmapping or using separate buffers. - apk_istream_tee is reworked to write to apk_ostream, which simplifies quite a bit of various things | |||||
2021-07-22 | adb: remove the now unused get_default_int() hook | Timo Teräs | 1 | -7/+1 | |
It is no longer needed, and can be later reintroduced if needed. | |||||
2021-07-22 | adb: unify various interfaces to adb_m_process | Timo Teräs | 1 | -90/+85 | |
Removes code duplication, and puts important checks in one place. Support seamless decompression in adbdump. | |||||
2021-07-16 | check trust in adb_trust_write_signatures() | Timo Teräs | 1 | -1/+3 | |
Based on patch from Daniel Golle <daniel@makrotopia.org> | |||||
2021-06-19 | reduce misuse of error codes from errno.h | Timo Teräs | 1 | -24/+30 | |
2021-06-11 | extract: new applet to extract v2 packages | Timo Teräs | 1 | -8/+81 | |
2021-06-11 | add basic abstraction for cryptographic operations | Timo Teräs | 1 | -42/+42 | |
- 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 | |||||
2021-06-11 | mkpkg: new applet to create v2 packages with basic functionality | Timo Teräs | 1 | -26/+64 | |
2021-06-02 | add adbgen applet to generate databases from it's text dump | Timo Teräs | 1 | -1/+37 | |
2021-05-26 | add abstraction to adb "walking" - a sax like API to enumerate whole db | Timo Teräs | 1 | -2/+4 | |
This converts 'adbdump' applet to generate adb_walk api callbacks, and implement gentext backend to generate the yaml-like text output. | |||||
2020-10-09 | rename adb_trust to apk_trust, and use it as package signature keystore too | Timo Teräs | 1 | -4/+118 | |
2020-10-09 | adb: improve sorting features, sort installed-db package listing | Timo Teräs | 1 | -29/+97 | |
2020-10-09 | adb: introduce apk-tools database format, and few applets | Timo Teräs | 1 | -0/+802 | |
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. |