summaryrefslogtreecommitdiff
path: root/node/Network.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'node/Network.hpp')
-rw-r--r--node/Network.hpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/node/Network.hpp b/node/Network.hpp
index 85ee6e9a..56c7fc60 100644
--- a/node/Network.hpp
+++ b/node/Network.hpp
@@ -302,6 +302,17 @@ public:
Membership::AddCredentialResult addCredential(const Address &sentFrom,const Revocation &rev);
/**
+ * Validate a credential and learn it if it passes certificate and other checks
+ */
+ inline Membership::AddCredentialResult addCredential(const CertificateOfOwnership &coo)
+ {
+ if (coo.networkId() != _id)
+ return Membership::ADD_REJECTED;
+ Mutex::Lock _l(_lock);
+ return _membership(coo.issuedTo()).addCredential(RR,_config,coo);
+ }
+
+ /**
* Force push credentials (COM, etc.) to a peer now
*
* @param to Destination peer address