1
0
Fork 0
mirror of https://github.com/dani-garcia/vaultwarden.git synced 2025-06-18 09:20:08 +00:00

clear up COSEKeyType::EC_OKP case

This commit is contained in:
zUnixorn 2025-06-07 16:57:41 +02:00
parent 9541e216f6
commit b9a90f211c
No known key found for this signature in database
GPG key ID: 0BE3A9CAE3E8D0DA

View file

@ -122,9 +122,11 @@ mod webauthn_0_3 {
impl From<COSEKeyType> for webauthn_rs::prelude::COSEKeyType {
fn from(value: COSEKeyType) -> Self {
match value {
COSEKeyType::EC_OKP => panic!(), // TODO what to do here
COSEKeyType::EC_EC2(a) => Self::EC_EC2(a.into()),
COSEKeyType::RSA(a) => Self::RSA(a.into()),
// This should've never been able to be constructed when webauthn 0.3 was used
// Refer: https://docs.rs/webauthn-rs/0.3.2/src/webauthn_rs/crypto.rs.html#414
COSEKeyType::EC_OKP => unreachable!(),
}
}
}