OSDN Git Service

sh: Replace HTTP links with HTTPS ones
authorAlexander A. Klimov <grandmaster@al2klimov.de>
Sun, 12 Jul 2020 11:11:18 +0000 (13:11 +0200)
committerRich Felker <dalias@libc.org>
Sat, 15 Aug 2020 02:05:12 +0000 (22:05 -0400)
commit91194e9b046e18ed813d4632e1c72683aac944ad
tree77909686c0737b6150f90e0fdbdaddb3019ba35c
parente1a8d38a17ce68776c313f0960f530371418c428
sh: Replace HTTP links with HTTPS ones

Rationale:
Reduces attack surface on kernel devs opening the links for MITM
as HTTPS traffic is much harder to manipulate.

Deterministic algorithm:
For each file:
  If not .svg:
    For each line:
      If doesn't contain `\bxmlns\b`:
        For each link, `\bhttp://[^# \t\r\n]*(?:\w|/)`:
  If neither `\bgnu\.org/license`, nor `\bmozilla\.org/MPL\b`:
            If both the HTTP and HTTPS versions
            return 200 OK and serve the same content:
              Replace HTTP with HTTPS.

Signed-off-by: Alexander A. Klimov <grandmaster@al2klimov.de>
Signed-off-by: Rich Felker <dalias@libc.org>
arch/sh/Kconfig