|
|
@ -166,13 +166,16 @@ namespace client |
|
|
|
bool ClientDestination::SubmitSessionKey (const uint8_t * key, const uint8_t * tag) |
|
|
|
bool ClientDestination::SubmitSessionKey (const uint8_t * key, const uint8_t * tag) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (m_Service) |
|
|
|
if (m_Service) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
struct |
|
|
|
{ |
|
|
|
{ |
|
|
|
uint8_t k[32], t[32]; |
|
|
|
uint8_t k[32], t[32]; |
|
|
|
memcpy (k, key, 32); |
|
|
|
} data; |
|
|
|
memcpy (t, tag, 32); |
|
|
|
memcpy (data.k, key, 32); |
|
|
|
m_Service->post ([this,k,t](void) |
|
|
|
memcpy (data.t, tag, 32); |
|
|
|
|
|
|
|
m_Service->post ([this,data](void) |
|
|
|
{ |
|
|
|
{ |
|
|
|
this->AddSessionKey (k, t); |
|
|
|
this->AddSessionKey (data.k, data.t); |
|
|
|
}); |
|
|
|
}); |
|
|
|
return true; |
|
|
|
return true; |
|
|
|
} |
|
|
|
} |
|
|
|