Commit
Author: mdecimus [mauro@stalw.art]
Hash: 2d1c67561ac6233e4a56d7e03251cd14186cc047
Timestamp: Wed, 04 Oct 2023 06:27:00 +0000 (1 year ago)

+3 -2 +/-3 browse
v0.3.4
1diff --git a/CHANGELOG.md b/CHANGELOG.md
2index 5d20967..d9f4eeb 100644
3--- a/CHANGELOG.md
4+++ b/CHANGELOG.md
5 @@ -2,6 +2,7 @@ mail-auth 0.3.4
6 ================================
7 - Added `to_reverse_name` method to `IpAddr` to convert an IP address to a reverse DNS domain name.
8 - Added `txt_raw_lookup` method to `Resolver` to perform a raw TXT lookup.
9+ - Bump `ring` dependency to 0.17.
10
11 mail-auth 0.3.3
12 ================================
13 diff --git a/Cargo.toml b/Cargo.toml
14index 897951b..31fd0e2 100644
15--- a/Cargo.toml
16+++ b/Cargo.toml
17 @@ -29,7 +29,7 @@ mail-parser = { version = "0.9", git = "https://github.com/stalwartlabs/mail-par
18 mail-builder = { version = "0.3", git = "https://github.com/stalwartlabs/mail-builder", features = ["ludicrous_mode"] }
19 parking_lot = "0.12.0"
20 quick-xml = "0.30"
21- ring = { version = "0.16.20", optional = true }
22+ ring = { version = "0.17", optional = true }
23 rsa = { version = "0.7", optional = true }
24 rustls-pemfile = { version = "1", optional = true }
25 serde = { version = "1.0", features = ["derive"] }
26 diff --git a/src/common/crypto/ring_impls.rs b/src/common/crypto/ring_impls.rs
27index dd93c41..b4639f4 100644
28--- a/src/common/crypto/ring_impls.rs
29+++ b/src/common/crypto/ring_impls.rs
30 @@ -77,7 +77,7 @@ impl SigningKey for RsaKey<Sha256> {
31 let mut data = Vec::with_capacity(256);
32 input.write(&mut data);
33
34- let mut signature = vec![0; self.inner.public_modulus_len()];
35+ let mut signature = vec![0; self.inner.public().modulus_len()];
36 self.inner
37 .sign(&RSA_PKCS1_SHA256, &self.rng, &data, &mut signature)
38 .map_err(|err| Error::CryptoError(err.to_string()))?;