Timo Teräs
7ce4cc4b73
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
2021-06-11 13:35:32 +03:00
Timo Teräs
1456296b43
add adbgen applet to generate databases from it's text dump
2021-06-02 22:35:58 +03:00
Timo Teräs
efe0c4afec
adb: introduce apk-tools database format, and few applets
...
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.
2020-10-09 16:09:19 +03:00
Timo Teräs
d0edeec8fb
make the atom functions not use global state
...
This greatly helps with memory management on applications that
may want to daemonize and open/close database several times.
Also the lifetime and "owner" of memory for all data is now
explicitly bound to owning struct apk_database, which might
be helpful when writing language bindings. As side effect, the
interned "atoms" are unique only within what apk_database, so
comparing packages from different apk_database may not work
as expected.
Fixes #10697
2020-05-19 12:02:56 +03:00
TBK
5d796b5678
use SPDX-License-Identifier in source files
2020-05-07 10:45:42 +03:00
Reid Rankin
c7c8ab7c57
don't use hardcoded checksum buffer sizes
2020-01-25 16:35:31 +02:00
Timo Teräs
44daf80873
fix strncpy bounds errors
...
error: 'strncpy' specified bound 4096 equals destination size [-Werror=stringop-truncation]
Based on patch by Elan Ruusamäe <glen@delfi.ee>
2019-02-13 16:05:27 +02:00
Timo Teräs
beab8545eb
add support for openssl 1.1
2018-10-26 08:22:08 +03:00
Timo Teräs
23d0a2244a
ignore .apk-new files for overlays
2015-04-08 11:08:16 +03:00
Timo Teräs
36d5b91495
support extended pax header in tar extractor
2014-11-01 19:17:06 +02:00
Timo Teräs
b7a22e555f
solver, test: implements more provides things, add tests
...
ref #574
2012-02-27 16:35:04 +02:00
Timo Teräs
fe9b4a3888
blob: optimize spn and cspn
2012-02-08 17:01:14 +02:00
Timo Teräs
1f9a36de68
db: support line feed as 'world' dependency separator
...
* default writing the world with spaces if a space is found
(for backwards compatibility) for now
2012-01-12 14:33:29 +02:00
Timo Teräs
1817b0a3c3
all: update copyright year statement
2011-09-13 11:53:01 +03:00
Timo Teräs
bfd53b59d2
print: minor cleanup to indented writer
2011-09-09 20:06:10 +03:00
Timo Teräs
972bec3210
various: use 'atoms' for certain package field and misc fixes
...
- implement a hash table for commonly shared fields such as
license, version and architecture
- use macroes to print blobs or pkgname-pkgver strings
- fix some old cruft
2010-12-14 19:51:16 +02:00
Timo Teräs
d92df52079
io: enhance istream/bstreams with pipe to forked child
...
* prunes the child pid to avoid zombies
* handles the errors so e.g. file-not-found is reported properly
2010-12-09 10:47:09 +02:00
Timo Teräs
038b672061
state: improve error messages from dependency failures
...
Print more information why installation changeset calculation failed.
Fixes #187 .
2010-06-01 11:49:32 +03:00
Timo Teras
279513bfbe
db: implement triggers ( fixes #45 )
2009-08-13 14:10:30 +03:00
Timo Teras
addae04c26
db, audit: audit symlinks (by hash of the link target)
2009-08-11 19:02:22 +03:00
Timo Teras
ced1fa83d6
state: indent package lists
2009-08-06 15:34:33 +03:00
Timo Teras
a7c5fda40a
blob: base64 encoding and decoding
...
and prefer sha1 checksums to be stored in base64 encoded format.
2009-07-15 14:48:57 +03:00
Timo Teras
981bc118f8
db: live with sha1 and md5
...
this also convers scripts file to a tar archive.
2009-07-14 19:14:05 +03:00
Timo Teras
8d1eeb58e4
blob: some helpers to replace snprintf
...
snprintf is dog slow. make the blob stuff have some helper functions
so we can use them in code paths that are executed often.
2009-07-14 13:27:21 +03:00
Timo Teras
f1985b03bd
hash: allow caching of hash value
2009-07-14 10:47:20 +03:00
Timo Teras
4562f44f9b
bstream: make tokenizable and load index using bstream
...
some fixes on index reading code too.
2009-07-14 09:33:47 +03:00
Timo Teras
bf094dc5ea
csum: use openssl instead
...
instead of having static md5 implemenation, use the openssl
library for digest functions.
2009-07-08 10:45:49 +03:00
Timo Teras
fac4cdb3fa
blob: function to checksum a blob
...
And use it in couple of places. Some whitespace fixes too.
2009-06-28 18:52:40 +03:00
Timo Teras
7a29678aac
help: auto construct help
...
And add some more verbosity to the help message.
2009-06-25 15:14:07 +03:00
Timo Teras
7cef96c30d
blob: add strspn helpers
2009-04-14 18:46:35 +03:00
Timo Teras
f0609951b9
hash, db: use apk_blob_t and list_*
2008-11-27 20:25:01 +02:00
Timo Teras
1a7f3e3678
various: use apk_istream api
2008-11-27 16:59:04 +02:00
Timo Teras
57154db85d
db: parse new style .PKGINFO
2008-11-06 16:58:58 +02:00
Timo Teras
d6c7435242
Initial commit of some stuff written so far. Still in state of flux. Expect
...
breakage and major changes.
2008-04-17 14:09:13 +00:00