allows passing in capabilities to CtapHid (#496)

This commit is contained in:
kaczmarczyck
2022-06-10 14:31:33 +02:00
committed by GitHub
parent dc3e34b824
commit 95aa02f932
3 changed files with 31 additions and 48 deletions

View File

@@ -29,7 +29,7 @@ pub struct VendorHid {
impl VendorHid {
/// Instantiates a HID handler for CTAP1, CTAP2 and Wink.
pub fn new() -> Self {
let hid = CtapHid::new();
let hid = CtapHid::new(CtapHid::CAPABILITY_CBOR | CtapHid::CAPABILITY_NMSG);
VendorHid { hid }
}