mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 12:24:19 +00:00
fixed build for gcc 4.7
This commit is contained in:
parent
ac943b5712
commit
b1a6c5ddf7
@ -178,7 +178,8 @@ namespace transport
|
|||||||
}
|
}
|
||||||
// TODO: check for number of pending keys
|
// TODO: check for number of pending keys
|
||||||
auto s = shared_from_this ();
|
auto s = shared_from_this ();
|
||||||
m_Server.Work(s, [s]() -> std::function<void(void)> {
|
// TODO: we need to pass this for gcc 4.7, should be removed later on
|
||||||
|
m_Server.Work(s, [s, this]() -> std::function<void(void)> {
|
||||||
if (!s->m_DHKeysPair)
|
if (!s->m_DHKeysPair)
|
||||||
s->m_DHKeysPair = transports.GetNextDHKeysPair ();
|
s->m_DHKeysPair = transports.GetNextDHKeysPair ();
|
||||||
s->CreateAESKey (s->m_Establisher->phase1.pubKey);
|
s->CreateAESKey (s->m_Establisher->phase1.pubKey);
|
||||||
@ -242,7 +243,8 @@ namespace transport
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
auto s = shared_from_this ();
|
auto s = shared_from_this ();
|
||||||
m_Server.Work(s, [s]() -> std::function<void(void)> {
|
// TODO: we need to pass this for gcc 4.7, should be removed later on
|
||||||
|
m_Server.Work(s, [s, this]() -> std::function<void(void)> {
|
||||||
s->CreateAESKey (s->m_Establisher->phase2.pubKey);
|
s->CreateAESKey (s->m_Establisher->phase2.pubKey);
|
||||||
return std::bind(&NTCPSession::HandlePhase2, s);
|
return std::bind(&NTCPSession::HandlePhase2, s);
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user