2 * Copyright 2001-2005 Internet2
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 #include "../shib-target/shib-target.h"
18 #include "../shib-target/shib-paths.h"
22 using namespace shibboleth;
23 using namespace shibtarget;
25 ShibTargetConfig* g_Config = NULL;
36 g_Config=&ShibTargetConfig::getConfig();
37 g_Config->setFeatures(
38 ShibTargetConfig::Listener |
39 ShibTargetConfig::Metadata |
40 ShibTargetConfig::AAP |
41 ShibTargetConfig::RequestMapper |
42 ShibTargetConfig::LocalExtensions
45 if (!g_Config->init(SHIB_SCHEMAS) || !g_Config->load(SHIB_CONFIG)) {
46 cerr << "init() failed to initialize SHIB Target" << endl;
51 cerr << "init() failed to initialize SHIB Target" << endl;
56 int main(int argc, char* argv[])
58 cout << "Running init 1.." << endl;
60 cout << "Running shutdown 1.." << endl;
62 cout << "Running init 2.." << endl;
64 cout << "Running shutdown 2.." << endl;
66 cout << "Done." << endl;