reset: Replace HTTP links with HTTPS ones
authorAlexander A. Klimov <grandmaster@al2klimov.de>
Sat, 18 Jul 2020 12:18:15 +0000 (14:18 +0200)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Mon, 20 Jul 2020 09:27:12 +0000 (11:27 +0200)
commitffebbecaaa86f7cde4a6a813bed14f9d56e7c373
treee60fcebfd8e61d3caf71f4422dc75d12fe0f0e89
parent308646785e51976dea7e20d29a1842d14bf0b9bd
reset: 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: Philipp Zabel <p.zabel@pengutronix.de>
drivers/reset/reset-ti-syscon.c
include/dt-bindings/reset/ti-syscon.h