Codebase list rust-libslirp / b75b8c6
native-tls: update to 0.2.4 to fix outdated dependency on security-framework-sys. fixup tests so that they pass (network tests can be revisited once test-depends are a thing, since they need ca-certificates. we should also pass needs-internet-access to autopkgtest for those) Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com> Fabian Grünbichler 4 years ago
7 changed file(s) with 54 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
(New empty file)
0 rust-native-tls (0.2.4-1) UNRELEASED-FIXME-AUTOGENERATED-DEBCARGO; urgency=medium
1
2 * Team upload.
3 * Package native-tls 0.2.4 from crates.io using debcargo 2.4.2
4
5 -- Fabian Grünbichler <f.gruenbichler@proxmox.com> Sun, 26 Apr 2020 21:27:45 +0200
6
07 rust-native-tls (0.2.3-1) unstable; urgency=medium
18
29 * Package native-tls 0.2.3 from crates.io using debcargo 2.4.0
2020
2121 Files: debian/*
2222 Copyright:
23 2019 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
24 2019 kpcyrd <git@rxv.cc>
23 2019-2020 Debian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
24 2019-2020 kpcyrd <git@rxv.cc>
2525 License: MIT or Apache-2.0
2626
2727 License: Apache-2.0
0 Index: native-tls/src/test.rs
1 ===================================================================
2 --- native-tls.orig/src/test.rs
3 +++ native-tls/src/test.rs
4 @@ -19,7 +19,6 @@ macro_rules! p {
5 mod tests {
6 use super::*;
7
8 - #[test]
9 fn connect_google() {
10 let builder = p!(TlsConnector::new());
11 let s = p!(TcpStream::connect("google.com:443"));
12 @@ -34,14 +33,12 @@ mod tests {
13 assert!(result.ends_with(b"</HTML>\r\n") || result.ends_with(b"</html>"));
14 }
15
16 - #[test]
17 fn connect_bad_hostname() {
18 let builder = p!(TlsConnector::new());
19 let s = p!(TcpStream::connect("google.com:443"));
20 builder.connect("goggle.com", s).unwrap_err();
21 }
22
23 - #[test]
24 fn connect_bad_hostname_ignored() {
25 let builder = p!(TlsConnector::builder()
26 .danger_accept_invalid_hostnames(true)
00 strip-security-framework.patch
1 update-hex.patch
2
3 disable-tests-that-access-network.patch
44 version = "0.2"
55
66 -[target."cfg(any(target_os = \"macos\", target_os = \"ios\"))".dependencies.security-framework]
7 -version = "0.3.1"
7 -version = "0.4.1"
88 -
99 [target."cfg(any(target_os = \"macos\", target_os = \"ios\"))".dependencies.security-framework-sys]
10 version = "0.3.1"
10 version = "0.4.1"
1111
0 Index: native-tls/Cargo.toml
1 ===================================================================
2 --- native-tls.orig/Cargo.toml
3 +++ native-tls/Cargo.toml
4 @@ -19,7 +19,7 @@ readme = "README.md"
5 license = "MIT/Apache-2.0"
6 repository = "https://github.com/sfackler/rust-native-tls"
7 [dev-dependencies.hex]
8 -version = "0.3"
9 +version = "0.4"
10
11 [features]
12 vendored = ["openssl/vendored"]