hwmon: Replace HTTP links with HTTPS ones
authorAlexander A. Klimov <grandmaster@al2klimov.de>
Sun, 19 Jul 2020 17:55:12 +0000 (19:55 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Fri, 24 Jul 2020 14:44:57 +0000 (07:44 -0700)
commitad736c1a4dcc6f0a26483619d7b4b232152c38fc
tree697ad49d9dc19275d3388e5225d0cfe0b3f19940
parentf12d634f90f6b4fbe79bd89c2238efe6fabb0858
hwmon: 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>
Link: https://lore.kernel.org/r/20200719175512.60745-1-grandmaster@al2klimov.de
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
28 files changed:
Documentation/hwmon/adc128d818.rst
Documentation/hwmon/adm1026.rst
Documentation/hwmon/adm1031.rst
Documentation/hwmon/adt7410.rst
Documentation/hwmon/emc1403.rst
Documentation/hwmon/ina3221.rst
Documentation/hwmon/lm63.rst
Documentation/hwmon/lm70.rst
Documentation/hwmon/lm73.rst
Documentation/hwmon/lm75.rst
Documentation/hwmon/lm85.rst
Documentation/hwmon/lm87.rst
Documentation/hwmon/lm95245.rst
Documentation/hwmon/max31790.rst
Documentation/hwmon/sht21.rst
Documentation/hwmon/shtc1.rst
Documentation/hwmon/thmc50.rst
Documentation/hwmon/tmp103.rst
Documentation/hwmon/tmp108.rst
Documentation/hwmon/tmp421.rst
Documentation/hwmon/tps53679.rst
Documentation/hwmon/w83781d.rst
drivers/hwmon/adm1026.c
drivers/hwmon/hwmon-vid.c
drivers/hwmon/ina3221.c
drivers/hwmon/lm87.c
drivers/hwmon/powr1220.c
drivers/hwmon/sht21.c