make it compile

pull/268/head
Jeff Becker 5 years ago
parent 00eede9160
commit b7b346cc7c
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -36,7 +36,7 @@ namespace llarp
if(amount > 0)
{
if(tcp.read)
tcp.read(&tcp, llarp::InitBuffer(buf, amount));
tcp.read(&tcp, llarp_buffer_t(buf, amount));
}
else
{
@ -150,7 +150,7 @@ namespace llarp
if(static_cast< size_t >(ret) > sz)
return -1;
b.sz = ret;
udp->recvfrom(udp, addr, b);
udp->recvfrom(udp, addr, ManagedBuffer{b});
return 0;
}
@ -223,7 +223,7 @@ namespace llarp
if(ret > 0 && t->recvpkt)
{
// does not have pktinfo
t->recvpkt(t, llarp::InitBuffer(buf, ret));
t->recvpkt(t, llarp_buffer_t(buf, ret));
}
return ret;
}

@ -673,12 +673,12 @@ namespace llarp
llarp::RouterContact nextRC = _rc;
if(rotateKeys)
{
crypto.encryption_keygen(nextOnionKey);
crypto->encryption_keygen(nextOnionKey);
std::string f = encryption_keyfile.string();
if(nextOnionKey.SaveToFile(f.c_str()))
{
nextRC.enckey = llarp::seckey_topublic(nextOnionKey);
encryption = nextOnionKey;
encryption = nextOnionKey;
}
}
nextRC.last_updated = Now();
@ -692,7 +692,7 @@ namespace llarp
else
llarp::LogWarn("failed to renegotiate session");
});
// TODO: do this async
return SaveRC();
} // namespace llarp

Loading…
Cancel
Save