From dc1bb1d28b3e695b81f4c018ac232af474d43030 Mon Sep 17 00:00:00 2001 From: subtly Date: Tue, 3 Mar 2015 23:30:25 +0100 Subject: [PATCH] build fix --- libp2p/Host.h | 9 +++++++-- libp2p/Peer.h | 2 ++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/libp2p/Host.h b/libp2p/Host.h index 86f682a1a..c34ec9f21 100644 --- a/libp2p/Host.h +++ b/libp2p/Host.h @@ -48,7 +48,7 @@ namespace dev namespace p2p { - + class Host; class HostNodeTableHandler: public NodeTableEventHandler @@ -63,7 +63,7 @@ private: Host& m_host; }; - + /** * @brief The Host class * Capabilities should be registered prior to startNetwork, since m_capabilities is not thread-safe. @@ -77,7 +77,10 @@ private: class Host: public Worker { friend class HostNodeTableHandler; + friend struct PeerHandshake; + friend struct RLPXHandshake; + friend class Session; friend class HostCapabilityFace; @@ -237,6 +240,8 @@ private: struct PeerSecrets { friend struct PeerHandshake; + friend struct RLPXHandshake; + protected: Secret encryptK; Secret macK; diff --git a/libp2p/Peer.h b/libp2p/Peer.h index 5c1aa015d..e9b45845b 100644 --- a/libp2p/Peer.h +++ b/libp2p/Peer.h @@ -54,7 +54,9 @@ class Peer: public Node { friend class Session; /// Allows Session to update score and rating. friend class Host; /// For Host: saveNetwork(), restoreNetwork() + friend struct PeerHandshake; + friend struct RLPXHandshake; public: bool isOffline() const { return !m_session.lock(); }