From 5d734445ea91e0fca7ce1f7668ffb01fbacc3c99 Mon Sep 17 00:00:00 2001 From: mingxguo27 Date: Mon, 14 Sep 2020 15:30:30 +0000 Subject: [PATCH] Modified dependencies for fuzzing to work --- src/ctap/hid/mod.rs | 1 - src/ctap/storage.rs | 1 - src/lib.rs | 4 ++++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ctap/hid/mod.rs b/src/ctap/hid/mod.rs index 115bc3a..addc09c 100644 --- a/src/ctap/hid/mod.rs +++ b/src/ctap/hid/mod.rs @@ -163,7 +163,6 @@ impl CtapHid { Ok(Some(message)) => { #[cfg(feature = "debug_ctap")] writeln!(&mut Console::new(), "Received message: {:02x?}", message).unwrap(); - let cid = message.cid; if !self.has_valid_channel(&message) { #[cfg(feature = "debug_ctap")] diff --git a/src/ctap/storage.rs b/src/ctap/storage.rs index de5eb03..a4dcaf2 100644 --- a/src/ctap/storage.rs +++ b/src/ctap/storage.rs @@ -11,7 +11,6 @@ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. - #[cfg(feature = "with_ctap2_1")] use crate::ctap::data_formats::{extract_array, extract_text_string}; use crate::ctap::data_formats::{CredentialProtectionPolicy, PublicKeyCredentialSource}; diff --git a/src/lib.rs b/src/lib.rs index 0df6552..fe7bd4c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -23,6 +23,10 @@ extern crate cbor; extern crate lang_items; extern crate libtock_core; extern crate libtock_drivers; +#[macro_use] +extern crate cbor; +#[macro_use] +extern crate arrayref; pub mod ctap; pub mod embedded_flash;