Skip to content

Commit

Permalink
build(deps): update ring requirement from 0.16.20 to 0.17.7 (#721)
Browse files Browse the repository at this point in the history
* build(deps): update ring requirement from 0.16.20 to 0.17.7

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]>

* fix

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: hzlinyiyu <[email protected]>
  • Loading branch information
dependabot[bot] and attila-lin authored Jan 12, 2024
1 parent 30073e0 commit 78da54e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion poem/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ fluent-langneg = { version = "0.13.0", optional = true }
fluent-syntax = { version = "0.11.0", optional = true }
unic-langid = { version = "0.9.0", optional = true, features = ["macros"] }
intl-memoizer = { version = "0.5.1", optional = true }
ring = { version = "0.16.20", optional = true }
ring = { version = "0.17.7", optional = true }
reqwest = { workspace = true, features = ["json"], optional = true }
rcgen = { version = "0.12.0", optional = true }
x509-parser = { version = "0.15.0", optional = true }
Expand Down
3 changes: 2 additions & 1 deletion poem/src/listener/acme/keypair.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ pub(crate) struct KeyPair(EcdsaKeyPair);

impl KeyPair {
pub(crate) fn from_pkcs8(pkcs8: impl AsRef<[u8]>) -> IoResult<Self> {
EcdsaKeyPair::from_pkcs8(&ECDSA_P256_SHA256_FIXED_SIGNING, pkcs8.as_ref())
let rng = SystemRandom::new();
EcdsaKeyPair::from_pkcs8(&ECDSA_P256_SHA256_FIXED_SIGNING, pkcs8.as_ref(), &rng)
.map(KeyPair)
.map_err(|_| IoError::new(ErrorKind::Other, "failed to load key pair"))
}
Expand Down

0 comments on commit 78da54e

Please sign in to comment.