From 9b3c9d7f6fc83a9915c710599fe61b01173ee055 Mon Sep 17 00:00:00 2001 From: Mathias Date: Fri, 15 Mar 2024 11:12:52 +0100 Subject: [PATCH] Fix webpki --- src/webpki.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/webpki.rs b/src/webpki.rs index 2734d76..e96b62c 100644 --- a/src/webpki.rs +++ b/src/webpki.rs @@ -34,6 +34,10 @@ impl TryInto<&'static webpki::SignatureAlgorithm> for SignatureScheme { SignatureScheme::Ed25519 => Ok(&webpki::ED25519), SignatureScheme::Ed448 => Err(TlsError::InvalidSignatureScheme), + SignatureScheme::Sha224Ecdsa => Err(TlsError::InvalidSignatureScheme), + SignatureScheme::Sha224Rsa => Err(TlsError::InvalidSignatureScheme), + SignatureScheme::Sha224Dsa => Err(TlsError::InvalidSignatureScheme), + /* RSASSA-PSS algorithms with public key OID RSASSA-PSS */ SignatureScheme::RsaPssPssSha256 => Err(TlsError::InvalidSignatureScheme), SignatureScheme::RsaPssPssSha384 => Err(TlsError::InvalidSignatureScheme), @@ -69,6 +73,10 @@ impl TryInto<&'static webpki::SignatureAlgorithm> for SignatureScheme { SignatureScheme::Ed25519 => Ok(&webpki::ED25519), SignatureScheme::Ed448 => Err(TlsError::InvalidSignatureScheme), + SignatureScheme::Sha224Ecdsa => Err(TlsError::InvalidSignatureScheme), + SignatureScheme::Sha224Rsa => Err(TlsError::InvalidSignatureScheme), + SignatureScheme::Sha224Dsa => Err(TlsError::InvalidSignatureScheme), + /* RSASSA-PSS algorithms with public key OID RSASSA-PSS */ SignatureScheme::RsaPssPssSha256 => Err(TlsError::InvalidSignatureScheme), SignatureScheme::RsaPssPssSha384 => Err(TlsError::InvalidSignatureScheme),