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:
1499d0c
)
Separate property flag for POST vs GET
author
Scott Cantor
<cantor.2@osu.edu>
Fri, 25 May 2007 04:12:15 +0000
(
04:12
+0000)
committer
Scott Cantor
<cantor.2@osu.edu>
Fri, 25 May 2007 04:12:15 +0000
(
04:12
+0000)
saml/saml2/binding/impl/SAML2ArtifactEncoder.cpp
patch
|
blob
|
history
diff --git
a/saml/saml2/binding/impl/SAML2ArtifactEncoder.cpp
b/saml/saml2/binding/impl/SAML2ArtifactEncoder.cpp
index
6b682ec
..
cafd1b0
100644
(file)
--- a/
saml/saml2/binding/impl/SAML2ArtifactEncoder.cpp
+++ b/
saml/saml2/binding/impl/SAML2ArtifactEncoder.cpp
@@
-62,7
+62,8
@@
namespace opensaml {
) const;
private:
) const;
private:
- string m_template;
+ bool m_post;
+ string m_template;
};
MessageEncoder* SAML_DLLLOCAL SAML2ArtifactEncoderFactory(const DOMElement* const & e)
};
MessageEncoder* SAML_DLLLOCAL SAML2ArtifactEncoderFactory(const DOMElement* const & e)
@@
-70,16
+71,21
@@
namespace opensaml {
return new SAML2ArtifactEncoder(e);
}
};
return new SAML2ArtifactEncoder(e);
}
};
-};
-static const XMLCh _template[] = UNICODE_LITERAL_8(t,e,m,p,l,a,t,e);
+ static const XMLCh _template[] = UNICODE_LITERAL_8(t,e,m,p,l,a,t,e);
+ static const XMLCh postArtifact[] = UNICODE_LITERAL_12(p,o,s,t,A,r,t,i,f,a,c,t);
+};
-SAML2ArtifactEncoder::SAML2ArtifactEncoder(const DOMElement* e)
+SAML2ArtifactEncoder::SAML2ArtifactEncoder(const DOMElement* e)
: m_post(false)
{
if (e) {
{
if (e) {
- auto_ptr_char t(e->getAttributeNS(NULL, _template));
- if (t.get())
- m_template = t.get();
+ const XMLCh* flag = e->getAttributeNS(NULL, postArtifact);
+ m_post = (flag && (*flag==chLatin_t || *flag==chDigit_1));
+ if (m_post) {
+ auto_ptr_char t(e->getAttributeNS(NULL, _template));
+ if (t.get())
+ m_template = t.get();
+ }
}
}
}
}