From 39e4d94364d3df5e3cc8662b5c6305463f089658 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 2 Oct 2023 15:14:34 +0100 Subject: [PATCH] Update ring requirement from 0.16 to 0.17 in /object_store (#4887) * 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] * Clippy --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Raphael Taylor-Davies --- object_store/Cargo.toml | 2 +- object_store/src/gcp/credential.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/object_store/Cargo.toml b/object_store/Cargo.toml index ff8047c60ca9..7928648d170f 100644 --- a/object_store/Cargo.toml +++ b/object_store/Cargo.toml @@ -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] diff --git a/object_store/src/gcp/credential.rs b/object_store/src/gcp/credential.rs index 205b805947cc..ad21c33b8b9d 100644 --- a/object_store/src/gcp/credential.rs +++ b/object_store/src/gcp/credential.rs @@ -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,