Removed memory listener (for now), added deferred initialization of config.
authorcantor <cantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Mon, 2 Jan 2006 04:09:59 +0000 (04:09 +0000)
committercantor <cantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Mon, 2 Jan 2006 04:09:59 +0000 (04:09 +0000)
git-svn-id: https://svn.middleware.georgetown.edu/cpp-sp/trunk@1890 cb58f699-b61c-0410-a6fe-9272a202ed29

shib-target/shib-config.cpp

index 49c45f3..107cf8f 100644 (file)
@@ -42,7 +42,7 @@ namespace {
 PlugManager::Factory UnixListenerFactory;
 #endif
 PlugManager::Factory TCPListenerFactory;
-PlugManager::Factory MemoryListenerFactory;
+//PlugManager::Factory MemoryListenerFactory;
 PlugManager::Factory MemoryCacheFactory;
 PlugManager::Factory XMLRequestMapFactory;
 PlugManager::Factory ShibSessionInitiatorFactory;
@@ -134,7 +134,7 @@ bool STConfig::init(const char* schemadir)
     samlConf.getPlugMgr().regFactory(shibtarget::XML::UnixListenerType,&UnixListenerFactory);
 #endif
     samlConf.getPlugMgr().regFactory(shibtarget::XML::TCPListenerType,&TCPListenerFactory);
-    samlConf.getPlugMgr().regFactory(shibtarget::XML::MemoryListenerType,&MemoryListenerFactory);
+    //samlConf.getPlugMgr().regFactory(shibtarget::XML::MemoryListenerType,&MemoryListenerFactory);
     samlConf.getPlugMgr().regFactory(shibtarget::XML::MemorySessionCacheType,&MemoryCacheFactory);
     samlConf.getPlugMgr().regFactory(shibtarget::XML::LegacyRequestMapType,&XMLRequestMapFactory);
     samlConf.getPlugMgr().regFactory(shibtarget::XML::XMLRequestMapType,&XMLRequestMapFactory);
@@ -181,6 +181,7 @@ bool STConfig::load(const char* config)
         dummy->setAttributeNS(NULL,uri,src.get());
         m_ini=ShibTargetConfigFactory(dummy);
         dummydoc->release();
+        m_ini->init();
         
         pair<bool,unsigned int> skew=m_ini->getUnsignedInt("clockSkew");
         SAMLConfig::getConfig().clock_skew_secs=skew.first ? skew.second : 180;