[cpp-opensaml COMMIT] /branches/REL_2/saml/saml2/core/impl/Assertions20SchemaValidators.cpp

noreply at shibboleth.net noreply at shibboleth.net
Thu Jan 8 22:16:34 EST 2015


Author: scantor
Date: Thu Jan  8 22:16:33 2015
New Revision: 773

URL: http://svn.shibboleth.net/view/cpp-opensaml?rev=773&view=rev
Log:
https://issues.shibboleth.net/jira/browse/CPPOST-90

Modified:
    branches/REL_2/saml/saml2/core/impl/Assertions20SchemaValidators.cpp

Modified: branches/REL_2/saml/saml2/core/impl/Assertions20SchemaValidators.cpp
URL: http://svn.shibboleth.net/view/cpp-opensaml/branches/REL_2/saml/saml2/core/impl/Assertions20SchemaValidators.cpp?rev=773&r1=772&r2=773&view=diff
==============================================================================
--- branches/REL_2/saml/saml2/core/impl/Assertions20SchemaValidators.cpp (original)
+++ branches/REL_2/saml/saml2/core/impl/Assertions20SchemaValidators.cpp Thu Jan  8 22:16:33 2015
@@ -94,10 +94,7 @@
         END_XMLOBJECTVALIDATOR;
 
         BEGIN_XMLOBJECTVALIDATOR(SAML_DLLLOCAL,Conditions);
-            if (!ptr->hasChildren()) {
-                XMLOBJECTVALIDATOR_ONEOF(Conditions,NotBefore,NotOnOrAfter);
-            }
-            else if (ptr->getOneTimeUses().size() > 1) {
+            if (ptr->getOneTimeUses().size() > 1) {
                 throw ValidationException("Multiple OneTimeUse condition elements are not permitted.");
             }
             else if (ptr->getProxyRestrictions().size() > 1) {



More information about the commits mailing list