[cpp-sp] branch main updated: Remove unused headers from module.

Scott Cantor cantor.2 at osu.edu
Fri Dec 13 18:49:08 UTC 2024


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

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

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

The following commit(s) were added to refs/heads/main by this push:
     new a5bfcaa1 Remove unused headers from module.
a5bfcaa1 is described below

commit a5bfcaa14d90ad4b31fbd3a199f5a614f43905a8
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Fri Dec 13 13:48:58 2024 -0500

    Remove unused headers from module.
---
 apache/mod_shib_24.cpp | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)

diff --git a/apache/mod_shib_24.cpp b/apache/mod_shib_24.cpp
index 5f46fa00..51f32cd7 100644
--- a/apache/mod_shib_24.cpp
+++ b/apache/mod_shib_24.cpp
@@ -47,11 +47,6 @@
 #include <shibsp/attribute/Attribute.h>
 #include <shibsp/util/Lockable.h>
 
-#include <xercesc/util/XMLUniDefs.hpp>
-#include <xmltooling/XMLToolingConfig.h>
-#include <xmltooling/util/XMLConstants.h>
-#include <xmltooling/util/XMLHelper.h>
-
 #ifdef WIN32
 # include <winsock2.h>
 # include <ws2tcpip.h>
@@ -1075,6 +1070,16 @@ RequestMapper::Settings ApacheRequestMapper::getSettings(const HTTPRequest& requ
     return make_pair(this, s.second);
 }
 
+bool ApacheRequestMapper::hasProperty(const char* name) const
+{
+    if (m_sta) {
+        // TODO, will need to enumerate all the built-in properties I imagine.
+    }
+
+    return m_props && (!m_sta->m_dc->tUnsettings || !apr_table_get(m_sta->m_dc->tUnsettings, name))
+        ? m_props->hasProperty(name) : false;
+}
+
 bool ApacheRequestMapper::getBool(const char* name, bool defaultValue) const
 {
     if (m_sta) {

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


More information about the commits mailing list