1
0
mirror of https://github.com/GOSTSec/gostcoin synced 2025-01-30 08:24:20 +00:00

openssl 1.1 support

This commit is contained in:
orignal 2018-02-06 14:56:30 -05:00
parent 5e643aeac9
commit deaf259120

View File

@ -96,11 +96,10 @@ public:
} }
void SetSecretBytes(const unsigned char vch[32]) { void SetSecretBytes(const unsigned char vch[32]) {
BIGNUM bn; BIGNUM * bn = BN_new ();
BN_init(&bn); assert(BN_bin2bn(vch, 32, bn));
assert(BN_bin2bn(vch, 32, &bn)); assert(EC_KEY_regenerate_key(pkey, bn));
assert(EC_KEY_regenerate_key(pkey, &bn)); BN_clear_free(bn);
BN_clear_free(&bn);
} }
void GetPrivKey(CPrivKey &privkey, bool fCompressed) { void GetPrivKey(CPrivKey &privkey, bool fCompressed) {