Skip to content

Commit 131823a

Browse files
committed
Auto merge of #6614 - claudijd:https_all_the_things, r=ehuss
HTTPS all the things Noticed that we still have a bunch of HTTP links, which could present mild MiTM risks that we can totally remove. One short coming of this was: cargo/src/etc/_cargo:13 "http://zsh.sourceforge.net/Doc/Release/Completion-System.html#Completion-Functions" of which does not have an HTTPS equivalent yet.
2 parents 4536bc9 + 7185e98 commit 131823a

File tree

20 files changed

+61
-61
lines changed

20 files changed

+61
-61
lines changed

LICENSE-APACHE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Apache License
22
Version 2.0, January 2004
3-
http://www.apache.org/licenses/
3+
https://www.apache.org/licenses/LICENSE-2.0
44

55
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
66

@@ -192,7 +192,7 @@ Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.
193193
You may obtain a copy of the License at
194194

195-
http://www.apache.org/licenses/LICENSE-2.0
195+
https://www.apache.org/licenses/LICENSE-2.0
196196

197197
Unless required by applicable law or agreed to in writing, software
198198
distributed under the License is distributed on an "AS IS" BASIS,

LICENSE-THIRD-PARTY

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ depends on a number of libraries which carry their own copyright notices and
33
license terms. These libraries are normally all linked static into the binary
44
distributions of Cargo:
55

6-
* OpenSSL - http://www.openssl.org/source/license.html
6+
* OpenSSL - https://www.openssl.org/source/license.html
77

88
Copyright (c) 1998-2011 The OpenSSL Project. All rights reserved.
99

