Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

USB: 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/20200719160910.60018-1-grandmaster@al2klimov.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Alexander A. Klimov and committed by
Greg Kroah-Hartman
ffeb1e9e a482766d

+15 -15
+1 -1
Documentation/usb/gadget_hid.rst
··· 11 11 /dev/hidgX character devices. 12 12 13 13 For more details about HID, see the developer page on 14 - http://www.usb.org/developers/hidpage/ 14 + https://www.usb.org/developers/hidpage/ 15 15 16 16 Configuration 17 17 =============
+5 -5
Documentation/usb/gadget_multi.rst
··· 142 142 ========= 143 143 144 144 [1] Remote Network Driver Interface Specification, 145 - [[http://msdn.microsoft.com/en-us/library/ee484414.aspx]]. 145 + [[https://msdn.microsoft.com/en-us/library/ee484414.aspx]]. 146 146 147 147 [2] Communications Device Class Abstract Control Model, spec for this 148 148 and other USB classes can be found at ··· 150 150 151 151 [3] CDC Ethernet Control Model. 152 152 153 - [4] [[http://msdn.microsoft.com/en-us/library/ff537109(v=VS.85).aspx]] 153 + [4] [[https://msdn.microsoft.com/en-us/library/ff537109(v=VS.85).aspx]] 154 154 155 - [5] [[http://msdn.microsoft.com/en-us/library/ff539234(v=VS.85).aspx]] 155 + [5] [[https://msdn.microsoft.com/en-us/library/ff539234(v=VS.85).aspx]] 156 156 157 157 [6] To put it in some other nice words, Windows failed to respond to 158 158 any user input. ··· 160 160 [7] You may find [[http://www.cygnal.org/ubb/Forum9/HTML/001050.html]] 161 161 useful. 162 162 163 - [8] http://www.nirsoft.net/utils/usb_devices_view.html 163 + [8] https://www.nirsoft.net/utils/usb_devices_view.html 164 164 165 - [9] [[http://msdn.microsoft.com/en-us/library/ff570620.aspx]] 165 + [9] [[https://msdn.microsoft.com/en-us/library/ff570620.aspx]]
+1 -1
Documentation/usb/linux.inf
··· 1 1 ; Based on template INF file found at 2 - ; <http://msdn.microsoft.com/en-us/library/ff570620.aspx> 2 + ; <https://msdn.microsoft.com/en-us/library/ff570620.aspx> 3 3 ; which was: 4 4 ; Copyright (c) Microsoft Corporation 5 5 ; and released under the MLPL as found at:
+1 -1
drivers/usb/cdns3/cdns3-ti.c
··· 2 2 /** 3 3 * cdns3-ti.c - TI specific Glue layer for Cadence USB Controller 4 4 * 5 - * Copyright (C) 2019 Texas Instruments Incorporated - http://www.ti.com 5 + * Copyright (C) 2019 Texas Instruments Incorporated - https://www.ti.com 6 6 */ 7 7 8 8 #include <linux/bits.h>
+1 -1
drivers/usb/common/debug.c
··· 2 2 /* 3 3 * Common USB debugging functions 4 4 * 5 - * Copyright (C) 2010-2011 Texas Instruments Incorporated - http://www.ti.com 5 + * Copyright (C) 2010-2011 Texas Instruments Incorporated - https://www.ti.com 6 6 * 7 7 * Authors: Felipe Balbi <balbi@ti.com>, 8 8 * Sebastian Andrzej Siewior <bigeasy@linutronix.de>
+3 -3
drivers/usb/host/max3421-hcd.c
··· 11 11 * 12 12 * Based on: 13 13 * o MAX3421E datasheet 14 - * http://datasheets.maximintegrated.com/en/ds/MAX3421E.pdf 14 + * https://datasheets.maximintegrated.com/en/ds/MAX3421E.pdf 15 15 * o MAX3421E Programming Guide 16 - * http://www.hdl.co.jp/ftpdata/utl-001/AN3785.pdf 16 + * https://www.hdl.co.jp/ftpdata/utl-001/AN3785.pdf 17 17 * o gadget/dummy_hcd.c 18 18 * For USB HCD implementation. 19 19 * o Arduino MAX3421 driver ··· 317 317 }; 318 318 319 319 /* 320 - * See http://www.beyondlogic.org/usbnutshell/usb4.shtml#Control for a 320 + * See https://www.beyondlogic.org/usbnutshell/usb4.shtml#Control for a 321 321 * reasonable overview of how control transfers use the the IN/OUT 322 322 * tokens. 323 323 */
+2 -2
drivers/usb/misc/Kconfig
··· 78 78 driver supports the pre-programmed devices (incl. firmware) 79 79 by AK Modul-Bus Computer GmbH. 80 80 81 - Please see: http://www.ak-modul-bus.de/stat/mikrocontroller.html 81 + Please see: https://www.ak-modul-bus.de/stat/mikrocontroller.html 82 82 83 83 To compile this driver as a module, choose M here: the 84 84 module will be called cypress_cy7c63. ··· 106 106 This driver creates an entry "/dev/idmouseX" or "/dev/usb/idmouseX", 107 107 which can be used by, e.g.,"cat /dev/idmouse0 > fingerprint.pnm". 108 108 109 - See also <http://www.fs.tum.de/~echtler/idmouse/>. 109 + See also <https://www.fs.tum.de/~echtler/idmouse/>. 110 110 111 111 config USB_FTDI_ELAN 112 112 tristate "Elan PCMCIA CardBus Adapter USB Client"
+1 -1
include/linux/usb/phy_companion.h
··· 2 2 /* 3 3 * phy-companion.h -- phy companion to indicate the comparator part of PHY 4 4 * 5 - * Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com 5 + * Copyright (C) 2012 Texas Instruments Incorporated - https://www.ti.com 6 6 * This program is free software; you can redistribute it and/or modify 7 7 * it under the terms of the GNU General Public License as published by 8 8 * the Free Software Foundation; either version 2 of the License, or