3 //=============================================================================
5 * @file SSL_Initializer.h
7 * @author Vladimir Zykov <vz@prismtech.com>
9 //=============================================================================
11 #ifndef ACE_SSL_INITIALIZER_H
12 #define ACE_SSL_INITIALIZER_H
14 #include /**/ "ace/pre.h"
16 #include "SSL_Export.h"
18 #if !defined (ACE_LACKS_PRAGMA_ONCE)
20 #endif /* ACE_LACKS_PRAGMA_ONCE */
22 #include "ace/Service_Config.h"
23 #include "ace/Service_Object.h"
25 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
27 class ACE_SSL_Export ACE_SSL_Initializer
28 : public ACE_Service_Object
31 /// Used to force the initialization of ACE_SSL.
32 static int static_init ();
34 /// Create ACE_SSL_Context singleton.
35 virtual int init (int argc
, ACE_TCHAR
*argv
[]);
37 /// Do cleanup of SSL library.
41 static int ACE_Force_ACE_SSL_Initializer
= ACE_SSL_Initializer::static_init ();
43 ACE_END_VERSIONED_NAMESPACE_DECL
45 ACE_STATIC_SVC_DECLARE (ACE_SSL_Initializer
)
46 ACE_FACTORY_DECLARE (ACE_SSL
, ACE_SSL_Initializer
)
48 #include /**/ "ace/post.h"
50 #endif /* ACE_SSL_INITIALIZER_H */