1 /*
2  * Portions of this file Copyright 1999-2005 University of Chicago
3  * Portions of this file Copyright 1999-2005 The University of Southern California.
4  *
5  * This file or a portion of this file is licensed under the
6  * terms of the Globus Toolkit Public License, found at
7  * http://www.globus.org/toolkit/download/license.html.
8  * If you redistribute this file, with or without
9  * modifications, you must include this notice in the file.
10  */
11
12
13 #include "globus_i_ws_security.h"
14 #include "globus_openssl.h"
15 #include "version.h"
16
17 0 GlobusDebugDefine(GLOBUS_WS_SECURITY);
18
19 static
20 int
21 globus_l_ws_security_activate();
22
23 static
24 int
25 globus_l_ws_security_deactivate();
26
27 globus_module_descriptor_t
28 globus_i_ws_security_module =
29 {
30     "globus_ws_security_module",
31     globus_l_ws_security_activate,
32     globus_l_ws_security_deactivate,
33     NULL,
34     NULL,
35     &local_version
36 };
37
38 static
39 int
40 globus_l_ws_security_activate()
41 {
42 0     int                                 rc = 0;
43 0     GlobusFuncName(globus_l_ws_security_activate);
44
45 0     rc = globus_module_activate(GLOBUS_COMMON_MODULE);
46 0     if(rc != GLOBUS_SUCCESS)
47     {
48 0         return rc;
49     }
50
51 0     GlobusDebugInit(GLOBUS_WS_SECURITY,
52                     PKIPATH INFO DEBUG TRACE WARN);
53 0     GlobusWSSecurityDebugEnter();
54
55 0     rc = globus_module_activate(GLOBUS_OPENSSL_MODULE);
56
57 0     return rc;
58 }
59
60 static
61 int
62 globus_l_ws_security_deactivate()
63 0 {
64 0     int                                 rc = 0;
65 0     GlobusFuncName(globus_l_ws_security_deactivate);
66 0     GlobusWSSecurityDebugEnter();
67
68 0     rc = globus_module_deactivate(GLOBUS_COMMON_MODULE);
69 0     if(rc != GLOBUS_SUCCESS)
70     {
71 0         return rc;
72     }
73
74 0     return GLOBUS_SUCCESS;