Skip to content

Commit 4a7ae55

Browse files
committed
Merge 93cc036 into merged_master (Elements PR ElementsProject#1248)
2 parents c50bfd7 + 93cc036 commit 4a7ae55

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

configure.ac

+1
Original file line numberDiff line numberDiff line change
@@ -705,6 +705,7 @@ case $host in
705705
AC_MSG_ERROR([windres not found])
706706
fi
707707

708+
CPPFLAGS="$CPPFLAGS -DSECP256K1_STATIC"
708709
CPPFLAGS="$CPPFLAGS -D_MT -DWIN32 -D_WINDOWS -D_WIN32_WINNT=0x0601 -D_WIN32_IE=0x0501 -DWIN32_LEAN_AND_MEAN"
709710

710711
dnl libtool insists upon adding -nostdlib and a list of objects/libs to link against.

src/secp256k1/Makefile.am

-4
Original file line numberDiff line numberDiff line change
@@ -269,10 +269,6 @@ if ENABLE_MODULE_BPPP
269269
include src/modules/bppp/Makefile.am.include
270270
endif
271271

272-
if ENABLE_MODULE_BPPP
273-
include src/modules/bppp/Makefile.am.include
274-
endif
275-
276272
if ENABLE_MODULE_ECDH
277273
include src/modules/ecdh/Makefile.am.include
278274
endif

src/secp256k1/src/modules/bppp/tests_impl.h

+2-4
Original file line numberDiff line numberDiff line change
@@ -257,10 +257,8 @@ static void test_serialize_two_points(void) {
257257
random_group_element_test(&R);
258258
secp256k1_bppp_serialize_points(buf, &X, &R);
259259

260-
buf[0] = 4 + (unsigned char)secp256k1_testrandi64(0, 253);
261-
/* Assert that buf[0] is actually invalid. */
262-
CHECK(buf[0] != 0x02 && buf[0] != 0x03);
263-
260+
/* buf is valid if 0 <= buf[0] < 4. */
261+
buf[0] = (unsigned char)secp256k1_testrandi64(4, 255);
264262
CHECK(!secp256k1_bppp_parse_one_of_points(&X_tmp, buf, 0));
265263
CHECK(!secp256k1_bppp_parse_one_of_points(&R_tmp, buf, 0));
266264
}

0 commit comments

Comments
 (0)