Changeset View
Changeset View
Standalone View
Standalone View
src/secp256k1/src/tests.c
Show All 26 Lines | |||||
# if OPENSSL_VERSION_NUMBER < 0x10100000L | # if OPENSSL_VERSION_NUMBER < 0x10100000L | ||||
void ECDSA_SIG_get0(const ECDSA_SIG *sig, const BIGNUM **pr, const BIGNUM **ps) {*pr = sig->r; *ps = sig->s;} | void ECDSA_SIG_get0(const ECDSA_SIG *sig, const BIGNUM **pr, const BIGNUM **ps) {*pr = sig->r; *ps = sig->s;} | ||||
# endif | # endif | ||||
#endif | #endif | ||||
#include "contrib/lax_der_parsing.c" | #include "contrib/lax_der_parsing.c" | ||||
#include "contrib/lax_der_privatekey_parsing.c" | #include "contrib/lax_der_privatekey_parsing.c" | ||||
#if !defined(VG_CHECK) | |||||
# if defined(VALGRIND) | |||||
# include <valgrind/memcheck.h> | |||||
# define VG_UNDEF(x,y) VALGRIND_MAKE_MEM_UNDEFINED((x),(y)) | |||||
# define VG_CHECK(x,y) VALGRIND_CHECK_MEM_IS_DEFINED((x),(y)) | |||||
# else | |||||
# define VG_UNDEF(x,y) | |||||
# define VG_CHECK(x,y) | |||||
# endif | |||||
#endif | |||||
static int count = 64; | static int count = 64; | ||||
static secp256k1_context *ctx = NULL; | static secp256k1_context *ctx = NULL; | ||||
static void counting_illegal_callback_fn(const char* str, void* data) { | static void counting_illegal_callback_fn(const char* str, void* data) { | ||||
/* Dummy callback function that just counts. */ | /* Dummy callback function that just counts. */ | ||||
int32_t *p; | int32_t *p; | ||||
(void)str; | (void)str; | ||||
p = data; | p = data; | ||||
▲ Show 20 Lines • Show All 5,416 Lines • Show Last 20 Lines |