mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
support reseed throught the Yggdrasil
This commit is contained in:
parent
ed4c00e4f4
commit
d13fbe5549
4 changed files with 103 additions and 45 deletions
|
@ -31,7 +31,6 @@ namespace data
|
|||
~Reseeder();
|
||||
void Bootstrap ();
|
||||
int ReseedFromServers ();
|
||||
int ReseedFromSU3Url (const std::string& url);
|
||||
int ProcessSU3File (const char * filename);
|
||||
int ProcessZIPFile (const char * filename);
|
||||
|
||||
|
@ -39,6 +38,7 @@ namespace data
|
|||
|
||||
private:
|
||||
|
||||
int ReseedFromSU3Url (const std::string& url, bool isHttps = true);
|
||||
void LoadCertificate (const std::string& filename);
|
||||
|
||||
int ProcessSU3Stream (std::istream& s);
|
||||
|
@ -47,7 +47,10 @@ namespace data
|
|||
bool FindZipDataDescriptor (std::istream& s);
|
||||
|
||||
std::string HttpsRequest (const std::string& address);
|
||||
|
||||
std::string YggdrasilRequest (const std::string& address);
|
||||
template<typename Stream>
|
||||
std::string ReseedRequest (Stream& s, const std::string& uri);
|
||||
|
||||
private:
|
||||
|
||||
std::map<std::string, PublicKey> m_SigningKeys;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue