Initial check-in.
[shibboleth/resolver.git] / shibresolver / resolver.cpp
1 /*
2  *  Copyright 2010 JANET(UK)
3  *
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
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  */
16
17 /**
18  * resolver.cpp
19  *
20  * An embeddable component interface to Shibboleth SP attribute processing.
21  */
22
23 #include "internal.h"
24
25 using namespace shibsp;
26 #ifndef SHIBSP_LITE
27 using namespace opensaml;
28 #endif
29 using namespace xmltooling;
30 using namespace std;
31
32 extern "C" int SHIBRESOLVER_EXPORTS xmltooling_extension_init(void*)
33 {
34     // Register factory functions with appropriate plugin managers in the XMLTooling/SAML/SPConfig objects.
35     return 0;   // signal success
36 }
37
38 extern "C" void SHIBRESOLVER_EXPORTS xmltooling_extension_term()
39 {
40     // Factories normally get unregistered during library shutdown, so no work usually required here.
41 }