apk-tools/libfetch
Martin Vahlensieck 8e993fe969 Use correct port when redirected
If server redirects from http to https, libfetch detects this, but
wrongly uses the old url scheme to determine the port. This subsequently
leads to the following OpenSSL error:

139741541575496:error:1408F10B:SSL routines:ssl3_get_record:wrong version number:ssl/record/ssl3_record.c:331:

Using the new scheme fixes this.  This error message comes from trying
to connect to port 80 with TLS, it can also be observed by issuing
  $ openssl s_client -connect alpinelinux.org:80

This bug was introduced in commit:
7158474 libfetch: keep http auth only if redirect is for the same host
2021-03-13 12:53:20 +02:00
..
Makefile add script to autogenerate help from man pages 2020-05-06 13:05:19 +03:00
common.c fix compilation without deprecated OpenSSL APIs 2021-01-27 09:13:07 +02:00
common.h libfetch: fix connection pooling for proxied http/https requests 2021-01-19 16:42:38 +02:00
errlist.sh import libfetch-2.38 from NetBSD 2017-10-05 16:58:09 +03:00
fetch.3 import libfetch-2.38 from NetBSD 2017-10-05 16:58:09 +03:00
fetch.c libfetch: harden URL parsing 2021-01-19 17:51:13 +02:00
fetch.cat3 import libfetch-2.38 from NetBSD 2017-10-05 16:58:09 +03:00
fetch.h libfetch: Increase URL password length 2021-01-08 10:55:37 +02:00
file.c libfetch: remove unwanted code conditionals 2017-10-05 16:59:14 +03:00
ftp.c libfetch: fix connection pooling for proxied http/https requests 2021-01-19 16:42:38 +02:00
ftp.errors import libfetch-2.38 from NetBSD 2017-10-05 16:58:09 +03:00
http.c Use correct port when redirected 2021-03-13 12:53:20 +02:00
http.errors import libfetch-2.38 from NetBSD 2017-10-05 16:58:09 +03:00
meson.build build: make sure to use helper scripts from git tree and not system 2020-10-09 16:09:19 +03:00
openssl-compat.c libfetch: improve openssl/libressl compatibility 2017-10-06 13:25:27 +03:00
openssl-compat.h libfetch: improve openssl/libressl compatibility 2017-10-06 13:25:27 +03:00