From: Scott Cantor Date: Fri, 22 Jun 2007 15:20:53 +0000 (+0000) Subject: Register NullSecurity rule. X-Git-Tag: 2.0-alpha1^0 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-opensaml.git;a=commitdiff_plain;h=cffbba976931b6e032c7014cb59593aba17005be Register NullSecurity rule. --- diff --git a/saml/binding/SecurityPolicyRule.h b/saml/binding/SecurityPolicyRule.h index 1f58170..129af0f 100644 --- a/saml/binding/SecurityPolicyRule.h +++ b/saml/binding/SecurityPolicyRule.h @@ -96,6 +96,15 @@ namespace opensaml { #define MESSAGEFLOW_POLICY_RULE "MessageFlow" /** + * SecurityPolicyRule for disabling security. + * + * Allows the message issuer to be authenticated regardless of the message or + * transport. Used mainly for debugging or in situations that I wouldn't care to + * comment on. + */ + #define NULLSECURITY_POLICY_RULE "NullSecurity" + + /** * SecurityPolicyRule for protocol message "blob" signing. * * Allows the message issuer to be authenticated using a non-XML digital signature diff --git a/saml/binding/impl/SecurityPolicy.cpp b/saml/binding/impl/SecurityPolicy.cpp index 5fd35fa..d2b3bc3 100644 --- a/saml/binding/impl/SecurityPolicy.cpp +++ b/saml/binding/impl/SecurityPolicy.cpp @@ -34,6 +34,7 @@ using namespace std; namespace opensaml { SAML_DLLLOCAL PluginManager::Factory ClientCertAuthRuleFactory; SAML_DLLLOCAL PluginManager::Factory MessageFlowRuleFactory; + SAML_DLLLOCAL PluginManager::Factory NullSecurityRuleFactory; SAML_DLLLOCAL PluginManager::Factory SAML1MessageRuleFactory; SAML_DLLLOCAL PluginManager::Factory SAML2MessageRuleFactory; SAML_DLLLOCAL PluginManager::Factory SimpleSigningRuleFactory; @@ -45,6 +46,7 @@ void SAML_API opensaml::registerSecurityPolicyRules() SAMLConfig& conf=SAMLConfig::getConfig(); conf.SecurityPolicyRuleManager.registerFactory(CLIENTCERTAUTH_POLICY_RULE, ClientCertAuthRuleFactory); conf.SecurityPolicyRuleManager.registerFactory(MESSAGEFLOW_POLICY_RULE, MessageFlowRuleFactory); + conf.SecurityPolicyRuleManager.registerFactory(NULLSECURITY_POLICY_RULE, NullSecurityRuleFactory); conf.SecurityPolicyRuleManager.registerFactory(SAML1MESSAGE_POLICY_RULE, SAML1MessageRuleFactory); conf.SecurityPolicyRuleManager.registerFactory(SAML2MESSAGE_POLICY_RULE, SAML2MessageRuleFactory); conf.SecurityPolicyRuleManager.registerFactory(SIMPLESIGNING_POLICY_RULE, SimpleSigningRuleFactory);