mirror of
https://github.com/PurpleI2P/i2pd
synced 2024-11-13 01:20:22 +03:00
commit
076ce4256b
215
.gitignore
vendored
Normal file
215
.gitignore
vendored
Normal file
@ -0,0 +1,215 @@
|
|||||||
|
#################
|
||||||
|
## Eclipse
|
||||||
|
#################
|
||||||
|
|
||||||
|
*.pydevproject
|
||||||
|
.project
|
||||||
|
.metadata
|
||||||
|
bin/
|
||||||
|
tmp/
|
||||||
|
*.tmp
|
||||||
|
*.bak
|
||||||
|
*.swp
|
||||||
|
*~.nib
|
||||||
|
local.properties
|
||||||
|
.classpath
|
||||||
|
.settings/
|
||||||
|
.loadpath
|
||||||
|
|
||||||
|
# External tool builders
|
||||||
|
.externalToolBuilders/
|
||||||
|
|
||||||
|
# Locally stored "Eclipse launch configurations"
|
||||||
|
*.launch
|
||||||
|
|
||||||
|
# CDT-specific
|
||||||
|
.cproject
|
||||||
|
|
||||||
|
# PDT-specific
|
||||||
|
.buildpath
|
||||||
|
|
||||||
|
|
||||||
|
#################
|
||||||
|
## Visual Studio
|
||||||
|
#################
|
||||||
|
|
||||||
|
## Ignore Visual Studio temporary files, build results, and
|
||||||
|
## files generated by popular Visual Studio add-ons.
|
||||||
|
|
||||||
|
# User-specific files
|
||||||
|
*.suo
|
||||||
|
*.user
|
||||||
|
*.sln.docstates
|
||||||
|
|
||||||
|
# Build results
|
||||||
|
|
||||||
|
[Dd]ebug/
|
||||||
|
[Rr]elease/
|
||||||
|
x64/
|
||||||
|
build/
|
||||||
|
[Bb]in/
|
||||||
|
[Oo]bj/
|
||||||
|
|
||||||
|
# MSTest test Results
|
||||||
|
[Tt]est[Rr]esult*/
|
||||||
|
[Bb]uild[Ll]og.*
|
||||||
|
|
||||||
|
*_i.c
|
||||||
|
*_p.c
|
||||||
|
*.ilk
|
||||||
|
*.meta
|
||||||
|
*.obj
|
||||||
|
*.pch
|
||||||
|
*.pdb
|
||||||
|
*.pgc
|
||||||
|
*.pgd
|
||||||
|
*.rsp
|
||||||
|
*.sbr
|
||||||
|
*.tlb
|
||||||
|
*.tli
|
||||||
|
*.tlh
|
||||||
|
*.tmp
|
||||||
|
*.tmp_proj
|
||||||
|
*.log
|
||||||
|
*.vspscc
|
||||||
|
*.vssscc
|
||||||
|
.builds
|
||||||
|
*.pidb
|
||||||
|
*.log
|
||||||
|
*.scc
|
||||||
|
|
||||||
|
# Visual C++ cache files
|
||||||
|
ipch/
|
||||||
|
*.aps
|
||||||
|
*.ncb
|
||||||
|
*.opensdf
|
||||||
|
*.sdf
|
||||||
|
*.cachefile
|
||||||
|
|
||||||
|
# Visual Studio profiler
|
||||||
|
*.psess
|
||||||
|
*.vsp
|
||||||
|
*.vspx
|
||||||
|
|
||||||
|
# Guidance Automation Toolkit
|
||||||
|
*.gpState
|
||||||
|
|
||||||
|
# ReSharper is a .NET coding add-in
|
||||||
|
_ReSharper*/
|
||||||
|
*.[Rr]e[Ss]harper
|
||||||
|
|
||||||
|
# TeamCity is a build add-in
|
||||||
|
_TeamCity*
|
||||||
|
|
||||||
|
# DotCover is a Code Coverage Tool
|
||||||
|
*.dotCover
|
||||||
|
|
||||||
|
# NCrunch
|
||||||
|
*.ncrunch*
|
||||||
|
.*crunch*.local.xml
|
||||||
|
|
||||||
|
# Installshield output folder
|
||||||
|
[Ee]xpress/
|
||||||
|
|
||||||
|
# DocProject is a documentation generator add-in
|
||||||
|
DocProject/buildhelp/
|
||||||
|
DocProject/Help/*.HxT
|
||||||
|
DocProject/Help/*.HxC
|
||||||
|
DocProject/Help/*.hhc
|
||||||
|
DocProject/Help/*.hhk
|
||||||
|
DocProject/Help/*.hhp
|
||||||
|
DocProject/Help/Html2
|
||||||
|
DocProject/Help/html
|
||||||
|
|
||||||
|
# Click-Once directory
|
||||||
|
publish/
|
||||||
|
|
||||||
|
# Publish Web Output
|
||||||
|
*.Publish.xml
|
||||||
|
*.pubxml
|
||||||
|
|
||||||
|
# NuGet Packages Directory
|
||||||
|
## TODO: If you have NuGet Package Restore enabled, uncomment the next line
|
||||||
|
#packages/
|
||||||
|
|
||||||
|
# Windows Azure Build Output
|
||||||
|
csx
|
||||||
|
*.build.csdef
|
||||||
|
|
||||||
|
# Windows Store app package directory
|
||||||
|
AppPackages/
|
||||||
|
|
||||||
|
# Others
|
||||||
|
sql/
|
||||||
|
*.Cache
|
||||||
|
ClientBin/
|
||||||
|
[Ss]tyle[Cc]op.*
|
||||||
|
~$*
|
||||||
|
*~
|
||||||
|
*.dbmdl
|
||||||
|
*.[Pp]ublish.xml
|
||||||
|
*.pfx
|
||||||
|
*.publishsettings
|
||||||
|
|
||||||
|
# RIA/Silverlight projects
|
||||||
|
Generated_Code/
|
||||||
|
|
||||||
|
# Backup & report files from converting an old project file to a newer
|
||||||
|
# Visual Studio version. Backup files are not needed, because we have git ;-)
|
||||||
|
_UpgradeReport_Files/
|
||||||
|
Backup*/
|
||||||
|
UpgradeLog*.XML
|
||||||
|
UpgradeLog*.htm
|
||||||
|
|
||||||
|
# SQL Server files
|
||||||
|
App_Data/*.mdf
|
||||||
|
App_Data/*.ldf
|
||||||
|
|
||||||
|
#############
|
||||||
|
## Windows detritus
|
||||||
|
#############
|
||||||
|
|
||||||
|
# Windows image file caches
|
||||||
|
Thumbs.db
|
||||||
|
ehthumbs.db
|
||||||
|
|
||||||
|
# Folder config file
|
||||||
|
Desktop.ini
|
||||||
|
|
||||||
|
# Recycle Bin used on file shares
|
||||||
|
$RECYCLE.BIN/
|
||||||
|
|
||||||
|
# Mac crap
|
||||||
|
.DS_Store
|
||||||
|
|
||||||
|
|
||||||
|
#############
|
||||||
|
## Python
|
||||||
|
#############
|
||||||
|
|
||||||
|
*.py[co]
|
||||||
|
|
||||||
|
# Packages
|
||||||
|
*.egg
|
||||||
|
*.egg-info
|
||||||
|
dist/
|
||||||
|
build/
|
||||||
|
eggs/
|
||||||
|
parts/
|
||||||
|
var/
|
||||||
|
sdist/
|
||||||
|
develop-eggs/
|
||||||
|
.installed.cfg
|
||||||
|
|
||||||
|
# Installer logs
|
||||||
|
pip-log.txt
|
||||||
|
|
||||||
|
# Unit test / coverage reports
|
||||||
|
.coverage
|
||||||
|
.tox
|
||||||
|
|
||||||
|
#Translations
|
||||||
|
*.mo
|
||||||
|
|
||||||
|
#Mr Developer
|
||||||
|
.mr.developer.cfg
|
42
Garlic.cpp
42
Garlic.cpp
@ -232,14 +232,17 @@ namespace garlic
|
|||||||
uint32_t length = be32toh (*(uint32_t *)buf);
|
uint32_t length = be32toh (*(uint32_t *)buf);
|
||||||
buf += 4;
|
buf += 4;
|
||||||
std::string sessionTag((const char *)buf, 32);
|
std::string sessionTag((const char *)buf, 32);
|
||||||
if (m_SessionTags.count (sessionTag) > 0)
|
auto it = m_SessionTags.find (sessionTag);
|
||||||
|
if (it != m_SessionTags.end ())
|
||||||
{
|
{
|
||||||
// existing session
|
// existing session
|
||||||
|
std::string sessionKey (it->second);
|
||||||
|
m_SessionTags.erase (it); // tag might be used only once
|
||||||
uint8_t iv[32]; // IV is first 16 bytes
|
uint8_t iv[32]; // IV is first 16 bytes
|
||||||
CryptoPP::SHA256().CalculateDigest(iv, buf, 32);
|
CryptoPP::SHA256().CalculateDigest(iv, buf, 32);
|
||||||
m_Decryption.SetKeyWithIV (m_SessionKey, 32, iv);
|
m_Decryption.SetKeyWithIV ((uint8_t *)sessionKey.c_str (), 32, iv); // tag is mapped to 32 bytes key
|
||||||
m_Decryption.ProcessData(buf + 32, buf + 32, length - 32);
|
m_Decryption.ProcessData(buf + 32, buf + 32, length - 32);
|
||||||
HandleAESBlock (buf + 32, length - 32);
|
HandleAESBlock (buf + 32, length - 32, (uint8_t *)sessionKey.c_str ());
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -248,22 +251,21 @@ namespace garlic
|
|||||||
i2p::crypto::ElGamalDecrypt (
|
i2p::crypto::ElGamalDecrypt (
|
||||||
isFromTunnel ? i2p::context.GetLeaseSetPrivateKey () : i2p::context.GetPrivateKey (),
|
isFromTunnel ? i2p::context.GetLeaseSetPrivateKey () : i2p::context.GetPrivateKey (),
|
||||||
buf, (uint8_t *)&elGamal, true);
|
buf, (uint8_t *)&elGamal, true);
|
||||||
memcpy (m_SessionKey, elGamal.sessionKey, 32);
|
|
||||||
uint8_t iv[32]; // IV is first 16 bytes
|
uint8_t iv[32]; // IV is first 16 bytes
|
||||||
CryptoPP::SHA256().CalculateDigest(iv, elGamal.preIV, 32);
|
CryptoPP::SHA256().CalculateDigest(iv, elGamal.preIV, 32);
|
||||||
m_Decryption.SetKeyWithIV (m_SessionKey, 32, iv);
|
m_Decryption.SetKeyWithIV (elGamal.sessionKey, 32, iv);
|
||||||
m_Decryption.ProcessData(buf + 514, buf + 514, length - 514);
|
m_Decryption.ProcessData(buf + 514, buf + 514, length - 514);
|
||||||
HandleAESBlock (buf + 514, length - 514);
|
HandleAESBlock (buf + 514, length - 514, elGamal.sessionKey);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void GarlicRouting::HandleAESBlock (uint8_t * buf, size_t len)
|
void GarlicRouting::HandleAESBlock (uint8_t * buf, size_t len, uint8_t * sessionKey)
|
||||||
{
|
{
|
||||||
uint16_t tagCount = be16toh (*(uint16_t *)buf);
|
uint16_t tagCount = be16toh (*(uint16_t *)buf);
|
||||||
buf += 2;
|
buf += 2;
|
||||||
for (int i = 0; i < tagCount; i++)
|
for (int i = 0; i < tagCount; i++)
|
||||||
m_SessionTags.insert (std::string ((const char *)(buf + i*32), 32));
|
m_SessionTags[std::string ((const char *)(buf + i*32), 32)] = std::string ((const char *)sessionKey, 32);
|
||||||
buf += tagCount*32;
|
buf += tagCount*32;
|
||||||
uint32_t payloadSize = be32toh (*(uint32_t *)buf);
|
uint32_t payloadSize = be32toh (*(uint32_t *)buf);
|
||||||
buf += 4;
|
buf += 4;
|
||||||
@ -312,15 +314,25 @@ namespace garlic
|
|||||||
LogPrint ("Unexpected I2NP garlic message ", (int)header->typeID);
|
LogPrint ("Unexpected I2NP garlic message ", (int)header->typeID);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case eGarlicDeliveryTypeRouter:
|
|
||||||
LogPrint ("Garlic type router not implemented");
|
|
||||||
// TODO: implement
|
|
||||||
buf += 32;
|
|
||||||
break;
|
|
||||||
case eGarlicDeliveryTypeTunnel:
|
case eGarlicDeliveryTypeTunnel:
|
||||||
LogPrint ("Garlic type tunnel not implemented");
|
{
|
||||||
// TODO: implement
|
LogPrint ("Garlic type tunnel");
|
||||||
|
uint32_t gwTunnel = be32toh (*(uint32_t *)buf);
|
||||||
buf += 4;
|
buf += 4;
|
||||||
|
uint8_t * gwHash = buf;
|
||||||
|
buf += 32;
|
||||||
|
auto tunnel = i2p::tunnel::tunnels.GetNextOutboundTunnel ();
|
||||||
|
if (tunnel) // we have send it through an outbound tunnel
|
||||||
|
{
|
||||||
|
I2NPMessage * msg = CreateI2NPMessage (buf, len - 36);
|
||||||
|
tunnel->SendTunnelDataMsg (gwHash, gwTunnel, msg);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
LogPrint ("No outbound tunnels available for garlic clove");
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case eGarlicDeliveryTypeRouter:
|
||||||
|
LogPrint ("Garlic type router not supported");
|
||||||
buf += 32;
|
buf += 32;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
6
Garlic.h
6
Garlic.h
@ -3,7 +3,6 @@
|
|||||||
|
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <set>
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <cryptopp/modes.h>
|
#include <cryptopp/modes.h>
|
||||||
#include <cryptopp/aes.h>
|
#include <cryptopp/aes.h>
|
||||||
@ -75,7 +74,7 @@ namespace garlic
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
void HandleAESBlock (uint8_t * buf, size_t len);
|
void HandleAESBlock (uint8_t * buf, size_t len, uint8_t * sessionKey);
|
||||||
void HandleGarlicPayload (uint8_t * buf, size_t len);
|
void HandleGarlicPayload (uint8_t * buf, size_t len);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
@ -83,8 +82,7 @@ namespace garlic
|
|||||||
// outgoing sessions
|
// outgoing sessions
|
||||||
std::map<i2p::data::IdentHash, GarlicRoutingSession *> m_Sessions;
|
std::map<i2p::data::IdentHash, GarlicRoutingSession *> m_Sessions;
|
||||||
// incoming session
|
// incoming session
|
||||||
uint8_t m_SessionKey[32];
|
std::map<std::string, std::string> m_SessionTags; // tag -> key
|
||||||
std::set<std::string> m_SessionTags;
|
|
||||||
CryptoPP::CBC_Mode<CryptoPP::AES>::Decryption m_Decryption;
|
CryptoPP::CBC_Mode<CryptoPP::AES>::Decryption m_Decryption;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include "I2PEndian.h"
|
#include "I2PEndian.h"
|
||||||
#include <time.h>
|
|
||||||
#include <boost/bind.hpp>
|
#include <boost/bind.hpp>
|
||||||
#include <cryptopp/dh.h>
|
#include <cryptopp/dh.h>
|
||||||
#include <cryptopp/secblock.h>
|
#include <cryptopp/secblock.h>
|
||||||
#include <cryptopp/dsa.h>
|
#include <cryptopp/dsa.h>
|
||||||
#include "base64.h"
|
#include "base64.h"
|
||||||
#include "Log.h"
|
#include "Log.h"
|
||||||
|
#include "Timestamp.h"
|
||||||
#include "CryptoConst.h"
|
#include "CryptoConst.h"
|
||||||
#include "I2NPProtocol.h"
|
#include "I2NPProtocol.h"
|
||||||
#include "RouterContext.h"
|
#include "RouterContext.h"
|
||||||
@ -149,7 +149,7 @@ namespace ntcp
|
|||||||
memcpy (xy, m_Phase1.pubKey, 256);
|
memcpy (xy, m_Phase1.pubKey, 256);
|
||||||
memcpy (xy + 256, y, 256);
|
memcpy (xy + 256, y, 256);
|
||||||
CryptoPP::SHA256().CalculateDigest(m_Phase2.encrypted.hxy, xy, 512);
|
CryptoPP::SHA256().CalculateDigest(m_Phase2.encrypted.hxy, xy, 512);
|
||||||
uint32_t tsB = htobe32 (time(0));
|
uint32_t tsB = htobe32 (i2p::util::GetSecondsSinceEpoch ());
|
||||||
m_Phase2.encrypted.timestamp = tsB;
|
m_Phase2.encrypted.timestamp = tsB;
|
||||||
// TODO: fill filler
|
// TODO: fill filler
|
||||||
|
|
||||||
@ -217,7 +217,7 @@ namespace ntcp
|
|||||||
{
|
{
|
||||||
m_Phase3.size = htons (sizeof (m_Phase3.ident));
|
m_Phase3.size = htons (sizeof (m_Phase3.ident));
|
||||||
memcpy (&m_Phase3.ident, &i2p::context.GetRouterIdentity (), sizeof (m_Phase3.ident));
|
memcpy (&m_Phase3.ident, &i2p::context.GetRouterIdentity (), sizeof (m_Phase3.ident));
|
||||||
uint32_t tsA = htobe32 (time(0));
|
uint32_t tsA = htobe32 (i2p::util::GetSecondsSinceEpoch ());
|
||||||
m_Phase3.timestamp = tsA;
|
m_Phase3.timestamp = tsA;
|
||||||
|
|
||||||
SignedData s;
|
SignedData s;
|
||||||
|
@ -169,7 +169,7 @@ namespace data
|
|||||||
{
|
{
|
||||||
for (boost::filesystem::directory_iterator it1 (it->path ()); it1 != end; ++it1)
|
for (boost::filesystem::directory_iterator it1 (it->path ()); it1 != end; ++it1)
|
||||||
{
|
{
|
||||||
#ifdef BOOST_VERSION > 10500
|
#if BOOST_VERSION > 10500
|
||||||
RouterInfo * r = new RouterInfo (it1->path().string().c_str ());
|
RouterInfo * r = new RouterInfo (it1->path().string().c_str ());
|
||||||
#else
|
#else
|
||||||
RouterInfo * r = new RouterInfo(it1->path().c_str());
|
RouterInfo * r = new RouterInfo(it1->path().c_str());
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
#include <vector>
|
#include <vector>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <boost/asio.hpp>
|
#include <boost/asio.hpp>
|
||||||
#include "LeaseSet.h"
|
#include "Identity.h"
|
||||||
|
|
||||||
namespace i2p
|
namespace i2p
|
||||||
{
|
{
|
||||||
|
@ -24,6 +24,8 @@ namespace stream
|
|||||||
{
|
{
|
||||||
const uint8_t * end = buf + len;
|
const uint8_t * end = buf + len;
|
||||||
buf += 4; // sendStreamID
|
buf += 4; // sendStreamID
|
||||||
|
if (!m_SendStreamID)
|
||||||
|
m_SendStreamID = be32toh (*(uint32_t *)buf);
|
||||||
buf += 4; // receiveStreamID
|
buf += 4; // receiveStreamID
|
||||||
buf += 4; // sequenceNum
|
buf += 4; // sequenceNum
|
||||||
buf += 4; // ackThrough
|
buf += 4; // ackThrough
|
||||||
@ -124,7 +126,7 @@ namespace stream
|
|||||||
|
|
||||||
void StreamingDestination::HandleNextPacket (const uint8_t * buf, size_t len)
|
void StreamingDestination::HandleNextPacket (const uint8_t * buf, size_t len)
|
||||||
{
|
{
|
||||||
uint32_t sendStreamID = *(uint32_t *)(buf);
|
uint32_t sendStreamID = be32toh (*(uint32_t *)(buf));
|
||||||
auto it = m_Streams.find (sendStreamID);
|
auto it = m_Streams.find (sendStreamID);
|
||||||
if (it != m_Streams.end ())
|
if (it != m_Streams.end ())
|
||||||
it->second->HandleNextPacket (buf, len);
|
it->second->HandleNextPacket (buf, len);
|
||||||
@ -150,10 +152,10 @@ namespace stream
|
|||||||
|
|
||||||
I2NPMessage * StreamingDestination::GetLeaseSet ()
|
I2NPMessage * StreamingDestination::GetLeaseSet ()
|
||||||
{
|
{
|
||||||
if (!m_LeaseSet)
|
if (m_LeaseSet) // temporary always create new LeaseSet
|
||||||
m_LeaseSet = CreateLeaseSet ();
|
DeleteI2NPMessage (m_LeaseSet);
|
||||||
else
|
m_LeaseSet = CreateLeaseSet ();
|
||||||
FillI2NPMessageHeader (m_LeaseSet, eI2NPDatabaseStore); // refresh msgID
|
|
||||||
return m_LeaseSet;
|
return m_LeaseSet;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@ namespace stream
|
|||||||
uint32_t GetSendStreamID () const { return m_SendStreamID; };
|
uint32_t GetSendStreamID () const { return m_SendStreamID; };
|
||||||
uint32_t GetRecvStreamID () const { return m_RecvStreamID; };
|
uint32_t GetRecvStreamID () const { return m_RecvStreamID; };
|
||||||
const i2p::data::LeaseSet * GetRemoteLeaseSet () const { return m_RemoteLeaseSet; };
|
const i2p::data::LeaseSet * GetRemoteLeaseSet () const { return m_RemoteLeaseSet; };
|
||||||
bool IsEstablished () const { return !m_SendStreamID; };
|
bool IsEstablished () const { return m_SendStreamID; };
|
||||||
|
|
||||||
void HandleNextPacket (const uint8_t * buf, size_t len);
|
void HandleNextPacket (const uint8_t * buf, size_t len);
|
||||||
size_t Send (uint8_t * buf, size_t len, int timeout); // timeout in seconds
|
size_t Send (uint8_t * buf, size_t len, int timeout); // timeout in seconds
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#include "I2PEndian.h"
|
#include "I2PEndian.h"
|
||||||
#include <boost/thread.hpp>
|
#include <thread>
|
||||||
#include <cryptopp/sha.h>
|
#include <cryptopp/sha.h>
|
||||||
#include "RouterContext.h"
|
#include "RouterContext.h"
|
||||||
#include "Log.h"
|
#include "Log.h"
|
||||||
@ -260,7 +260,7 @@ namespace tunnel
|
|||||||
|
|
||||||
void Tunnels::Run ()
|
void Tunnels::Run ()
|
||||||
{
|
{
|
||||||
boost::this_thread::sleep(boost::posix_time::seconds(1)); // wait for other parts are ready
|
std::this_thread::sleep_for (std::chrono::seconds(1)); // wait for other parts are ready
|
||||||
|
|
||||||
uint64_t lastTs = 0;
|
uint64_t lastTs = 0;
|
||||||
while (m_IsRunning)
|
while (m_IsRunning)
|
||||||
|
@ -10,6 +10,54 @@
|
|||||||
<Platform>Win32</Platform>
|
<Platform>Win32</Platform>
|
||||||
</ProjectConfiguration>
|
</ProjectConfiguration>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClCompile Include="..\base64.cpp" />
|
||||||
|
<ClCompile Include="..\Garlic.cpp" />
|
||||||
|
<ClCompile Include="..\HTTPServer.cpp" />
|
||||||
|
<ClCompile Include="..\I2NPProtocol.cpp" />
|
||||||
|
<ClCompile Include="..\i2p.cpp" />
|
||||||
|
<ClCompile Include="..\I2PEndian.cpp" />
|
||||||
|
<ClCompile Include="..\Identity.cpp" />
|
||||||
|
<ClCompile Include="..\LeaseSet.cpp" />
|
||||||
|
<ClCompile Include="..\Log.cpp" />
|
||||||
|
<ClCompile Include="..\NetDb.cpp" />
|
||||||
|
<ClCompile Include="..\NTCPSession.cpp" />
|
||||||
|
<ClCompile Include="..\RouterContext.cpp" />
|
||||||
|
<ClCompile Include="..\RouterInfo.cpp" />
|
||||||
|
<ClCompile Include="..\Streaming.cpp" />
|
||||||
|
<ClCompile Include="..\TransitTunnel.cpp" />
|
||||||
|
<ClCompile Include="..\Transports.cpp" />
|
||||||
|
<ClCompile Include="..\Tunnel.cpp" />
|
||||||
|
<ClCompile Include="..\TunnelEndpoint.cpp" />
|
||||||
|
<ClCompile Include="..\TunnelGateway.cpp" />
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<ClInclude Include="..\base64.h" />
|
||||||
|
<ClInclude Include="..\CryptoConst.h" />
|
||||||
|
<ClInclude Include="..\ElGamal.h" />
|
||||||
|
<ClInclude Include="..\Garlic.h" />
|
||||||
|
<ClInclude Include="..\HTTPServer.h" />
|
||||||
|
<ClInclude Include="..\I2NPProtocol.h" />
|
||||||
|
<ClInclude Include="..\I2PEndian.h" />
|
||||||
|
<ClInclude Include="..\Identity.h" />
|
||||||
|
<ClInclude Include="..\LeaseSet.h" />
|
||||||
|
<ClInclude Include="..\LittleBigEndian.h" />
|
||||||
|
<ClInclude Include="..\Log.h" />
|
||||||
|
<ClInclude Include="..\NetDb.h" />
|
||||||
|
<ClInclude Include="..\NTCPSession.h" />
|
||||||
|
<ClInclude Include="..\Queue.h" />
|
||||||
|
<ClInclude Include="..\RouterContext.h" />
|
||||||
|
<ClInclude Include="..\RouterInfo.h" />
|
||||||
|
<ClInclude Include="..\Streaming.h" />
|
||||||
|
<ClInclude Include="..\Timestamp.h" />
|
||||||
|
<ClInclude Include="..\TransitTunnel.h" />
|
||||||
|
<ClInclude Include="..\Transports.h" />
|
||||||
|
<ClInclude Include="..\Tunnel.h" />
|
||||||
|
<ClInclude Include="..\TunnelBase.h" />
|
||||||
|
<ClInclude Include="..\TunnelConfig.h" />
|
||||||
|
<ClInclude Include="..\TunnelEndpoint.h" />
|
||||||
|
<ClInclude Include="..\TunnelGateway.h" />
|
||||||
|
</ItemGroup>
|
||||||
<PropertyGroup Label="Globals">
|
<PropertyGroup Label="Globals">
|
||||||
<ProjectGuid>{930568EC-31C9-406A-AD1C-9636DF5D8FAA}</ProjectGuid>
|
<ProjectGuid>{930568EC-31C9-406A-AD1C-9636DF5D8FAA}</ProjectGuid>
|
||||||
<RootNamespace>i2pd</RootNamespace>
|
<RootNamespace>i2pd</RootNamespace>
|
||||||
@ -39,8 +87,9 @@
|
|||||||
</ImportGroup>
|
</ImportGroup>
|
||||||
<PropertyGroup Label="UserMacros" />
|
<PropertyGroup Label="UserMacros" />
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||||
<IncludePath>$(BOOST);$(CRYPTOPP);$(IncludePath)</IncludePath>
|
<IncludePath>./..;$(BOOST);$(CRYPTOPP);$(IncludePath)</IncludePath>
|
||||||
<LibraryPath>$(BOOST)\stage\lib;$(CRYPTOPP)\cryptopp\Win32\Output\$(Configuration)\;$(LibraryPath)</LibraryPath>
|
<LibraryPath>$(BOOST)\stage\lib;$(CRYPTOPP)\cryptopp\Win32\Output\$(Configuration)\;$(LibraryPath)</LibraryPath>
|
||||||
|
<SourcePath>./..;$(VC_SourcePath);</SourcePath>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||||
<IncludePath>.\boost;.\cryptopp;$(IncludePath)</IncludePath>
|
<IncludePath>.\boost;.\cryptopp;$(IncludePath)</IncludePath>
|
||||||
@ -73,54 +122,6 @@
|
|||||||
<OptimizeReferences>true</OptimizeReferences>
|
<OptimizeReferences>true</OptimizeReferences>
|
||||||
</Link>
|
</Link>
|
||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
<ItemGroup>
|
|
||||||
<ClInclude Include="base64.h" />
|
|
||||||
<ClInclude Include="CryptoConst.h" />
|
|
||||||
<ClInclude Include="ElGamal.h" />
|
|
||||||
<ClInclude Include="Garlic.h" />
|
|
||||||
<ClInclude Include="HTTPServer.h" />
|
|
||||||
<ClInclude Include="I2NPProtocol.h" />
|
|
||||||
<ClInclude Include="I2PEndian.h" />
|
|
||||||
<ClInclude Include="Identity.h" />
|
|
||||||
<ClInclude Include="LeaseSet.h" />
|
|
||||||
<ClInclude Include="LittleBigEndian.h" />
|
|
||||||
<ClInclude Include="Log.h" />
|
|
||||||
<ClInclude Include="NetDb.h" />
|
|
||||||
<ClInclude Include="NTCPSession.h" />
|
|
||||||
<ClInclude Include="Queue.h" />
|
|
||||||
<ClInclude Include="RouterContext.h" />
|
|
||||||
<ClInclude Include="RouterInfo.h" />
|
|
||||||
<ClInclude Include="Streaming.h" />
|
|
||||||
<ClInclude Include="Timestamp.h" />
|
|
||||||
<ClInclude Include="TransitTunnel.h" />
|
|
||||||
<ClInclude Include="Transports.h" />
|
|
||||||
<ClInclude Include="Tunnel.h" />
|
|
||||||
<ClInclude Include="TunnelBase.h" />
|
|
||||||
<ClInclude Include="TunnelConfig.h" />
|
|
||||||
<ClInclude Include="TunnelEndpoint.h" />
|
|
||||||
<ClInclude Include="TunnelGateway.h" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<ClCompile Include="base64.cpp" />
|
|
||||||
<ClCompile Include="Garlic.cpp" />
|
|
||||||
<ClCompile Include="HTTPServer.cpp" />
|
|
||||||
<ClCompile Include="I2NPProtocol.cpp" />
|
|
||||||
<ClCompile Include="i2p.cpp" />
|
|
||||||
<ClCompile Include="I2PEndian.cpp" />
|
|
||||||
<ClCompile Include="Identity.cpp" />
|
|
||||||
<ClCompile Include="LeaseSet.cpp" />
|
|
||||||
<ClCompile Include="Log.cpp" />
|
|
||||||
<ClCompile Include="NetDb.cpp" />
|
|
||||||
<ClCompile Include="NTCPSession.cpp" />
|
|
||||||
<ClCompile Include="RouterContext.cpp" />
|
|
||||||
<ClCompile Include="RouterInfo.cpp" />
|
|
||||||
<ClCompile Include="Streaming.cpp" />
|
|
||||||
<ClCompile Include="TransitTunnel.cpp" />
|
|
||||||
<ClCompile Include="Transports.cpp" />
|
|
||||||
<ClCompile Include="Tunnel.cpp" />
|
|
||||||
<ClCompile Include="TunnelEndpoint.cpp" />
|
|
||||||
<ClCompile Include="TunnelGateway.cpp" />
|
|
||||||
</ItemGroup>
|
|
||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||||
<ImportGroup Label="ExtensionTargets">
|
<ImportGroup Label="ExtensionTargets">
|
||||||
</ImportGroup>
|
</ImportGroup>
|
@ -15,139 +15,139 @@
|
|||||||
</Filter>
|
</Filter>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ClInclude Include="ElGamal.h">
|
<ClCompile Include="..\Identity.cpp">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClInclude>
|
</ClCompile>
|
||||||
<ClInclude Include="Garlic.h">
|
<ClCompile Include="..\LeaseSet.cpp">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClInclude>
|
</ClCompile>
|
||||||
<ClInclude Include="HTTPServer.h">
|
<ClCompile Include="..\Log.cpp">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClInclude>
|
</ClCompile>
|
||||||
<ClInclude Include="I2NPProtocol.h">
|
<ClCompile Include="..\NetDb.cpp">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClInclude>
|
</ClCompile>
|
||||||
<ClInclude Include="LeaseSet.h">
|
<ClCompile Include="..\NTCPSession.cpp">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClInclude>
|
</ClCompile>
|
||||||
<ClInclude Include="Log.h">
|
<ClCompile Include="..\RouterContext.cpp">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClInclude>
|
</ClCompile>
|
||||||
<ClInclude Include="NetDb.h">
|
<ClCompile Include="..\RouterInfo.cpp">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClInclude>
|
</ClCompile>
|
||||||
<ClInclude Include="NTCPSession.h">
|
<ClCompile Include="..\Streaming.cpp">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClInclude>
|
</ClCompile>
|
||||||
<ClInclude Include="Queue.h">
|
<ClCompile Include="..\TransitTunnel.cpp">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClInclude>
|
</ClCompile>
|
||||||
<ClInclude Include="RouterContext.h">
|
<ClCompile Include="..\Transports.cpp">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClInclude>
|
</ClCompile>
|
||||||
<ClInclude Include="RouterInfo.h">
|
<ClCompile Include="..\Tunnel.cpp">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClInclude>
|
</ClCompile>
|
||||||
<ClInclude Include="Timestamp.h">
|
<ClCompile Include="..\TunnelEndpoint.cpp">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClInclude>
|
</ClCompile>
|
||||||
<ClInclude Include="TransitTunnel.h">
|
<ClCompile Include="..\TunnelGateway.cpp">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClInclude>
|
</ClCompile>
|
||||||
<ClInclude Include="Transports.h">
|
<ClCompile Include="..\base64.cpp">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClInclude>
|
</ClCompile>
|
||||||
<ClInclude Include="Tunnel.h">
|
<ClCompile Include="..\Garlic.cpp">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClInclude>
|
</ClCompile>
|
||||||
<ClInclude Include="TunnelBase.h">
|
<ClCompile Include="..\HTTPServer.cpp">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClInclude>
|
</ClCompile>
|
||||||
<ClInclude Include="TunnelConfig.h">
|
<ClCompile Include="..\I2NPProtocol.cpp">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClInclude>
|
</ClCompile>
|
||||||
<ClInclude Include="TunnelEndpoint.h">
|
<ClCompile Include="..\i2p.cpp">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClInclude>
|
</ClCompile>
|
||||||
<ClInclude Include="TunnelGateway.h">
|
<ClCompile Include="..\I2PEndian.cpp">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClInclude>
|
</ClCompile>
|
||||||
<ClInclude Include="base64.h">
|
|
||||||
<Filter>Header Files</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
<ClInclude Include="CryptoConst.h">
|
|
||||||
<Filter>Header Files</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
<ClInclude Include="I2PEndian.h">
|
|
||||||
<Filter>Header Files</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
<ClInclude Include="LittleBigEndian.h">
|
|
||||||
<Filter>Header Files</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
<ClInclude Include="Streaming.h">
|
|
||||||
<Filter>Header Files</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
<ClInclude Include="Identity.h">
|
|
||||||
<Filter>Header Files</Filter>
|
|
||||||
</ClInclude>
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ClCompile Include="Garlic.cpp">
|
<ClInclude Include="..\Identity.h">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClCompile>
|
</ClInclude>
|
||||||
<ClCompile Include="HTTPServer.cpp">
|
<ClInclude Include="..\LeaseSet.h">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClCompile>
|
</ClInclude>
|
||||||
<ClCompile Include="I2NPProtocol.cpp">
|
<ClInclude Include="..\LittleBigEndian.h">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClCompile>
|
</ClInclude>
|
||||||
<ClCompile Include="i2p.cpp">
|
<ClInclude Include="..\Log.h">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClCompile>
|
</ClInclude>
|
||||||
<ClCompile Include="LeaseSet.cpp">
|
<ClInclude Include="..\NetDb.h">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClCompile>
|
</ClInclude>
|
||||||
<ClCompile Include="Log.cpp">
|
<ClInclude Include="..\NTCPSession.h">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClCompile>
|
</ClInclude>
|
||||||
<ClCompile Include="NetDb.cpp">
|
<ClInclude Include="..\Queue.h">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClCompile>
|
</ClInclude>
|
||||||
<ClCompile Include="NTCPSession.cpp">
|
<ClInclude Include="..\RouterContext.h">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClCompile>
|
</ClInclude>
|
||||||
<ClCompile Include="RouterContext.cpp">
|
<ClInclude Include="..\RouterInfo.h">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClCompile>
|
</ClInclude>
|
||||||
<ClCompile Include="RouterInfo.cpp">
|
<ClInclude Include="..\Streaming.h">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClCompile>
|
</ClInclude>
|
||||||
<ClCompile Include="TransitTunnel.cpp">
|
<ClInclude Include="..\Timestamp.h">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClCompile>
|
</ClInclude>
|
||||||
<ClCompile Include="Transports.cpp">
|
<ClInclude Include="..\TransitTunnel.h">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClCompile>
|
</ClInclude>
|
||||||
<ClCompile Include="Tunnel.cpp">
|
<ClInclude Include="..\Transports.h">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClCompile>
|
</ClInclude>
|
||||||
<ClCompile Include="TunnelEndpoint.cpp">
|
<ClInclude Include="..\Tunnel.h">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClCompile>
|
</ClInclude>
|
||||||
<ClCompile Include="TunnelGateway.cpp">
|
<ClInclude Include="..\TunnelBase.h">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClCompile>
|
</ClInclude>
|
||||||
<ClCompile Include="base64.cpp">
|
<ClInclude Include="..\TunnelConfig.h">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClCompile>
|
</ClInclude>
|
||||||
<ClCompile Include="I2PEndian.cpp">
|
<ClInclude Include="..\TunnelEndpoint.h">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClCompile>
|
</ClInclude>
|
||||||
<ClCompile Include="Streaming.cpp">
|
<ClInclude Include="..\TunnelGateway.h">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClCompile>
|
</ClInclude>
|
||||||
<ClCompile Include="Identity.cpp">
|
<ClInclude Include="..\base64.h">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClCompile>
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\CryptoConst.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\ElGamal.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\Garlic.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\HTTPServer.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\I2NPProtocol.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\I2PEndian.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
Loading…
Reference in New Issue
Block a user