Skip to content

Commit

Permalink
Update ring requirement from 0.16 to 0.17 in /object_store (#4887)
Browse files Browse the repository at this point in the history
* Update ring requirement from 0.16 to 0.17 in /object_store

Updates the requirements on [ring](https://github.com/briansmith/ring) to permit the latest version.
- [Commits](https://github.com/briansmith/ring/commits)

---
updated-dependencies:
- dependency-name: ring
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>

* Clippy

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Raphael Taylor-Davies <[email protected]>
  • Loading branch information
dependabot[bot] and tustvold authored Oct 2, 2023
1 parent d941ff1 commit 39e4d94
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion object_store/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ serde = { version = "1.0", default-features = false, features = ["derive"], opti
serde_json = { version = "1.0", default-features = false, optional = true }
rand = { version = "0.8", default-features = false, features = ["std", "std_rng"], optional = true }
reqwest = { version = "0.11", default-features = false, features = ["rustls-tls"], optional = true }
ring = { version = "0.16", default-features = false, features = ["std"], optional = true }
ring = { version = "0.17", default-features = false, features = ["std"], optional = true }
rustls-pemfile = { version = "1.0", default-features = false, optional = true }

[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
Expand Down
2 changes: 1 addition & 1 deletion object_store/src/gcp/credential.rs
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ impl TokenProvider for OAuthProvider {

let claim_str = b64_encode_obj(&claims)?;
let message = [self.jwt_header.as_ref(), claim_str.as_ref()].join(".");
let mut sig_bytes = vec![0; self.key_pair.public_modulus_len()];
let mut sig_bytes = vec![0; self.key_pair.public().modulus_len()];
self.key_pair
.sign(
&ring::signature::RSA_PKCS1_SHA256,
Expand Down

0 comments on commit 39e4d94

Please sign in to comment.