mirror of https://github.com/oxen-io/lokinet
make it compile again (squashme)
This commit is contained in:
parent
3c61af1de9
commit
45b5fec314
|
@ -21,7 +21,7 @@ namespace llarp::quic
|
|||
class Address
|
||||
{
|
||||
sockaddr_in6 saddr{};
|
||||
ngtcp2_addr a{sizeof(saddr), reinterpret_cast<sockaddr*>(&saddr), nullptr};
|
||||
ngtcp2_addr a{sizeof(saddr), reinterpret_cast<sockaddr*>(&saddr)};
|
||||
|
||||
public:
|
||||
Address() = default;
|
||||
|
@ -102,8 +102,7 @@ namespace llarp::quic
|
|||
Address local_, remote_;
|
||||
|
||||
public:
|
||||
ngtcp2_path path{
|
||||
{local_.sockaddr_size(), local_, nullptr}, {remote_.sockaddr_size(), remote_, nullptr}};
|
||||
ngtcp2_path path{{local_.sockaddr_size(), local_}, {remote_.sockaddr_size(), remote_}, nullptr};
|
||||
|
||||
// Public accessors are const:
|
||||
const Address& local = local_;
|
||||
|
|
|
@ -275,17 +275,13 @@ namespace llarp::quic
|
|||
return 0;
|
||||
}
|
||||
|
||||
int
|
||||
rand(
|
||||
uint8_t* dest,
|
||||
size_t destlen,
|
||||
const ngtcp2_rand_ctx* rand_ctx,
|
||||
[[maybe_unused]] ngtcp2_rand_usage usage)
|
||||
void
|
||||
rand(uint8_t* dest, size_t destlen, const ngtcp2_rand_ctx* rand_ctx)
|
||||
{
|
||||
LogTrace("######################", __func__);
|
||||
randombytes_buf(dest, destlen);
|
||||
return 0;
|
||||
}
|
||||
|
||||
int
|
||||
get_new_connection_id(
|
||||
ngtcp2_conn* conn_, ngtcp2_cid* cid_, uint8_t* token, size_t cidlen, void* user_data)
|
||||
|
|
Loading…
Reference in New Issue