16
16
//! # FFI of the recovery module
17
17
18
18
use :: types:: * ;
19
- #[ cfg( not( feature = "fuzztarget" ) ) ]
19
+ #[ cfg( not( rust_secp_fuzz ) ) ]
20
20
use :: { Context , Signature , NonceFn , PublicKey } ;
21
21
22
22
/// Library-internal representation of a Secp256k1 signature + recovery ID
@@ -36,23 +36,23 @@ impl Default for RecoverableSignature {
36
36
}
37
37
}
38
38
39
- #[ cfg( not( feature = "fuzztarget" ) ) ]
39
+ #[ cfg( not( rust_secp_fuzz ) ) ]
40
40
extern "C" {
41
- #[ cfg_attr( not( feature = "external-symbols" ) , link_name = "rustsecp256k1_v0_3_1_ecdsa_recoverable_signature_parse_compact" ) ]
41
+ #[ cfg_attr( not( rust_secp_no_symbol_renaming ) , link_name = "rustsecp256k1_v0_3_1_ecdsa_recoverable_signature_parse_compact" ) ]
42
42
pub fn secp256k1_ecdsa_recoverable_signature_parse_compact ( cx : * const Context , sig : * mut RecoverableSignature ,
43
43
input64 : * const c_uchar , recid : c_int )
44
44
-> c_int ;
45
45
46
- #[ cfg_attr( not( feature = "external-symbols" ) , link_name = "rustsecp256k1_v0_3_1_ecdsa_recoverable_signature_serialize_compact" ) ]
46
+ #[ cfg_attr( not( rust_secp_no_symbol_renaming ) , link_name = "rustsecp256k1_v0_3_1_ecdsa_recoverable_signature_serialize_compact" ) ]
47
47
pub fn secp256k1_ecdsa_recoverable_signature_serialize_compact ( cx : * const Context , output64 : * mut c_uchar ,
48
48
recid : * mut c_int , sig : * const RecoverableSignature )
49
49
-> c_int ;
50
50
51
- #[ cfg_attr( not( feature = "external-symbols" ) , link_name = "rustsecp256k1_v0_3_1_ecdsa_recoverable_signature_convert" ) ]
51
+ #[ cfg_attr( not( rust_secp_no_symbol_renaming ) , link_name = "rustsecp256k1_v0_3_1_ecdsa_recoverable_signature_convert" ) ]
52
52
pub fn secp256k1_ecdsa_recoverable_signature_convert ( cx : * const Context , sig : * mut Signature ,
53
53
input : * const RecoverableSignature )
54
54
-> c_int ;
55
- #[ cfg_attr( not( feature = "external-symbols" ) , link_name = "rustsecp256k1_v0_3_1_ecdsa_sign_recoverable" ) ]
55
+ #[ cfg_attr( not( rust_secp_no_symbol_renaming ) , link_name = "rustsecp256k1_v0_3_1_ecdsa_sign_recoverable" ) ]
56
56
pub fn secp256k1_ecdsa_sign_recoverable ( cx : * const Context ,
57
57
sig : * mut RecoverableSignature ,
58
58
msg32 : * const c_uchar ,
@@ -61,7 +61,7 @@ extern "C" {
61
61
noncedata : * const c_void )
62
62
-> c_int ;
63
63
64
- #[ cfg_attr( not( feature = "external-symbols" ) , link_name = "rustsecp256k1_v0_3_1_ecdsa_recover" ) ]
64
+ #[ cfg_attr( not( rust_secp_no_symbol_renaming ) , link_name = "rustsecp256k1_v0_3_1_ecdsa_recover" ) ]
65
65
pub fn secp256k1_ecdsa_recover ( cx : * const Context ,
66
66
pk : * mut PublicKey ,
67
67
sig : * const RecoverableSignature ,
@@ -70,7 +70,7 @@ extern "C" {
70
70
}
71
71
72
72
73
- #[ cfg( feature = "fuzztarget" ) ]
73
+ #[ cfg( rust_secp_fuzz ) ]
74
74
mod fuzz_dummy {
75
75
extern crate std;
76
76
use self :: std:: ptr;
@@ -126,6 +126,6 @@ mod fuzz_dummy {
126
126
unimplemented ! ( ) ;
127
127
}
128
128
}
129
- #[ cfg( feature = "fuzztarget" ) ]
129
+ #[ cfg( rust_secp_fuzz ) ]
130
130
pub use self :: fuzz_dummy:: * ;
131
131
0 commit comments