mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-27 11:17:49 +02:00
Merge remote-tracking branch 'purple/openssl' into fix-ntcp-threading-race
This commit is contained in:
commit
ff5c26adf2
25 changed files with 501 additions and 85 deletions
|
@ -184,7 +184,7 @@ namespace transport
|
|||
}
|
||||
// TODO: check for number of pending keys
|
||||
auto work = new NTCPWork{shared_from_this()};
|
||||
m_Server.Work(work->session, [work]() -> std::function<void(void)> {
|
||||
m_Server.Work(work->session, [work, this]() -> std::function<void(void)> {
|
||||
if (!work->session->m_DHKeysPair)
|
||||
work->session->m_DHKeysPair = transports.GetNextDHKeysPair ();
|
||||
work->session->CreateAESKey (work->session->m_Establisher->phase1.pubKey);
|
||||
|
@ -250,7 +250,7 @@ namespace transport
|
|||
else
|
||||
{
|
||||
auto work = new NTCPWork{shared_from_this()};
|
||||
m_Server.Work(work->session, [work]() -> std::function<void(void)> {
|
||||
m_Server.Work(work->session, [work, this]() -> std::function<void(void)> {
|
||||
work->session->CreateAESKey (work->session->m_Establisher->phase2.pubKey);
|
||||
return std::bind(&NTCPSession::HandlePhase2, work->session, work);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue