Added refresh setting.
authorScott Cantor <cantor.2@osu.edu>
Thu, 20 Feb 2003 00:26:39 +0000 (00:26 +0000)
committerScott Cantor <cantor.2@osu.edu>
Thu, 20 Feb 2003 00:26:39 +0000 (00:26 +0000)
shib-target/shib-config.cpp
shib-target/shib-target.h

index f175d7b..a0e9397 100644 (file)
@@ -162,6 +162,15 @@ STConfig::STConfig(const char* app_name, const char* inifile)
     log.crit ("Can not read the x509 certificate.");
     throw;
   }
+  
+  try {
+    if (ini->get_tag (app, SHIBTARGET_TAG_SITESREFRESH, true, &tag)) {
+      shibConf.mapperRefreshInterval = atoi(tag.c_str());
+    }
+  } catch (...) {
+    log.crit ("Can not read the mapper refresh interval.");
+    throw;
+  }  
 
   try { 
     if (!shibConf.init()) {
index 9ce7b3c..703ec9c 100644 (file)
@@ -94,6 +94,7 @@ void shib_sock_close (ShibSocket s, ShibSockName name);
 
 #define SHIBTARGET_TAG_SITES   "sitesFile"
 #define SHIBTARGET_TAG_SITESCERT "sitesCertFile"
+#define SHIBTARGET_TAG_SITESREFRESH "sitesRefresh"
 
 /* initialize and finalize the target library (return 0 on success, 1 on failure) */
 int shib_target_initialize (const char* application, const char* ini_file);