Skip to content

Commit

Permalink
WIP load TLS certificates from the OS native root store
Browse files Browse the repository at this point in the history
  • Loading branch information
est31 committed Oct 17, 2020
1 parent 5bdc13a commit c77157a
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 25 deletions.
76 changes: 53 additions & 23 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -121,3 +121,6 @@ lto = true
# Reduce build time by setting proc-macro crates non optimized.
[profile.release.build-override]
opt-level = 0

[patch.crates-io]
ring = { git = "https://github.com/chadseld/ring", branch = "apple-silicon" }
4 changes: 2 additions & 2 deletions download/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ default = ["reqwest-backend", "reqwest-rustls-tls", "reqwest-default-tls"]
curl-backend = ["curl"]
reqwest-backend = ["reqwest", "env_proxy", "lazy_static"]
reqwest-default-tls = ["reqwest/default-tls"]
reqwest-rustls-tls = ["reqwest/rustls-tls"]
reqwest-rustls-tls = ["reqwest/rustls-tls-native-roots"]

[dependencies]
error-chain = "0.12"
url = "2.1"
curl = { version = "0.4.11", optional = true }
env_proxy = { version = "0.4.1", optional = true }
lazy_static = { version = "1.0", optional = true }
reqwest = { version = "0.10", default-features = false, features = ["blocking", "gzip", "socks"], optional = true }
reqwest = { git = "https://github.com/est31/reqwest/", branch = "rustls-roots", default-features = false, features = ["blocking", "gzip", "socks"], optional = true }

[dev-dependencies]
hyper = { version = "0.13", default-features = false, features = ["tcp"] }
Expand Down

0 comments on commit c77157a

Please sign in to comment.