/*
- * 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.
/**
* 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 <xmltooling/logging.h>
+#include <xmltooling/io/GenericRequest.h>
#include <xmltooling/security/Credential.h>
#include <xmltooling/security/X509TrustEngine.h>
#include <xmltooling/util/ReplayCache.h>
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));
}
}
return false;
}
- const std::vector<XSECCryptoX509*>& chain = request->getClientCertificates();
+ const vector<XSECCryptoX509*>& chain = request->getClientCertificates();
if (chain.empty())
return false;