Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2021-01-19 | libfetch: harden URL parsing | Timo Teräs | 1 | -11/+28 | |
Treat URLs with too long individual components as malformed instead of silently truncating that field. There might be unexpected results if hostname, username or password field gets truncated. | |||||
2021-01-19 | libfetch: fix connection pooling for proxied http/https requests | Timo Teräs | 4 | -15/+14 | |
The connection pooling was broken in two ways: 1. The original URL was always used as the connection pool URL, resulting in duplicate connections to the proxy for http URLs (each http URL would get separate proxy connection) 2. The cache_url stored was always the socket level connect URL. In case of HTTPS, the lookup was done done with the real URL, but the proxy URL was stored as the "cache URL". Thus HTTPS CONNECT connections were never re-used. This fixes the code with following logic: 1. The cache key url is the real URL when no-proxy, or when HTTPS with proxy (the socket is connected to proxy, but logically it is connected to the real URL due to HTTP CONNECT request). And for HTTP with proxy, it's the proxy URL so same proxy connection can be reused for all requests going through it. 2. fetch_connect() now gets cache key URL separately, and it always gets the same value as the fetch_cache_get() calls. | |||||
2021-01-19 | libfetch: fix use-after-free in connection cache management | Timo Teräs | 1 | -3/+3 | |
fixes #10734 | |||||
2021-01-19 | libfetch: fix parsing of proxy response to CONNECT requests | Conny Seifert | 1 | -6/+1 | |
Instead of skipping just one line, properly parse the response headers. [TT: reworded commit message] | |||||
2021-01-17 | libfetch: support for CIDR subnets in no_proxy/NO_PROXY | Timo Teräs | 1 | -1/+65 | |
This enables matching numeric hosts against CIDR style subnet matches in no_proxy environment variable. Based on work by Thermi. Co-authored-by: Noel Kuntze <noel.kuntze@thermi.consulting> | |||||
2021-01-17 | man info: --install-if and --rinstall-if do not have short options | Timo Teräs | 1 | -7/+7 | |
Commit e4aae45f removed the short options. Update the documentation. Fixes #10733 | |||||
2021-01-14 | database.c: Fixed package DESCRIPTION parsing | thibault.ferrante | 2 | -1/+2 | |
Regression introduced by 0fb0d30 which makes parsing a description a critical failure. [TT: Minor stylistic change. Fix also missing final line change from the earlier commit] | |||||
2021-01-11 | io: Handle long lines | thibault.ferrante | 1 | -1/+1 | |
As an APKINDEX can become arbitrarely long due to dependencies and other parameters, increasing the buffer size make this less likely to happens. Closes #10731. | |||||
2021-01-11 | database: Propagate errors when loading an APKINDEX | thibault.ferrante | 8 | -19/+19812 | |
In case of failure when loading an APKINDEX, no errors are propagated to the user which may uncorrectly interpret the current problem. | |||||
2021-01-08 | libfetch: Increase URL password length | Mike Detwiler | 1 | -1/+1 | |
Signed-off-by: Mike Detwiler <det@shift5.io> | |||||
2020-12-29 | apk_update: use URL_PRINTF | Alex Denes | 1 | -2/+4 | |
2020-11-11 | manual: Add missing r | Alex Denes | 1 | -1/+1 | |
2020-11-10 | manual: Fix wrong argument name | Alex Denes | 1 | -1/+1 | |
2020-10-09 | add missing apk_trust.h | Timo Teräs | 2 | -2/+44 | |
2020-10-09 | rename adb_trust to apk_trust, and use it as package signature keystore too | Timo Teräs | 21 | -355/+334 | |
2020-10-09 | make apk_database optional for applets that don't need it | Timo Teräs | 32 | -144/+209 | |
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-09 | rename apk_db_options to apk_ctx, rework logging | Timo Teräs | 43 | -737/+819 | |
makes apk_verbosity non-global fixes #10682 | |||||
2020-10-09 | make apk_flags non-global, make progress printing state non-global | Timo Teräs | 19 | -127/+134 | |
ref #10682 | |||||
2020-10-09 | make apk_force non-global, remove left-over apk_arch | Timo Teräs | 12 | -55/+56 | |
ref #10682 | |||||
2020-10-09 | db: convert repository list to a string array | Timo Teräs | 4 | -25/+8 | |
2020-10-09 | add separate vertest applet for version string testing | Timo Teräs | 9 | -15/+863 | |
start adding meson based tests | |||||
2020-10-09 | io: make ostream_file always use tmpname | Timo Teräs | 7 | -63/+36 | |
2020-10-09 | minor performance improvements on build and code | Timo Teräs | 6 | -11/+20 | |
2020-10-09 | adb: improve sorting features, sort installed-db package listing | Timo Teräs | 3 | -55/+155 | |
2020-10-09 | build: adopt meson build for v3 branch | Timo Teräs | 3 | -4/+13 | |
2020-10-09 | ci: also install static deps | Rasmus Thomsen | 1 | -1/+1 | |
2020-10-09 | build: make sure to use helper scripts from git tree and not system | Rasmus Thomsen | 2 | -2/+2 | |
2020-10-09 | build: use tabs for meson files | Rasmus Thomsen | 2 | -133/+133 | |
2020-10-09 | build: add option to build apk.static binary | Rasmus Thomsen | 3 | -13/+43 | |
2020-10-09 | ci: add test for meson | Rasmus Thomsen | 1 | -0/+12 | |
2020-10-09 | build: add atom.c to meson | Rasmus Thomsen | 1 | -0/+2 | |
2020-10-09 | scripts: add script to generate APK cross file | Rasmus Thomsen | 1 | -0/+51 | |
2020-10-09 | build: allow building without help in meson | Rasmus Thomsen | 3 | -8/+19 | |
2020-10-09 | build: build help.h with meson | Rasmus Thomsen | 3 | -27/+39 | |
2020-10-09 | build: add support for building with meson | Rasmus Thomsen | 5 | -0/+243 | |
2020-10-09 | adb: introduce apk-tools database format, and few applets | Timo Teräs | 23 | -10/+2955 | |
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 | apk-tools-2.12.0v2.12.0 | Timo Teräs | 1 | -1/+1 | |
2020-10-07 | various changes to make clang not give warnings | Timo Teräs | 5 | -14/+19 | |
2020-10-06 | apk-tools-2.12.0_rc2v2.12.0_rc2 | Timo Teräs | 1 | -1/+1 | |
2020-10-06 | db: make the --repositories-file change more announced | Timo Teräs | 2 | -5/+10 | |
Document the version when changed. And print error with similar note if the given repositories-file cannot be read. | |||||
2020-10-06 | libfetch: keep http auth only if redirect is for the same host | Timo Teräs | 1 | -1/+7 | |
fixes #10688 | |||||
2020-10-06 | database: automatically create missing cache dir | Paul Spooren | 1 | -0/+6 | |
On some systems the `/var/` dir is mounted in a tmpfs which is reseted after each reboot. For that reason no post-install script can handle the creation of the cache dir at `/var/cache/apk`. Check on database opnening if the folder is available, if not create it. Fixes #10715 Signed-off-by: Paul Spooren <mail@aparcar.org> | |||||
2020-10-05 | db: make --repositories-file relative to host root | Timo Teräs | 2 | -4/+4 | |
It used to be relative to the --root specified root, but that causes issues with relative command line filenames and is unintuitive. Update documentation accordingly. Fixes #10702. | |||||
2020-10-05 | db: mask password component of printed URLs | Timo Teräs | 3 | -12/+55 | |
fixes #10710 | |||||
2020-10-03 | commit: rephrase the error messages more understandable | Timo Teräs | 17 | -19/+19 | |
fixes #10703 | |||||
2020-10-01 | db: check cache only if some repositories are enabled | Timo Teräs | 1 | -1/+1 | |
2020-09-28 | Implement upgrade --prune to remove stale world dependencies | Timo Teräs | 4 | -6/+68 | |
2020-08-29 | database: clarify the deprecation notice for checksum-less packages | Ariadne Conill | 1 | -3/+7 | |
Closes #10708. | |||||
2020-08-29 | update mailmap with my newer email | Ariadne Conill | 1 | -0/+2 | |
2020-08-26 | fix --repository short option to be -X as before | Timo Teräs | 1 | -1/+1 | |
unintentional regression from commit edb45ae464 fixes #10707 |