Skip to content

Commit 645a059

Browse files
committed
Fixes incorrect error code for vendor U2F
1 parent 2d970fd commit 645a059

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

libraries/opensk/src/ctap/ctap1.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,7 @@ impl Ctap1Command {
233233
// U2F raw message format specification (version 20170411) section 6.3
234234
U2fCommand::Version => Ok(Vec::<u8>::from(super::U2F_VERSION_STRING)),
235235

236-
// TODO: should we return an error instead such as SW_INS_NOT_SUPPORTED?
237-
U2fCommand::VendorSpecific { .. } => Err(Ctap1StatusCode::SW_SUCCESS),
236+
U2fCommand::VendorSpecific { .. } => Err(Ctap1StatusCode::SW_INS_INVALID),
238237
}
239238
}
240239

0 commit comments

Comments
 (0)