Update dependencies

Update all dependencies of the project and release new version
(0.1.3).
This commit is contained in:
André Cruz
2022-06-28 14:39:33 +01:00
parent f619ec9fc8
commit aa2736671e
5 changed files with 243 additions and 280 deletions
Generated
+234 -271
View File
File diff suppressed because it is too large Load Diff
+6 -6
View File
@@ -1,6 +1,6 @@
[package]
name = "cfdkim"
version = "0.1.2"
version = "0.1.3"
authors = ["Sven Sauleau <sven@cloudflare.com>"]
edition = "2021"
description = "DKIM (RFC6376) implementation"
@@ -15,13 +15,13 @@ license = "MIT"
mailparse = "0.13.7"
quick-error = "2.0.1"
nom = "7.1.0"
chrono = "0.4.19"
trust-dns-resolver = "0.20.3"
chrono = { version = "0.4.19", default-features = false, features = ["clock", "std"] }
trust-dns-resolver = "0.21"
futures = "0.3.18"
sha-1 = "0.9"
sha2 = "0.9"
sha-1 = "0.10"
sha2 = "0.10"
base64 = "0.13.0"
rsa = "0.5.0"
rsa = "0.6"
slog = "2.7.0"
indexmap = "1.8.0"
+1 -1
View File
@@ -50,7 +50,7 @@ pub(crate) async fn retrieve_public_key(
let bytes = base64::decode(&tag.value).map_err(|err| {
DKIMError::KeyUnavailable(format!("failed to decode public key: {}", err))
})?;
let key = pkcs8::FromPublicKey::from_public_key_der(&bytes)
let key = pkcs8::DecodePublicKey::from_public_key_der(&bytes)
.map_err(|err| DKIMError::KeyUnavailable(format!("failed to parse public key: {}", err)))?;
Ok(key)
}
+1 -1
View File
@@ -4,7 +4,7 @@ mod tests {
use chrono::TimeZone;
use futures::future::BoxFuture;
use regex::Regex;
use rsa::pkcs1::FromRsaPrivateKey;
use rsa::pkcs1::DecodeRsaPrivateKey;
use std::collections::HashMap;
use std::path::Path;
use std::sync::Arc;
+1 -1
View File
@@ -235,7 +235,7 @@ impl<'a> Signer<'a> {
mod tests {
use super::*;
use chrono::TimeZone;
use rsa::pkcs1::FromRsaPrivateKey;
use rsa::pkcs1::DecodeRsaPrivateKey;
use std::path::Path;
fn test_logger() -> slog::Logger {