[cpp-sp] branch master updated: Fix build issues.

Scott Cantor cantor.2 at osu.edu
Wed May 2 14:26:32 EDT 2018


This is an automated email from the git hooks/post-receive script.

scantor pushed a commit to branch master
in repository cpp-sp.

View the commit online:
http://git.shibboleth.net/view/?p=cpp-sp.git;a=commit;h=b2b0f49e6d375872cf4c5cbd83d4a8d3fc0636f4

The following commit(s) were added to refs/heads/master by this push:
       new  b2b0f49   Fix build issues.
b2b0f49 is described below

commit b2b0f49e6d375872cf4c5cbd83d4a8d3fc0636f4
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Wed May 2 14:26:29 2018 -0400

    Fix build issues.
---
 shibsp/Makefile.am                          |  1 +
 shibsp/metadata/DynamicMetadataProvider.cpp | 20 ++++++++++++--------
 2 files changed, 13 insertions(+), 8 deletions(-)

diff --git a/shibsp/Makefile.am b/shibsp/Makefile.am
index 8292660..61c4ada 100644
--- a/shibsp/Makefile.am
+++ b/shibsp/Makefile.am
@@ -109,6 +109,7 @@ noinst_HEADERS = \
 	impl/StoredSession.h \
 	impl/StorageServiceSessionCache.h \
 	impl/XMLApplication.h \
+	impl/XMLServiceProvider.h \
 	remoting/impl/SocketListener.h
 
 common_sources = \
diff --git a/shibsp/metadata/DynamicMetadataProvider.cpp b/shibsp/metadata/DynamicMetadataProvider.cpp
index 1717341..b3feb2f 100644
--- a/shibsp/metadata/DynamicMetadataProvider.cpp
+++ b/shibsp/metadata/DynamicMetadataProvider.cpp
@@ -23,15 +23,19 @@
  *
  * Advanced implementation of a dynamic caching MetadataProvider.
  */
-#include <fstream>
-
 
 #include "internal.h"
 #include "exceptions.h"
 #include "Application.h"
 #include "ServiceProvider.h"
 #include "metadata/MetadataProviderCriteria.h"
+
+#include <fstream>
+#ifndef WIN32
+# include <errno.h>
+#endif
 #include <boost/algorithm/string.hpp>
+
 #include <xercesc/util/XMLUniDefs.hpp>
 #include <xercesc/util/regx/RegularExpression.hpp>
 #include <xsec/framework/XSECDefs.hpp>
@@ -83,14 +87,13 @@ namespace shibsp {
         EntityDescriptor* resolve(const MetadataProvider::Criteria& criteria) const;
 
     private:
-        bool m_verifyHost, m_ignoreTransport, m_encoded, m_backgroundInit;
-        const bool m_isMDQ;
+        Category& m_log;
+        bool m_verifyHost, m_ignoreTransport, m_encoded, m_backgroundInit, m_isMDQ;
         static bool s_artifactWarned;
         string m_subst, m_match, m_regex, m_hashed, m_cacheDir;
         boost::scoped_ptr<X509TrustEngine> m_trust;
         boost::scoped_ptr<CredentialResolver> m_dummyCR;
         boost::scoped_ptr<Thread> m_init_thread;
-        Category & m_log;
 
         static void* init_fn(void*);
         static void FolderCallback(const char* pathname, struct stat& stat_buf, void* data);
@@ -120,11 +123,12 @@ bool DynamicMetadataProvider::s_artifactWarned(false);
 
 DynamicMetadataProvider::DynamicMetadataProvider(const DOMElement* e)
     : MetadataProvider(e), AbstractDynamicMetadataProvider(true, e),
+      m_log( Category::getInstance(SHIBSP_LOGCAT ".MetadataProvider.Dynamic")),
         m_verifyHost(XMLHelper::getAttrBool(e, true, verifyHost)),
-        m_log( Category::getInstance(SHIBSP_LOGCAT ".MetadataProvider.Dynamic")),
-        m_cacheDir(XMLHelper::getAttrString(e, "", cacheDirectory)),
         m_ignoreTransport(XMLHelper::getAttrBool(e, false, ignoreTransport)),
-        m_encoded(true), m_trust(nullptr), m_isMDQ(XMLHelper::getAttrString(e, "Dyanamic", _type) == "MDQ")
+        m_encoded(true), m_backgroundInit(false),
+        m_isMDQ(XMLHelper::getAttrString(e, "Dyanamic", _type) == "MDQ"),
+        m_cacheDir(XMLHelper::getAttrString(e, "", cacheDirectory))
 {
     const DOMElement* child = XMLHelper::getFirstChildElement(e, Subst);
     if (child && child->hasChildNodes()) {

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list