File tree Expand file tree Collapse file tree 3 files changed +3
-8
lines changed Expand file tree Collapse file tree 3 files changed +3
-8
lines changed Original file line number Diff line number Diff 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.
Original file line number Diff line number Diff line change @@ -269,10 +269,6 @@ if ENABLE_MODULE_BPPP
269269include src/modules/bppp/Makefile.am.include
270270endif
271271
272- if ENABLE_MODULE_BPPP
273- include src/modules/bppp/Makefile.am.include
274- endif
275-
276272if ENABLE_MODULE_ECDH
277273include src/modules/ecdh/Makefile.am.include
278274endif
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments