projects
/
shibboleth
/
cpp-sp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add warning comment to metadata.
[shibboleth/cpp-sp.git]
/
shibsp
/
handler
/
impl
/
MetadataGenerator.cpp
diff --git
a/shibsp/handler/impl/MetadataGenerator.cpp
b/shibsp/handler/impl/MetadataGenerator.cpp
index
a2e5e73
..
79c92e2
100644
(file)
--- a/
shibsp/handler/impl/MetadataGenerator.cpp
+++ b/
shibsp/handler/impl/MetadataGenerator.cpp
@@
-674,6
+674,8
@@
pair<bool,long> MetadataGenerator::processMessage(
// Sign while marshalling.
vector<Signature*> sigs(1,sig);
prettyentity->marshall(prettydoc,&sigs,cred);
// Sign while marshalling.
vector<Signature*> sigs(1,sig);
prettyentity->marshall(prettydoc,&sigs,cred);
+ s << "<!--" << endl << "This is example metadata only. Do *NOT* supply it as is without review,"
+ << endl << "and do *NOT* provide it in real time to your partners." << endl << " -->" << endl;
s << *prettyentity;
}
else {
s << *prettyentity;
}
else {
@@
-682,6
+684,8
@@
pair<bool,long> MetadataGenerator::processMessage(
}
else {
// Pretty-print it directly to client.
}
else {
// Pretty-print it directly to client.
+ s << "<!--" << endl << "This is example metadata only. Do *NOT* supply it as is without review,"
+ << endl << "and do *NOT* provide it in real time to your partners." << endl << " -->";
XMLHelper::serialize(entity->marshall(), s, true);
}
XMLHelper::serialize(entity->marshall(), s, true);
}