mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-07 06:09:42 +00:00
a bug has been fixed. some warnings have been found
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#include <string.h>
|
||||
#include <endian.h>
|
||||
#include <I2PEndian.h>
|
||||
#include <cryptopp/sha.h>
|
||||
#include <cryptopp/modes.h>
|
||||
#include <cryptopp/aes.h>
|
||||
@@ -171,6 +171,7 @@ namespace i2p
|
||||
CryptoPP::Gzip compressor;
|
||||
compressor.Put ((uint8_t *)context.GetRouterInfo ().GetBuffer (), context.GetRouterInfo ().GetBufferLen ());
|
||||
compressor.MessageEnd();
|
||||
// WARNING!!! MaxRetrievable() return uint64_t. <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD> <20><><EFBFBD>-<2D><> <20><> <20><><EFBFBD>
|
||||
int size = compressor.MaxRetrievable ();
|
||||
uint8_t * buf = m->GetPayload () + sizeof (I2NPDatabaseStoreMsg);
|
||||
*(uint16_t *)buf = htobe16 (size); // size
|
||||
|
||||
@@ -31,6 +31,7 @@ namespace tunnel
|
||||
{
|
||||
public:
|
||||
|
||||
//WARNING!!! GetSecondsSinceEpoch() return uint64_t
|
||||
TunnelBase (): m_CreationTime (i2p::util::GetSecondsSinceEpoch ()) {};
|
||||
virtual ~TunnelBase () {};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user