1 /*
2 * Copyright 1999-2006 University of Chicago
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 #include "globus_i_ws_security.h"
19 #include "globus_openssl.h"
20 #include "version.h"
21
22 0 GlobusDebugDefine(GLOBUS_WS_SECURITY);
23
24 static
25 int
26 globus_l_ws_security_activate();
27
28 static
29 int
30 globus_l_ws_security_deactivate();
31
32 globus_module_descriptor_t
33 globus_i_ws_security_module =
34 {
35 "globus_ws_security_module",
36 globus_l_ws_security_activate,
37 globus_l_ws_security_deactivate,
38 NULL,
39 NULL,
40 &local_version
41 };
42
43 static
44 int
45 globus_l_ws_security_activate()
46 0 {
47 0 int rc = 0;
48 GlobusFuncName(globus_l_ws_security_activate);
49
50 0 rc = globus_module_activate(GLOBUS_COMMON_MODULE);
51 0 if(rc != GLOBUS_SUCCESS)
52 {
53 0 return rc;
54 }
55
56 0 GlobusDebugInit(GLOBUS_WS_SECURITY,
57 PKIPATH INFO DEBUG TRACE WARN);
58 0 GlobusWSSecurityDebugEnter();
59
60 0 rc = globus_module_activate(GLOBUS_OPENSSL_MODULE);
61
62 0 return rc;
63 }
64
65 static
66 int
67 globus_l_ws_security_deactivate()
68 0 {
69 0 int rc = 0;
70 GlobusFuncName(globus_l_ws_security_deactivate);
71 0 GlobusWSSecurityDebugEnter();
72
73 0 rc = globus_module_deactivate(GLOBUS_COMMON_MODULE);
74 0 if(rc != GLOBUS_SUCCESS)
75 {
76 0 return rc;
77 }
78
79 0 return GLOBUS_SUCCESS;