don't create BN_CTX for ECIES tunnel build record decryption

This commit is contained in:
orignal 2021-03-28 12:14:02 -04:00
parent 86415bc61f
commit 167d3a0e3c
3 changed files with 10 additions and 8 deletions

View file

@ -95,7 +95,7 @@ namespace garlic
void SetStatusV6 (RouterStatus status);
int GetNetID () const { return m_NetID; };
void SetNetID (int netID) { m_NetID = netID; };
bool DecryptTunnelBuildRecord (const uint8_t * encrypted, uint8_t * data, BN_CTX * ctx);
bool DecryptTunnelBuildRecord (const uint8_t * encrypted, uint8_t * data);
void UpdatePort (int port); // called from Daemon
void UpdateAddress (const boost::asio::ip::address& host); // called from SSU or Daemon