prism54: Replace HTTP links with HTTPS ones
authorAlexander A. Klimov <grandmaster@al2klimov.de>
Sun, 19 Jul 2020 12:12:24 +0000 (14:12 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Sun, 2 Aug 2020 14:58:30 +0000 (17:58 +0300)
commit87b589a19901552a6d4b9976c17530d73e3c2dcf
tree0eab5d3e34ba25392cc81380e339dc938ee818be
parentba78405ecaac382d65d16dcd6798d8c64e264432
prism54: 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/20200719121224.58581-1-grandmaster@al2klimov.de
drivers/net/wireless/intersil/prism54/isl_oid.h