Skip to content
SpartanCoin - spartancoin.tiv.cc

SpartanCoin Xjail Wallet Code Changes Upgrading to OpenSSL 1.1.1

SpartanCoin Xjail Wallet Code Changes Upgrading to OpenSSL 1.1.1

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

EVP_CIPHER_CTX_init to EVP_CIPHER_CTX_new

EVP_CIPHER_CTX_cleanup to EVP_CIPHER_CTX_free

* 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.

SpartanCoin Xjail

 

Trackbacks

No Trackbacks

Comments

Display comments as Linear | Threaded

No comments

Add Comment

Enclosing asterisks marks text as bold (*word*), underscore are made via _word_.
Standard emoticons like :-) and ;-) are converted to images.
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.
CAPTCHA

Form options

Submitted comments will be subject to moderation before being displayed.