Skip to content

Commit ec14e51

Browse files
committed
Fix missing parsing for content type
1 parent 7635cd0 commit ec14e51

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

crates/bitwarden-crypto/src/cose.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,9 @@ impl TryFrom<&coset::Header> for ContentFormat {
180180
Some(ContentType::Text(format)) if format == CONTENT_TYPE_PADDED_UTF8 => {
181181
Ok(ContentFormat::Utf8)
182182
}
183-
183+
Some(ContentType::Text(format)) if format == CONTENT_TYPE_BITWARDEN_LEGACY_KEY => {
184+
Ok(ContentFormat::BitwardenLegacyKey)
185+
}
184186
Some(ContentType::Assigned(CoapContentFormat::Pkcs8)) => Ok(ContentFormat::Pkcs8),
185187
Some(ContentType::Assigned(CoapContentFormat::CoseKey)) => Ok(ContentFormat::CoseKey),
186188
Some(ContentType::Assigned(CoapContentFormat::OctetStream)) => {

0 commit comments

Comments
 (0)