Initial Win32 project
[shibboleth/sp.git] / shib / ShibConfig.cpp
1 /* ShibConfig.cpp - Shibboleth runtime configuration
2
3    Scott Cantor
4    6/4/02
5
6    $History:$
7 */
8
9 #ifdef WIN32
10 # define SHIB_EXPORTS __declspec(dllexport)
11 #endif
12
13 #include <shib.h>
14 using namespace shibboleth;
15
16 // This is currently *NOT* threadsafe code.
17
18 const ShibConfig* ShibConfig::g_config=NULL;
19
20 bool ShibConfig::init(ShibConfig* pconfig)
21 {
22     if (!pconfig)
23         return false;
24     g_config=pconfig;
25
26     // Register extension schema.
27     saml::XML::registerSchema(XML::SHIB_NS,XML::SHIB_SCHEMA_ID);
28
29     return true;
30 }
31
32 void ShibConfig::term()
33 {
34 }
35
36 const ShibConfig* ShibConfig::getConfig()
37 {
38     return g_config;
39 }