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:
} }
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) {

Loading…
Cancel
Save