publish NTCP2 addreses by index

This commit is contained in:
orignal 2023-01-24 14:07:22 -05:00
parent 1f23584c24
commit 5479ddd03c
2 changed files with 46 additions and 40 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2013-2022, The PurpleI2P Project
* Copyright (c) 2013-2023, The PurpleI2P Project
*
* This file is part of Purple i2pd project and licensed under BSD3
*
@ -181,7 +181,8 @@ namespace garlic
bool Load ();
void SaveKeys ();
uint16_t SelectRandomPort () const;
void PublishNTCP2Address (std::shared_ptr<i2p::data::RouterInfo::Address> address, int port, bool publish) const;
bool DecryptECIESTunnelBuildRecord (const uint8_t * encrypted, uint8_t * data, size_t clearTextSize);
private: