Skip to content

Commit

Permalink
Merge pull request #10 from Keruspe/main
Browse files Browse the repository at this point in the history
Update dependencies
  • Loading branch information
ctz authored Jul 5, 2020
2 parents 3b0a8bb + aa51715 commit 3fba03f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ repository = "https://github.com/ctz/rustls-native-certs"
categories = ["network-programming", "cryptography"]

[dependencies]
rustls = "0.17.0"
rustls = "0.18.0"

[dev-dependencies]
webpki = "0.21"
Expand All @@ -26,4 +26,4 @@ schannel = "0.1.15"
openssl-probe = "0.1.2"

[target.'cfg(target_os = "macos")'.dependencies]
security-framework = "0.4.0"
security-framework = "1.0.0"
4 changes: 4 additions & 0 deletions tests/compare_mozilla.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ fn stringify_x500name(subject: &[u8]) -> String {
&[0x55, 0x04, 0x09] => "STREET",
&[0x55, 0x04, 0x0a] => "O",
&[0x55, 0x04, 0x0b] => "OU",
&[0x55, 0x04, 0x11] => "postalCode",
&[0x55, 0x04, 0x61] => "organizationIdentifier",
&[0x09, 0x92, 0x26, 0x89, 0x93, 0xf2, 0x2c, 0x64, 0x01, 0x19] => "domainComponent",
&[0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x09, 0x01] => "emailAddress",
Expand Down Expand Up @@ -84,6 +85,9 @@ fn test_does_not_have_many_roots_unknown_by_mozilla() {
}
}

#[cfg(windows)]
let threshold = 1.6; // no more than 160% extra roots; windows CI vm has lots of extra roots
#[cfg(not(windows))]
let threshold = 0.5; // no more than 50% extra roots
let diff = (missing_in_moz_roots as f64) / (mozilla.len() as f64);
println!("mozilla: {:?}", mozilla.len());
Expand Down

0 comments on commit 3fba03f

Please sign in to comment.