Reducing header overuse, non-inlining selected methods (CPPOST-35).
authorScott Cantor <cantor.2@osu.edu>
Sun, 27 Sep 2009 04:44:35 +0000 (04:44 +0000)
committerScott Cantor <cantor.2@osu.edu>
Sun, 27 Sep 2009 04:44:35 +0000 (04:44 +0000)
15 files changed:
adfs/adfs.cpp
shibsp/SPConfig.cpp
shibsp/SPConfig.h
shibsp/attribute/Attribute.cpp
shibsp/attribute/resolver/impl/KeyDescriptorAttributeExtractor.cpp
shibsp/attribute/resolver/impl/SimpleAggregationAttributeResolver.cpp
shibsp/attribute/resolver/impl/XMLAttributeExtractor.cpp
shibsp/binding/impl/SOAPClient.cpp
shibsp/handler/impl/AbstractHandler.cpp
shibsp/handler/impl/MetadataGenerator.cpp
shibsp/handler/impl/SAML1Consumer.cpp
shibsp/handler/impl/SAML2Consumer.cpp
shibsp/handler/impl/SAML2LogoutInitiator.cpp
shibsp/handler/impl/StatusHandler.cpp
shibsp/impl/StorageServiceSessionCache.cpp

index 945c981..8a10777 100644 (file)
 # include <shibsp/attribute/resolver/ResolutionContext.h>
 # include <shibsp/metadata/MetadataProviderCriteria.h>
 # include <saml/SAMLConfig.h>
+# include <saml/binding/SecurityPolicy.h>
 # include <saml/saml1/core/Assertions.h>
 # include <saml/saml1/profile/AssertionValidator.h>
 # include <saml/saml2/core/Assertions.h>
 # include <saml/saml2/metadata/Metadata.h>
 # include <saml/saml2/metadata/EndpointManager.h>
 # include <saml/saml2/profile/AssertionValidator.h>
+# include <xmltooling/XMLToolingConfig.h>
 # include <xmltooling/impl/AnyElement.h>
 # include <xmltooling/validation/ValidatorSuite.h>
 using namespace opensaml::saml2md;
index cbc9f8c..326f995 100644 (file)
 # include "metadata/MetadataExt.h"
 # include "security/PKIXTrustEngine.h"
 # include <saml/SAMLConfig.h>
-#else
-# include <xmltooling/XMLToolingConfig.h>
 #endif
 
 #include <ctime>
 #include <xercesc/util/XMLUniDefs.hpp>
+#include <xmltooling/XMLToolingConfig.h>
 #include <xmltooling/util/NDC.h>
 #include <xmltooling/util/PathResolver.h>
 #include <xmltooling/util/TemplateEngine.h>
index 99f1a22..44975eb 100644 (file)
@@ -28,6 +28,7 @@
 # include <saml/binding/MessageDecoder.h>
 #endif
 #include <xmltooling/PluginManager.h>
+#include <xmltooling/QName.h>
 #include <xercesc/dom/DOM.hpp>
 
 /**
index 36c32bc..4a009c0 100644 (file)
 #include <xercesc/util/Base64.hpp>
 #include <xercesc/util/XMLUniDefs.hpp>
 
+#ifndef SHIBSP_LITE
+# include <xsec/framework/XSECDefs.hpp>
+#endif
+
 using namespace shibsp;
 using namespace xmltooling;
 using namespace std;
@@ -177,15 +181,15 @@ Attribute* Attribute::unmarshall(DDF& in)
 const vector<string>& XMLAttribute::getSerializedValues() const
 {
     xsecsize_t len;
-    XMLByte *pos, *pos2;\r
+    XMLByte *pos, *pos2;
     if (m_serialized.empty()) {
         for (vector<string>::const_iterator i=m_values.begin(); i!=m_values.end(); ++i) {
             XMLByte* enc = Base64::encode(reinterpret_cast<const XMLByte*>(i->data()), i->size(), &len);
             if (enc) {
-                for (pos=enc, pos2=enc; *pos2; pos2++)\r
-                    if (isgraph(*pos2))\r
-                        *pos++=*pos2;\r
-                *pos=0;\r
+                for (pos=enc, pos2=enc; *pos2; pos2++)
+                    if (isgraph(*pos2))
+                        *pos++=*pos2;
+                *pos=0;
                 m_serialized.push_back(reinterpret_cast<char*>(enc));
 #ifdef SHIBSP_XERCESC_HAS_XMLBYTE_RELEASE
                 XMLString::release(&enc);
index d730b35..525bf9d 100644 (file)
@@ -28,6 +28,7 @@
 
 #include <saml/saml2/metadata/Metadata.h>
 #include <saml/saml2/metadata/MetadataCredentialCriteria.h>
+#include <xmltooling/security/Credential.h>
 #include <xmltooling/security/SecurityHelper.h>
 #include <xmltooling/util/XMLHelper.h>
 #include <xercesc/util/XMLUniDefs.hpp>
index abd1cad..74d2d35 100644 (file)
@@ -40,6 +40,7 @@
 #include <saml/saml2/binding/SAML2SOAPClient.h>
 #include <saml/saml2/core/Protocols.h>
 #include <saml/saml2/metadata/MetadataProvider.h>
+#include <xmltooling/XMLToolingConfig.h>
 #include <xmltooling/util/NDC.h>
 #include <xmltooling/util/XMLHelper.h>
 #include <xercesc/util/XMLUniDefs.hpp>
index c27df80..abc2755 100644 (file)
@@ -35,6 +35,7 @@
 #include <saml/saml2/core/Assertions.h>
 #include <saml/saml2/metadata/MetadataCredentialCriteria.h>
 #include <saml/saml2/metadata/ObservableMetadataProvider.h>
+#include <xmltooling/XMLToolingConfig.h>
 #include <xmltooling/util/NDC.h>
 #include <xmltooling/util/ReloadableXMLFile.h>
 #include <xmltooling/util/XMLHelper.h>
index cc5c6dc..1ae2d7d 100644 (file)
@@ -27,6 +27,7 @@
 #include "binding/SOAPClient.h"
 
 #include <saml/saml2/metadata/Metadata.h>
+#include <xmltooling/security/Credential.h>
 #include <xmltooling/soap/SOAP.h>
 #include <xmltooling/soap/HTTPSOAPTransport.h>
 #include <xmltooling/util/NDC.h>
index e42ef5b..b31cb87 100644 (file)
@@ -47,6 +47,7 @@
 # include <saml/util/SAMLConstants.h>
 # include <saml/SAMLConfig.h>
 # include <saml/binding/SAMLArtifact.h>
+# include <xmltooling/security/Credential.h>
 # include <xmltooling/util/StorageService.h>
 using namespace opensaml::saml2md;
 #else
index 165f95b..163c4b9 100644 (file)
@@ -30,6 +30,7 @@
 #ifndef SHIBSP_LITE
 # include "metadata/MetadataProviderCriteria.h"
 # include <xmltooling/XMLToolingConfig.h>
+# include <xmltooling/security/Credential.h>
 # include <xmltooling/util/PathResolver.h>
 #endif
 
index 239d7d2..1f678eb 100644 (file)
@@ -30,6 +30,7 @@
 # include "SessionCache.h"
 # include "attribute/resolver/ResolutionContext.h"
 # include <saml/SAMLConfig.h>
+# include <saml/binding/SecurityPolicy.h>
 # include <saml/saml1/core/Assertions.h>
 # include <saml/saml1/core/Protocols.h>
 # include <saml/saml2/metadata/Metadata.h>
index 532c0ac..8e676ac 100644 (file)
@@ -34,6 +34,7 @@
 # include <saml/saml2/metadata/Metadata.h>
 # include <saml/saml2/metadata/MetadataCredentialCriteria.h>
 # include <saml/saml2/profile/SAML2AssertionPolicy.h>
+# include <xmltooling/XMLToolingConfig.h>
 using namespace opensaml::saml2;
 using namespace opensaml::saml2p;
 using namespace opensaml::saml2md;
index 249eb8f..2f25f45 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *  Copyright 2001-2007 Internet2
+ *  Copyright 2001-2009 Internet2
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -36,6 +36,7 @@
 # include <saml/saml2/binding/SAML2SOAPClient.h>
 # include <saml/saml2/metadata/EndpointManager.h>
 # include <saml/saml2/metadata/MetadataCredentialCriteria.h>
+# include <xmltooling/security/Credential.h>
 using namespace opensaml::saml2;
 using namespace opensaml::saml2p;
 using namespace opensaml::saml2md;
index b9e066d..c14e420 100644 (file)
@@ -33,6 +33,7 @@ using namespace shibsp;
 # include "SessionCache.h"
 # include "metadata/MetadataProviderCriteria.h"
 # include <saml/version.h>
+# include <xmltooling/security/Credential.h>
 using namespace opensaml::saml2md;
 using namespace opensaml;
 using namespace xmlsignature;
index 827163f..839c6c1 100644 (file)
@@ -45,6 +45,7 @@
 
 #ifndef SHIBSP_LITE
 # include <saml/SAMLConfig.h>
+# include <xmltooling/XMLToolingConfig.h>
 # include <xmltooling/util/StorageService.h>
 using namespace opensaml::saml2md;
 #else