summaryrefslogtreecommitdiff
path: root/ACE/ace/SSL/SSL_Initializer.h
blob: d73c8f88aed5f6128e4dbf6abe567073486d74ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
// -*- C++ -*-

//=============================================================================
/**
 *  @file    SSL_Initializer.h
 *
 *  @author Vladimir Zykov <vz@prismtech.com>
 */
//=============================================================================

#ifndef ACE_SSL_INITIALIZER_H
#define ACE_SSL_INITIALIZER_H

#include /**/ "ace/pre.h"

#include "SSL_Export.h"

#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */

#include "ace/Service_Config.h"
#include "ace/Service_Object.h"

ACE_BEGIN_VERSIONED_NAMESPACE_DECL

class ACE_SSL_Export ACE_SSL_Initializer
  : public ACE_Service_Object
{
public:
  /// Used to force the initialization of ACE_SSL.
  static int static_init (void);

  /// Create ACE_SSL_Context singleton.
  virtual int init (int argc, ACE_TCHAR *argv[]);

  /// Do cleanup of SSL library.
  virtual int fini (void);
};

static int ACE_Force_ACE_SSL_Initializer = ACE_SSL_Initializer::static_init ();

ACE_END_VERSIONED_NAMESPACE_DECL

ACE_STATIC_SVC_DECLARE (ACE_SSL_Initializer)
ACE_FACTORY_DECLARE (ACE_SSL, ACE_SSL_Initializer)

#include /**/ "ace/post.h"

#endif  /* ACE_SSL_INITIALIZER_H */