Skip to content

Commit

Permalink
Fix webpki
Browse files Browse the repository at this point in the history
  • Loading branch information
MathiasKoch committed Mar 15, 2024
1 parent 363a8a9 commit 9b3c9d7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/webpki.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down Expand Up @@ -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),
Expand Down

0 comments on commit 9b3c9d7

Please sign in to comment.