Skip to content

Commit

Permalink
GetIdentHash for LocalDestination
Browse files Browse the repository at this point in the history
  • Loading branch information
orignal committed Apr 1, 2014
1 parent d7a584f commit ee08d66
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Identity.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@ namespace data
{
public:

virtual void UpdateLeaseSet () = 0; // LeaseSet must be update
virtual const IdentHash& GetIdentHash () const = 0;
virtual void UpdateLeaseSet () = 0; // LeaseSet must be updated
};
}
}
Expand Down
7 changes: 6 additions & 1 deletion RouterContext.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@
#include <inttypes.h>
#include <cryptopp/dsa.h>
#include <cryptopp/osrng.h>
#include "Identity.h"
#include "RouterInfo.h"

namespace i2p
{
const char ROUTER_INFO[] = "router.info";
const char ROUTER_KEYS[] = "router.keys";

class RouterContext
class RouterContext: public i2p::data::LocalDestination
{
public:

Expand All @@ -28,6 +29,10 @@ namespace i2p
void OverrideNTCPAddress (const char * host, int port); // temporary
void UpdateAddress (const char * host); // called from SSU

// implements LocalDestination
void UpdateLeaseSet () {};
const i2p::data::IdentHash& GetIdentHash () const { return m_RouterInfo.GetIdentHash (); };

private:

void CreateNewRouter ();
Expand Down
1 change: 1 addition & 0 deletions Streaming.h
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ namespace stream

// implements LocalDestination
void UpdateLeaseSet ();
const i2p::data::IdentHash& GetIdentHash () const { return m_IdentHash; };

private:

Expand Down

0 comments on commit ee08d66

Please sign in to comment.