forked from lthn/blockchain
fixes related to USE_OPEN_SSL_FOR_ECDSA
This commit is contained in:
parent
b0efef8ef1
commit
647b5c80f6
3 changed files with 8 additions and 6 deletions
|
|
@ -77,6 +77,10 @@ set(DISABLE_TOR FALSE CACHE BOOL "Disable TOR library(and related tor-connect su
|
|||
set(TESTNET FALSE CACHE BOOL "Compile for testnet")
|
||||
set(BUILD_GUI FALSE CACHE BOOL "Build qt-daemon")
|
||||
set(USE_BITCOIN_SECP256K1_FOR_ECDSA FALSE CACHE BOOL "Use bitcoin-secp256k1 library for validating ECDSA(instead of OpenSSL)")
|
||||
if(NOT USE_BITCOIN_SECP256K1_FOR_ECDSA)
|
||||
add_definitions(-DUSE_OPEN_SSL_FOR_ECDSA)
|
||||
endif()
|
||||
|
||||
|
||||
include_directories(src contrib/eos_portable_archive contrib contrib/epee/include contrib/jwt-cpp/include ${OPENSSL_INCLUDE_DIR} "${CMAKE_BINARY_DIR}/version" "${CMAKE_BINARY_DIR}/contrib/zlib")
|
||||
|
||||
|
|
|
|||
|
|
@ -11,8 +11,6 @@
|
|||
#include <string_tools.h>
|
||||
|
||||
|
||||
#define USE_OPEN_SSL_FOR_ECDSA
|
||||
|
||||
#ifdef USE_OPEN_SSL_FOR_ECDSA
|
||||
#include <openssl/ec.h>
|
||||
#include <openssl/ecdsa.h>
|
||||
|
|
|
|||
|
|
@ -1966,9 +1966,9 @@ TEST(crypto, generators_precomp)
|
|||
|
||||
#undef CHECK_PRECOMP
|
||||
}
|
||||
|
||||
#include "bitcoin-secp256k1/include/secp256k1.h"
|
||||
TEST(crypto, secp256k1_ecdsa_native)
|
||||
#ifndef USE_OPEN_SSL_FOR_ECDSA
|
||||
#include "bitcoin-secp256k1/include/secp256k1.h"
|
||||
TEST(crypto, secp256k1_ecdsa_native)
|
||||
{
|
||||
bool r = false;
|
||||
|
||||
|
|
@ -2026,7 +2026,7 @@ TEST(crypto, secp256k1_ecdsa_native)
|
|||
secp256k1_context_destroy(ctx);
|
||||
return true;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
TEST(crypto, eth_signature_basics)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue