X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-opensaml.git;a=blobdiff_plain;f=saml%2Fbinding%2Fimpl%2FNullSecurityRule.cpp;h=7d984abfdc5be8c2fbb1cf3af38cd11c6e7ad84b;hp=f1132340e5ec97227a16f54b2dc7293904b5d01e;hb=9d61992f725e8b73421e9262a711f4cbdd782b18;hpb=53f30080aa11d6874d6e2c5c533b2fbd4be1fd17 diff --git a/saml/binding/impl/NullSecurityRule.cpp b/saml/binding/impl/NullSecurityRule.cpp index f113234..7d984ab 100644 --- a/saml/binding/impl/NullSecurityRule.cpp +++ b/saml/binding/impl/NullSecurityRule.cpp @@ -37,7 +37,13 @@ namespace opensaml { NullSecurityRule(const DOMElement* e) : m_log(Category::getInstance(SAML_LOGCAT".SecurityPolicyRule.NullSecurity")) {} virtual ~NullSecurityRule() {} - void evaluate(const XMLObject& message, const GenericRequest* request, SecurityPolicy& policy) const; + const char* getType() const { + return NULLSECURITY_POLICY_RULE; + } + void evaluate(const XMLObject& message, const GenericRequest* request, const XMLCh* protocol, SecurityPolicy& policy) const { + m_log.warn("security enforced using NULL policy rule, be sure you know what you're doing"); + policy.setSecure(true); + } private: Category& m_log; @@ -48,9 +54,3 @@ namespace opensaml { return new NullSecurityRule(e); } }; - -void NullSecurityRule::evaluate(const XMLObject& message, const GenericRequest* request, SecurityPolicy& policy) const -{ - m_log.warn("security enforced using NULL policy rule, be sure you know what you're doing"); - policy.setSecure(true); -}