Skip to content

Commit 5c82bb4

Browse files
authored
Merge pull request rust-bitcoin#191 from elichai/2020-01-fuzztarget
Fix fuzztarget symbols
2 parents 80c856c + 8f52bac commit 5c82bb4

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ script:
2727
- cargo build --verbose --no-default-features --features="rand"
2828
- cargo build --verbose --no-default-features --features="rand serde recovery endomorphism"
2929
- cargo build --verbose --no-default-features --features="fuzztarget recovery"
30-
- cargo build --verbose --features=fuzztarget
3130
- cargo build --verbose --features=rand
31+
- cargo test --no-run --features=fuzztarget
3232
- cargo test --verbose --features=rand
3333
- cargo test --verbose --features="rand rand-std"
3434
- cargo test --verbose --features="rand serde"

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11

2+
# 0.17.2
3+
- Fix linking in the `fuzztarget` feature.
4+
25
# 0.17.1
36

47
- Correctly prefix the secp256k1-sys links field in Cargo.toml.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22

33
name = "secp256k1"
4-
version = "0.17.1"
4+
version = "0.17.2"
55
authors = [ "Dawid Ciężarkiewicz <[email protected]>",
66
"Andrew Poelstra <[email protected]>" ]
77
license = "CC0-1.0"

secp256k1-sys/src/lib.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,10 +444,14 @@ mod fuzz_dummy {
444444
SECP256K1_START_NONE, SECP256K1_START_VERIFY, SECP256K1_START_SIGN,
445445
SECP256K1_SER_COMPRESSED, SECP256K1_SER_UNCOMPRESSED};
446446

447+
#[allow(non_upper_case_globals)]
448+
pub static secp256k1_context_no_precomp: &Context = &Context(0);
449+
447450
extern "C" {
451+
#[cfg_attr(not(feature = "external-symbols"), link_name = "rustsecp256k1_v0_1_1_ecdh_hash_function_default")]
448452
pub static secp256k1_ecdh_hash_function_default: EcdhHashFn;
453+
#[cfg_attr(not(feature = "external-symbols"), link_name = "rustsecp256k1_v0_1_1_nonce_function_rfc6979")]
449454
pub static secp256k1_nonce_function_rfc6979: NonceFn;
450-
pub static secp256k1_context_no_precomp: *const Context;
451455
}
452456

453457
// Contexts

0 commit comments

Comments
 (0)