Skip to content

Commit b073c71

Browse files
committed
Auto merge of #2638 - newpavlov:openssl, r=jtgeibel
Replace OpenSSL with RustCrypto crates This project already has `sha2`, `sha-1` and `hmac` in its dependency tree (older versions for now), so I think it makes sense to use them directly instead of relying on OpenSSL. Plus it simplifies code a bit. Note that this change does not remove indirect dependency on OpenSSL, since it's still used by `git2`, `libssh2` and `native-tls`.
2 parents 88fba22 + 02f2bdc commit b073c71

File tree

7 files changed

+130
-103
lines changed

7 files changed

+130
-103
lines changed

Cargo.lock

Lines changed: 111 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ url = "2.1"
3737
tar = "0.4.16"
3838
base64 = "0.12"
3939

40-
openssl = "0.10.13"
40+
sha2 = "0.9"
4141
oauth2 = { version = "3.0.0", default-features = false, features = ["reqwest-010"] }
4242
log = "0.4"
4343
env_logger = "0.7"

src/s3/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,6 @@ path = "lib.rs"
1616
[dependencies]
1717
base64 = "0.12"
1818
chrono = "0.4"
19-
openssl = "0.10.13"
19+
sha-1 = "0.9"
20+
hmac = "0.8"
2021
reqwest = { version = "0.10", features = ["blocking"] }

src/s3/error.rs

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)