Config changes.
authorcantor <cantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Tue, 10 Sep 2002 14:29:22 +0000 (14:29 +0000)
committercantor <cantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Tue, 10 Sep 2002 14:29:22 +0000 (14:29 +0000)
git-svn-id: https://svn.middleware.georgetown.edu/cpp-sp/trunk@67 cb58f699-b61c-0410-a6fe-9272a202ed29

shibtest/shibtest.cpp

index 5a22c76..3970c16 100644 (file)
@@ -93,8 +93,8 @@ DummyMapper::~DummyMapper()
 int main(int argc,char* argv[])
 {
     DummyMapper mapper;
-    SAMLConfig conf1;
-    ShibConfig conf2;
+    SAMLConfig& conf1=SAMLConfig::getConfig();
+    ShibConfig& conf2=ShibConfig::getConfig();
     char* h_param=NULL;
     char* q_param=NULL;
     char* url_param=NULL;
@@ -122,18 +122,17 @@ int main(int argc,char* argv[])
     }
 
     conf1.schema_dir=path;
-    conf1.bVerbose=true;
-    if (!SAMLConfig::init(&conf1))
+    if (!conf1.init())
         cerr << "unable to initialize SAML runtime" << endl;
 
     conf2.origin_mapper=&mapper;
-    if (!ShibConfig::init(&conf2))
+    if (!conf2.init())
         cerr << "unable to initialize Shibboleth runtime" << endl;
 
 #ifdef WIN32
-    SAMLConfig::getConfig()->saml_register_extension("eduPerson.dll");
+    conf1.saml_register_extension("eduPerson.dll");
 #else
-    SAMLConfig::getConfig()->saml_register_extension("libeduPerson.so");
+    conf1.saml_register_extension("libeduPerson.so");
 #endif
 
     try
@@ -212,7 +211,7 @@ int main(int argc,char* argv[])
         cerr << "caught an unknown exception" << endl;
     }*/
 
-    ShibConfig::term();
-    SAMLConfig::term();
+    conf2.term();
+    conf1.term();
     return 0;
 }