projects
/
shibboleth
/
cpp-opensaml.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
dfc0743
)
Set storage context for DOM constructed map.
author
Scott Cantor
<cantor.2@osu.edu>
Wed, 6 Jun 2007 16:13:25 +0000
(16:13 +0000)
committer
Scott Cantor
<cantor.2@osu.edu>
Wed, 6 Jun 2007 16:13:25 +0000
(16:13 +0000)
saml/binding/impl/ArtifactMap.cpp
patch
|
blob
|
history
diff --git
a/saml/binding/impl/ArtifactMap.cpp
b/saml/binding/impl/ArtifactMap.cpp
index
9d4e347
..
b8ecb22
100644
(file)
--- a/
saml/binding/impl/ArtifactMap.cpp
+++ b/
saml/binding/impl/ArtifactMap.cpp
@@
-141,7
+141,7
@@
XMLObject* ArtifactMappings::retrieveContent(const SAMLArtifact* artifact, const
}
ArtifactMap::ArtifactMap(xmltooling::StorageService* storage, const char* context, unsigned int artifactTTL)
}
ArtifactMap::ArtifactMap(xmltooling::StorageService* storage, const char* context, unsigned int artifactTTL)
- : m_storage(storage), m_context(
context
? context : "opensaml::ArtifactMap"), m_mappings(NULL), m_artifactTTL(artifactTTL)
+ : m_storage(storage), m_context(
(context && *context)
? context : "opensaml::ArtifactMap"), m_mappings(NULL), m_artifactTTL(artifactTTL)
{
if (!m_storage)
m_mappings = new ArtifactMappings();
{
if (!m_storage)
m_mappings = new ArtifactMappings();
@@
-154,6
+154,8
@@
ArtifactMap::ArtifactMap(const DOMElement* e, xmltooling::StorageService* storag
auto_ptr_char c(e->getAttributeNS(NULL, context));
if (c.get() && *c.get())
m_context = c.get();
auto_ptr_char c(e->getAttributeNS(NULL, context));
if (c.get() && *c.get())
m_context = c.get();
+ else
+ m_context = "opensaml::ArtifactMap";
const XMLCh* TTL = e->getAttributeNS(NULL, artifactTTL);
if (TTL) {
const XMLCh* TTL = e->getAttributeNS(NULL, artifactTTL);
if (TTL) {