[cpp-sp] branch main updated: Add a deprecation helper method.
Scott Cantor
cantor.2 at osu.edu
Thu Oct 21 15:57:46 UTC 2021
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=e3d4911e273259b642bbdf6e938f4732123430aa
The following commit(s) were added to refs/heads/main by this push:
new e3d4911e Add a deprecation helper method.
e3d4911e is described below
commit e3d4911e273259b642bbdf6e938f4732123430aa
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Thu Oct 21 11:57:38 2021 -0400
Add a deprecation helper method.
---
shibsp/SPConfig.cpp | 5 +++++
shibsp/SPConfig.h | 7 +++++++
2 files changed, 12 insertions(+)
diff --git a/shibsp/SPConfig.cpp b/shibsp/SPConfig.cpp
index 8f85e5bb..9fd8982f 100644
--- a/shibsp/SPConfig.cpp
+++ b/shibsp/SPConfig.cpp
@@ -549,3 +549,8 @@ bool SPConfig::shouldSignOrEncrypt(const char* setting, const char* endpoint, bo
return false;
}
#endif
+
+Category& SPConfig::deprecation() const
+{
+ return Category::getInstance(SHIBSP_LOGCAT".DEPRECATION");
+}
diff --git a/shibsp/SPConfig.h b/shibsp/SPConfig.h
index b2ed199c..ecd34eb5 100644
--- a/shibsp/SPConfig.h
+++ b/shibsp/SPConfig.h
@@ -34,6 +34,8 @@
# include <shibsp/TransactionLog.h>
# include <saml/binding/MessageDecoder.h>
# include <saml/binding/MessageEncoder.h>
+#else
+# include <xmltooling/logging.h>
#endif
#include <xmltooling/PluginManager.h>
#include <xmltooling/QName.h>
@@ -317,6 +319,11 @@ namespace shibsp {
static bool shouldSignOrEncrypt(const char* setting, const char* endpoint, bool isUserAgentPresent);
#endif
+ /**
+ * Helper for deprecation warnings about an at-risk feature or setting.
+ */
+ xmltooling::logging::Category& deprecation() const;
+
protected:
/** Global ServiceProvider instance. */
ServiceProvider* m_serviceProvider;
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list