[cpp-sp] 02/02: Add a start call to IIS module initialization
Rod Widdowson
rdw at steadingsoftware.com
Mon Apr 28 14:52:54 UTC 2025
This is an automated email from the git hooks/post-receive script.
rdw 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=8dc2b85476ecf755f3fb124dfad93e799f4dc495
commit 8dc2b85476ecf755f3fb124dfad93e799f4dc495
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Mon Apr 28 15:01:51 2025 +0100
Add a start call to IIS module initialization
---
iis7_shib/register.cpp | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/iis7_shib/register.cpp b/iis7_shib/register.cpp
index d3d425fb..51d576b6 100644
--- a/iis7_shib/register.cpp
+++ b/iis7_shib/register.cpp
@@ -98,6 +98,21 @@ RegisterModule(
return E_FAIL;
}
+
+ try {
+ if (!g_Config->start())
+ throw runtime_error("unknown error");
+ }
+ catch (const std::exception& ex) {
+ HANDLE eventSource = ::RegisterEventSourceA(NULL, SHIB_EVENT_SOURCE_NAME);
+ const char* msgs[3]{ "II7 Initialization" ,"IIS module failed during library initialization", ex.what() };
+ ::ReportEventA(eventSource, EVENTLOG_ERROR_TYPE, (WORD)SHIBSP_CATEGORY_CRIT, SHIBSP_LOG_CRIT, NULL, 3, 0, msgs, NULL);
+ ::DeregisterEventSource(eventSource);
+ g_Config->term();
+ g_Config = nullptr;
+ return E_FAIL;
+ }
+
Category& log = Category::getInstance(SHIBSP_LOGCAT ".IIS");
// Access implementation-specifics and create site mappings.
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list