X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=saml%2Fbinding%2Fimpl%2FClientCertAuthRule.cpp;h=33273ec218c5df9d969783ce6a45a2cfeea71c81;hb=e9554c255ad3c91c7c4976e7a1a54905903e66a2;hp=382eb106d9d0b34970f29bf25c3e6e9c3a80a8d9;hpb=3582107119b14aeb81632921dd9442ef52cf64db;p=shibboleth%2Fcpp-opensaml.git diff --git a/saml/binding/impl/ClientCertAuthRule.cpp b/saml/binding/impl/ClientCertAuthRule.cpp index 382eb10..33273ec 100644 --- a/saml/binding/impl/ClientCertAuthRule.cpp +++ b/saml/binding/impl/ClientCertAuthRule.cpp @@ -1,5 +1,5 @@ /* - * Copyright 2001-2009 Internet2 + * Copyright 2001-2010 Internet2 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,17 +17,19 @@ /** * ClientCertAuthRule.cpp * - * TLS client authentication SecurityPolicyRule + * TLS client authentication SecurityPolicyRule. */ #include "internal.h" #include "exceptions.h" +#include "binding/SecurityPolicy.h" #include "binding/SecurityPolicyRule.h" #include "saml2/metadata/Metadata.h" #include "saml2/metadata/MetadataCredentialCriteria.h" #include "saml2/metadata/MetadataProvider.h" #include +#include #include #include #include @@ -65,7 +67,7 @@ namespace opensaml { ClientCertAuthRule::ClientCertAuthRule(const DOMElement* e) : m_errorFatal(false) { if (e) { - const XMLCh* flag = e->getAttributeNS(NULL, errorFatal); + const XMLCh* flag = e->getAttributeNS(nullptr, errorFatal); m_errorFatal = (flag && (*flag==chLatin_t || *flag==chDigit_1)); } } @@ -88,7 +90,7 @@ bool ClientCertAuthRule::evaluate(const XMLObject& message, const GenericRequest return false; } - const std::vector& chain = request->getClientCertificates(); + const vector& chain = request->getClientCertificates(); if (chain.empty()) return false;