File tree 3 files changed +3
-8
lines changed
3 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -705,6 +705,7 @@ case $host in
705
705
AC_MSG_ERROR ( [ windres not found] )
706
706
fi
707
707
708
+ CPPFLAGS="$CPPFLAGS -DSECP256K1_STATIC"
708
709
CPPFLAGS="$CPPFLAGS -D_MT -DWIN32 -D_WINDOWS -D_WIN32_WINNT=0x0601 -D_WIN32_IE=0x0501 -DWIN32_LEAN_AND_MEAN"
709
710
710
711
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
269
269
include src/modules/bppp/Makefile.am.include
270
270
endif
271
271
272
- if ENABLE_MODULE_BPPP
273
- include src/modules/bppp/Makefile.am.include
274
- endif
275
-
276
272
if ENABLE_MODULE_ECDH
277
273
include src/modules/ecdh/Makefile.am.include
278
274
endif
Original file line number Diff line number Diff line change @@ -257,10 +257,8 @@ static void test_serialize_two_points(void) {
257
257
random_group_element_test (& R );
258
258
secp256k1_bppp_serialize_points (buf , & X , & R );
259
259
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 );
264
262
CHECK (!secp256k1_bppp_parse_one_of_points (& X_tmp , buf , 0 ));
265
263
CHECK (!secp256k1_bppp_parse_one_of_points (& R_tmp , buf , 0 ));
266
264
}
You can’t perform that action at this time.
0 commit comments