Update dependencies (#829)

This commit is contained in:
Paolo Barbolini
2022-11-12 18:45:19 +01:00
committed by GitHub
parent 2c4fa39523
commit c914a07379
2 changed files with 6 additions and 6 deletions

View File

@@ -65,8 +65,8 @@ tokio1_rustls = { package = "tokio-rustls", version = "0.23", optional = true }
tokio1_boring = { package = "tokio-boring", version = "2.1.4", optional = true }
## dkim
sha2 = { version = "0.10", optional = true }
rsa = { version = "0.6.0", optional = true }
sha2 = { version = "0.10", optional = true, features = ["oid"] }
rsa = { version = "0.7", optional = true }
ed25519-dalek = { version = "1.0.1", optional = true }
# email formats
@@ -74,7 +74,7 @@ email_address = { version = "0.2.1", default-features = false }
[dev-dependencies]
pretty_assertions = "1"
criterion = "0.3"
criterion = "0.4"
tracing = { version = "0.1.16", default-features = false, features = ["std"] }
tracing-subscriber = "0.3"
glob = "0.3"
@@ -82,7 +82,7 @@ walkdir = "2"
tokio1_crate = { package = "tokio", version = "1", features = ["macros", "rt-multi-thread"] }
async-std = { version = "1.8", features = ["attributes"] }
serde_json = "1"
maud = "0.23"
maud = "0.24"
[[bench]]
harness = false

View File

@@ -7,7 +7,7 @@ use std::{
};
use ed25519_dalek::Signer;
use rsa::{pkcs1::DecodeRsaPrivateKey, Hash, PaddingScheme, RsaPrivateKey};
use rsa::{pkcs1::DecodeRsaPrivateKey, PaddingScheme, RsaPrivateKey};
use sha2::{Digest, Sha256};
use crate::message::{
@@ -393,7 +393,7 @@ fn dkim_sign_fixed_time(message: &mut Message, dkim_config: &DkimConfig, timesta
InnerDkimSigningKey::Rsa(private_key) => base64::encode(
private_key
.sign(
PaddingScheme::new_pkcs1v15_sign(Some(Hash::SHA2_256)),
PaddingScheme::new_pkcs1v15_sign::<Sha256>(),
&hashed_headers,
)
.unwrap(),