1
0
mirror of https://github.com/GOSTSec/gostcoin synced 2025-01-29 16:04:32 +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]) {
BIGNUM bn;
BN_init(&bn);
assert(BN_bin2bn(vch, 32, &bn));
assert(EC_KEY_regenerate_key(pkey, &bn));
BN_clear_free(&bn);
BIGNUM * bn = BN_new ();
assert(BN_bin2bn(vch, 32, bn));
assert(EC_KEY_regenerate_key(pkey, bn));
BN_clear_free(bn);
}
void GetPrivKey(CPrivKey &privkey, bool fCompressed) {