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:
0812e60
)
Set policy role based on peer entity.
author
Scott Cantor
<cantor.2@osu.edu>
Wed, 14 Feb 2007 00:30:56 +0000
(
00:30
+0000)
committer
Scott Cantor
<cantor.2@osu.edu>
Wed, 14 Feb 2007 00:30:56 +0000
(
00:30
+0000)
saml/binding/impl/SOAPClient.cpp
patch
|
blob
|
history
diff --git
a/saml/binding/impl/SOAPClient.cpp
b/saml/binding/impl/SOAPClient.cpp
index
be471ee
..
84fa0ee
100644
(file)
--- a/
saml/binding/impl/SOAPClient.cpp
+++ b/
saml/binding/impl/SOAPClient.cpp
@@
-43,6
+43,13
@@
void SOAPClient::send(const soap11::Envelope& env, const KeyInfoSource& peer, co
m_policy.reset();
m_peer = dynamic_cast<const RoleDescriptor*>(&peer);
+ if (m_peer) {
+ const QName& role = m_peer->getElementQName();
+ if (XMLString::equals(role.getLocalPart(),RoleDescriptor::LOCAL_NAME))
+ m_policy.setRole(m_peer->getSchemaType());
+ else
+ m_policy.setRole(&role);
+ }
soap11::SOAPClient::send(env, peer, endpoint);
}