X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=blobdiff_plain;f=src%2Fkey.cpp;h=1c700d0754ffdb62c79d07c2b83f9a701d5507f0;hp=05cfaf2a69a5aa67cc6c038932119088f381172c;hb=73e57db0e728423c3541f5ad7b260e8fd9e6e7d1;hpb=bea49258fdb757e194ae2c08f75169fc3eb6941d diff --git a/src/key.cpp b/src/key.cpp index 05cfaf2..1c700d0 100644 --- a/src/key.cpp +++ b/src/key.cpp @@ -336,13 +336,9 @@ bool CKey::WritePEM(BIO *streamObj, const SecureString &strPassKey) const // dum EVP_PKEY *evpKey = EVP_PKEY_new(); if (!EVP_PKEY_assign_EC_KEY(evpKey, pkey)) return error("CKey::WritePEM() : Error initializing EVP_PKEY instance."); - if(!PEM_write_bio_PKCS8PrivateKey(streamObj, evpKey, EVP_aes_256_cbc(), (char *)&strPassKey[0], strPassKey.size(), NULL, NULL)) return error("CKey::WritePEM() : Error writing private key data to stream object"); - if(!PEM_write_bio_PUBKEY(streamObj, evpKey)) - return error("CKey::WritePEM() : Error writing public key data to stream object"); - return true; }