Modified dependencies for fuzzing to work

This commit is contained in:
mingxguo27
2020-09-14 15:30:30 +00:00
parent cac713aaed
commit 5d734445ea
3 changed files with 4 additions and 2 deletions

View File

@@ -163,7 +163,6 @@ impl CtapHid {
Ok(Some(message)) => { Ok(Some(message)) => {
#[cfg(feature = "debug_ctap")] #[cfg(feature = "debug_ctap")]
writeln!(&mut Console::new(), "Received message: {:02x?}", message).unwrap(); writeln!(&mut Console::new(), "Received message: {:02x?}", message).unwrap();
let cid = message.cid; let cid = message.cid;
if !self.has_valid_channel(&message) { if !self.has_valid_channel(&message) {
#[cfg(feature = "debug_ctap")] #[cfg(feature = "debug_ctap")]

View File

@@ -11,7 +11,6 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
#[cfg(feature = "with_ctap2_1")] #[cfg(feature = "with_ctap2_1")]
use crate::ctap::data_formats::{extract_array, extract_text_string}; use crate::ctap::data_formats::{extract_array, extract_text_string};
use crate::ctap::data_formats::{CredentialProtectionPolicy, PublicKeyCredentialSource}; use crate::ctap::data_formats::{CredentialProtectionPolicy, PublicKeyCredentialSource};

View File

@@ -23,6 +23,10 @@ extern crate cbor;
extern crate lang_items; extern crate lang_items;
extern crate libtock_core; extern crate libtock_core;
extern crate libtock_drivers; extern crate libtock_drivers;
#[macro_use]
extern crate cbor;
#[macro_use]
extern crate arrayref;
pub mod ctap; pub mod ctap;
pub mod embedded_flash; pub mod embedded_flash;