mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
OpenSSL 1.1 for EVP_PKEY
This commit is contained in:
parent
3562ac1438
commit
6377631ae7
4 changed files with 16 additions and 8 deletions
|
@ -270,8 +270,10 @@ namespace crypto
|
|||
{
|
||||
if (m_IsUpdated)
|
||||
{
|
||||
bn2buf (m_DH->pub_key, m_PublicKey, 256);
|
||||
BN_free (m_DH->pub_key); m_DH->pub_key = NULL;
|
||||
const BIGNUM * priv_key, * pub_key;
|
||||
DH_get0_key (m_DH, &pub_key, &priv_key);
|
||||
bn2buf (pub_key, m_PublicKey, 256);
|
||||
DH_set0_key (m_DH, NULL, NULL);
|
||||
m_IsUpdated= false;
|
||||
}
|
||||
return m_PublicKey;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue