X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-opensaml.git;a=blobdiff_plain;f=saml%2Fsaml2%2Fcore%2Fimpl%2FAssertions20SchemaValidators.cpp;h=9048bfb1a14b33d5e7ca9f6a89adf5efc13fba04;hp=306232c53725910f7e9dec0479cf5abb5142eb0b;hb=367dff3d45fd14df5fc72cc93079c1270da55324;hpb=f1208cd2f514700244816377443c4951dc22c848 diff --git a/saml/saml2/core/impl/Assertions20SchemaValidators.cpp b/saml/saml2/core/impl/Assertions20SchemaValidators.cpp index 306232c..9048bfb 100644 --- a/saml/saml2/core/impl/Assertions20SchemaValidators.cpp +++ b/saml/saml2/core/impl/Assertions20SchemaValidators.cpp @@ -94,10 +94,7 @@ namespace opensaml { 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) {