Browse Source

openssl 1.1 support

pull/29/head
orignal 7 years ago
parent
commit
deaf259120
  1. 9
      src/key.cpp

9
src/key.cpp

@ -96,11 +96,10 @@ public: @@ -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) {

Loading…
Cancel
Save