Skip to content

SpartanCoin-OpenSSL-1.1.1 changes relative to SpartanCoin 1.1.2

SpartanCoin-OpenSSL-1.1.1 Release Date: 2019-01-14

SpartanCoin Wallet Upgraded to OpenSSL-1.1.1 Special Edition (2019-01-14)

fossil code: SpartanCoin

* Big Num Change *

file: src/bignum.h src/base58.h src/key.cpp

BIGNUM struct

BIGNUM is not a complete struct in OpenSSL 1.1.1 any more and CBigNum can not inherit it directly, so change it to a member data bn_ptr of CBigNum. Any method of CBigNum calling to its parent class BIGNUM previsously should be refered via bn_ptr now. In the old version, CBigNum this pointer is a pointer of OpenSSL BIGNUM, but now it is bn_ptr.

BN_init to BN_new

BN_init deprecated and removed in OpenSSL 1.1.1.

* EVP_CIPHER change *

file: src/crypter.cpp



* ECDSA_sig change *

file: src/key.cpp

change to ECDSA_SIG_get0_r and ECDSA_SIG_get0_s

ECDSA sig r and s cannot be got directly from the struct, alternatively via ECDSA_SIG_get0_r and ECDSA_SIG_get0_s

* c++11 STL Comparator Change *

file: src/main.h src/main.cpp

CBlockIndexWorkComparator operator with const qualifier

The comparator operator passed to STL container std::set should be bringing with const qualifier from c++11, however SpartanCoin Xjail source code has been using c++17 standard.



No Trackbacks


Display comments as Linear | Threaded

No comments

Add Comment

E-Mail addresses will not be displayed and will only be used for E-Mail notifications.

To prevent automated Bots from commentspamming, please enter the string you see in the image below in the appropriate input box. Your comment will only be submitted if the strings match. Please ensure that your browser supports and accepts cookies, or your comment cannot be verified correctly.

Form options

Submitted comments will be subject to moderation before being displayed.