Add Trust Scope UI operation
diff --git a/src/trusted-contact.cpp b/src/trusted-contact.cpp
index 7db842a..9e574b7 100644
--- a/src/trusted-contact.cpp
+++ b/src/trusted-contact.cpp
@@ -21,6 +21,8 @@
const string& alias)
: ContactItem(selfEndorseCertificate, alias)
{
+ m_isIntroducer = true;
+
tokenizer<escaped_list_separator<char> > trustScopeItems(trustScope, escaped_list_separator<char> ("\\", " \t", "'\""));
tokenizer<escaped_list_separator<char> >::iterator it = trustScopeItems.begin();
@@ -33,6 +35,20 @@
}
}
+TrustedContact::TrustedContact(const ContactItem& contactItem)
+ : ContactItem(contactItem)
+{
+ m_isIntroducer = true;
+}
+
+TrustedContact::TrustedContact(const TrustedContact& trustedContact)
+ : ContactItem(trustedContact)
+ , m_trustScope(trustedContact.m_trustScope)
+ , m_trustScopeName(trustedContact.m_trustScopeName)
+{
+ m_isIntroducer = true;
+}
+
bool
TrustedContact::canBeTrustedFor(const Name& name)
{
@@ -57,3 +73,4 @@
return Ptr<Blob>(new Blob(oss.str().c_str(), oss.str().size()));
}
+