X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=lightning%2Fsrc%2Futil%2Ffuzz_wrappers.rs;h=afe9c402c713981a5860002655aa101442fad37e;hb=3e93f9ad88ca810cb6aea7b6dd7c3fc43a641af8;hp=42b4732f370275f08c6bda6dc0581f6b67cf555d;hpb=ea4ccf63c7b8a8af5107c536bb6ab01ee04cbdc4;p=rust-lightning diff --git a/lightning/src/util/fuzz_wrappers.rs b/lightning/src/util/fuzz_wrappers.rs index 42b4732f..afe9c402 100644 --- a/lightning/src/util/fuzz_wrappers.rs +++ b/lightning/src/util/fuzz_wrappers.rs @@ -1,11 +1,20 @@ +// This file is Copyright its original authors, visible in version control +// history. +// +// This file is licensed under the Apache License, Version 2.0 or the MIT license +// , at your option. +// You may not use this file except in accordance with one or both of these +// licenses. + macro_rules! hash_to_message { ($slice: expr) => { { - #[cfg(not(feature = "fuzztarget"))] + #[cfg(not(fuzzing))] { ::bitcoin::secp256k1::Message::from_slice($slice).unwrap() } - #[cfg(feature = "fuzztarget")] + #[cfg(fuzzing)] { match ::bitcoin::secp256k1::Message::from_slice($slice) { Ok(msg) => msg,