@@ -22,7 +22,7 @@ distributions of Cargo:
2222
3. All advertising materials mentioning features or use of this
2323
software must display the following acknowledgment:
2424
"This product includes software developed by the OpenSSL Project
25-
for use in the OpenSSL Toolkit. (http://www.openssl.org/)"
25+
for use in the OpenSSL Toolkit. (https://www.openssl.org/)"
2626

2727
4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
2828
endorse or promote products derived from this software without
@@ -36,7 +36,7 @@ distributions of Cargo:
3636
6. Redistributions of any form whatsoever must retain the following
3737
acknowledgment:
3838
"This product includes software developed by the OpenSSL Project
39-
for use in the OpenSSL Toolkit (http://www.openssl.org/)"
39+
for use in the OpenSSL Toolkit (https://www.openssl.org/)"
4040

4141
THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
4242
EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
@@ -1037,7 +1037,7 @@ distributions of Cargo:
10371037

10381038
----------------------------------------------------------------------
10391039

1040-
* libssh2 - http://www.libssh2.org/license.html
1040+
* libssh2 - https://www.libssh2.org/license.html
10411041

10421042
Copyright (c) 2004-2007 Sara Golemon <sarag@libssh2.org>
10431043
Copyright (c) 2005,2006 Mikhail Gusarov <dottedmag@dottedmag.net>
@@ -1080,7 +1080,7 @@ distributions of Cargo:
10801080
USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
10811081
OF SUCH DAMAGE.
10821082

1083-
* libcurl - http://curl.haxx.se/docs/copyright.html
1083+
* libcurl - https://curl.haxx.se/docs/copyright.html
10841084

10851085
COPYRIGHT AND PERMISSION NOTICE
10861086

@@ -1268,5 +1268,5 @@ distributions of Cargo:
12681268
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
12691269
OTHER DEALINGS IN THE SOFTWARE.
12701270

1271-
For more information, please refer to <http://unlicense.org/>
1271+
For more information, please refer to <https://unlicense.org/>
12721272

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ See LICENSE-APACHE and LICENSE-MIT for details.
7878
### Third party software
7979

8080
This product includes software developed by the OpenSSL Project
81-
for use in the OpenSSL Toolkit (http://www.openssl.org/).
81+
for use in the OpenSSL Toolkit (https://www.openssl.org/).
8282

8383
In binary form, this product includes software that is licensed under the
8484
terms of the GNU General Public License, version 2, with a linking exception,

src/bin/cargo/commands/pkgid.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Example Package IDs
2727
crates.io/foo | foo | * | *://crates.io/foo
2828
crates.io/foo#1.2.3 | foo | 1.2.3 | *://crates.io/foo
2929
crates.io/bar#foo:1.2.3 | foo | 1.2.3 | *://crates.io/bar
30-
http://crates.io/foo#1.2.3 | foo | 1.2.3 | http://crates.io/foo
30+
https://crates.io/foo#1.2.3 | foo | 1.2.3 | https://crates.io/foo
3131
",
3232
)
3333
}

src/cargo/core/package_id_spec.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ impl PackageIdSpec {
3535
/// use cargo::core::PackageIdSpec;
3636
///
3737
/// let specs = vec![
38-
/// "http://crates.io/foo#1.2.3",
39-
/// "http://crates.io/foo#bar:1.2.3",
38+
/// "https://crates.io/foo#1.2.3",
39+
/// "https://crates.io/foo#bar:1.2.3",
4040
/// "crates.io/foo",
4141
/// "crates.io/foo#1.2.3",
4242
/// "crates.io/foo#bar",
@@ -286,19 +286,19 @@ mod tests {
286286
}
287287

288288
ok(
289-
"http://crates.io/foo#1.2.3",
289+
"https://crates.io/foo#1.2.3",
290290
PackageIdSpec {
291291
name: "foo".to_string(),
292292
version: Some("1.2.3".to_semver().unwrap()),
293-
url: Some(Url::parse("http://crates.io/foo").unwrap()),
293+
url: Some(Url::parse("https://crates.io/foo").unwrap()),
294294
},
295295
);
296296
ok(
297-
"http://crates.io/foo#bar:1.2.3",
297+
"https://crates.io/foo#bar:1.2.3",
298298
PackageIdSpec {
299299
name: "bar".to_string(),
300300
version: Some("1.2.3".to_semver().unwrap()),
301-
url: Some(Url::parse("http://crates.io/foo").unwrap()),
301+
url: Some(Url::parse("https://crates.io/foo").unwrap()),
302302
},
303303
);
304304
ok(
@@ -356,13 +356,13 @@ mod tests {
356356
assert!(PackageIdSpec::parse("baz:").is_err());
357357
assert!(PackageIdSpec::parse("baz:*").is_err());
358358
assert!(PackageIdSpec::parse("baz:1.0").is_err());
359-
assert!(PackageIdSpec::parse("http://baz:1.0").is_err());
360-
assert!(PackageIdSpec::parse("http://#baz:1.0").is_err());
359+
assert!(PackageIdSpec::parse("https://baz:1.0").is_err());
360+
assert!(PackageIdSpec::parse("https://#baz:1.0").is_err());
361361
}
362362

363363
#[test]
364364
fn matching() {
365-
let url = Url::parse("http://example.com").unwrap();
365+
let url = Url::parse("https://example.com").unwrap();
366366
let sid = SourceId::for_registry(&url).unwrap();
367367
let foo = PackageId::new("foo", "1.2.3", sid).unwrap();
368368
let bar = PackageId::new("bar", "1.2.3", sid).unwrap();

src/cargo/ops/cargo_package.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ fn check_metadata(pkg: &Package, config: &Config) -> CargoResult<()> {
152152

153153
config.shell().warn(&format!(
154154
"manifest has no {things}.\n\
155-
See <http://doc.crates.io/manifest.html#package-metadata> for more info.",
155+
See https://doc.rust-lang.org/cargo/reference/manifest.html#package-metadata for more info.",
156156
things = things
157157
))?
158158
}

src/cargo/ops/common_for_install_and_uninstall.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ where
9090
"the `--vers` provided, `{}`, is \
9191
not a valid semver version requirement\n\n
9292
Please have a look at \
93-
http://doc.crates.io/specifying-dependencies.html \
93+
https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html \
9494
for the correct format",
9595
v
9696
),

src/cargo/ops/registry.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ fn transmit(
286286
the following are not valid badges and were ignored: {}. \
287287
Either the badge type specified is unknown or a required \
288288
attribute is missing. Please see \
289-
http://doc.crates.io/manifest.html#package-metadata \
289+
https://doc.rust-lang.org/cargo/reference/manifest.html#package-metadata \
290290
for valid badge types and their required attributes.",
291291
warnings.invalid_badges.join(", ")
292292
);
@@ -760,7 +760,7 @@ pub fn search(
760760
} else if total_crates > limit && limit >= search_max_limit {
761761
let extra = if source_id.is_default_registry() {
762762
format!(
763-
" (go to http://crates.io/search?q={} to see more)",
763+
" (go to https://crates.io/search?q={} to see more)",
764764
percent_encode(query.as_bytes(), QUERY_ENCODE_SET)
765765
)
766766
} else {

src/doc/man/cargo.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ cargo - The Rust package manager
1717
== DESCRIPTION
1818

1919
This program is a package manager and build tool for the Rust language,
20-
available at <http://rust-lang.org>.
20+
available at <https://rust-lang.org>.
2121

2222
== COMMANDS
2323

src/doc/man/generated/cargo.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ <h2 id="_description">DESCRIPTION</h2>
1919
<div class="sectionbody">
2020
<div class="paragraph">
2121
<p>This program is a package manager and build tool for the Rust language,
22-
available at <a href="http://rust-lang.org" class="bare">http://rust-lang.org</a>.</p>
22+
available at <a href="https://rust-lang.org" class="bare">https://rust-lang.org</a>.</p>
2323
</div>
2424
</div>
2525
</div>

0 commit comments

Comments
 (0)