GitHub Actions: Try MSVC builds with /std:c++17 and 20
[ACE_TAO.git] / ACE / ace / SSL / SSL_Initializer.cpp
blobd1b82afd359c2ba8e4c60eb9dbbc279c5676439a
1 #include "SSL_Initializer.h"
2 #include "SSL_Context.h"
4 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
6 int
7 ACE_SSL_Initializer::static_init (void)
9 ACE_Service_Config::process_directive (ace_svc_desc_ACE_SSL_Initializer);
10 return 0;
13 int
14 ACE_SSL_Initializer::init (int, ACE_TCHAR *[])
16 // Initialize ACE_SSL_Context singleton.
17 ACE_SSL_Context * ssl_ctx = ACE_SSL_Context::instance ();
18 ACE_ASSERT (ssl_ctx != 0);
19 ACE_UNUSED_ARG (ssl_ctx);
21 return 0;
24 int
25 ACE_SSL_Initializer::fini (void)
27 // Explicitly close the ACE_SSL_Context singleton.
28 ACE_SSL_Context::close ();
30 return 0;
33 ACE_END_VERSIONED_NAMESPACE_DECL
35 ACE_STATIC_SVC_DEFINE (ACE_SSL_Initializer,
36 ACE_TEXT ("ACE_SSL_Initializer"),
37 ACE_SVC_OBJ_T,
38 &ACE_SVC_NAME (ACE_SSL_Initializer),
39 ACE_Service_Type::DELETE_THIS |
40 ACE_Service_Type::DELETE_OBJ,
42 ACE_FACTORY_DEFINE (ACE_SSL, ACE_SSL_Initializer)