ipw2x00: Replace HTTP links with HTTPS ones
authorAlexander A. Klimov <grandmaster@al2klimov.de>
Sat, 18 Jul 2020 10:02:40 +0000 (12:02 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Sun, 2 Aug 2020 15:15:38 +0000 (18:15 +0300)
commit348cb5dc4d702e071efb4f70c4dacfe2473c815d
tree6d25d44fd9d1123c3a4e29264a99047f82390c7f
parent560a218d1ce6ea36df6fb943a1065181df90a4d6
ipw2x00: 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: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200718100240.98593-1-grandmaster@al2klimov.de
Documentation/networking/device_drivers/wifi/intel/ipw2100.rst
drivers/net/wireless/intel/ipw2x00/Kconfig