Ark Server API (ASE) - Wiki
Loading...
Searching...
No Matches
Poco::Crypto::OpenSSLInitializer Class Reference

#include <OpenSSLInitializer.h>

+ Collaboration diagram for Poco::Crypto::OpenSSLInitializer:

Public Member Functions

 OpenSSLInitializer ()
 
 ~OpenSSLInitializer ()
 Automatically initialize OpenSSL on startup.
 

Static Public Member Functions

static void initialize ()
 Automatically shut down OpenSSL on exit.
 
static void uninitialize ()
 Initializes the OpenSSL machinery.
 
static bool isFIPSEnabled ()
 Shuts down the OpenSSL machinery.
 
static void enableFIPSMode (bool enabled)
 

Protected Types

enum  { SEEDSIZE = 256 }
 

Static Protected Member Functions

static void lock (int mode, int n, const char *file, int line)
 
static unsigned long id ()
 
static struct CRYPTO_dynlock_valuedynlockCreate (const char *file, int line)
 
static void dynlock (int mode, struct CRYPTO_dynlock_value *lock, const char *file, int line)
 
static void dynlockDestroy (struct CRYPTO_dynlock_value *lock, const char *file, int line)
 

Static Private Attributes

static Poco::FastMutex_mutexes
 
static Poco::AtomicCounter _rc
 

Detailed Description

Initalizes the OpenSSL library.

The class ensures the earliest initialization and the
latest shutdown of the OpenSSL library. 

Definition at line 44 of file OpenSSLInitializer.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
protected
Enumerator
SEEDSIZE 

Definition at line 70 of file OpenSSLInitializer.h.

Constructor & Destructor Documentation

◆ OpenSSLInitializer()

Poco::Crypto::OpenSSLInitializer::OpenSSLInitializer ( )

◆ ~OpenSSLInitializer()

Poco::Crypto::OpenSSLInitializer::~OpenSSLInitializer ( )

Automatically initialize OpenSSL on startup.

Member Function Documentation

◆ dynlock()

static void Poco::Crypto::OpenSSLInitializer::dynlock ( int mode,
struct CRYPTO_dynlock_value * lock,
const char * file,
int line )
staticprotected

◆ dynlockCreate()

static struct CRYPTO_dynlock_value * Poco::Crypto::OpenSSLInitializer::dynlockCreate ( const char * file,
int line )
staticprotected

◆ dynlockDestroy()

static void Poco::Crypto::OpenSSLInitializer::dynlockDestroy ( struct CRYPTO_dynlock_value * lock,
const char * file,
int line )
staticprotected

◆ enableFIPSMode()

void Poco::Crypto::OpenSSLInitializer::enableFIPSMode ( bool enabled)
inlinestatic

Definition at line 106 of file OpenSSLInitializer.h.

◆ id()

static unsigned long Poco::Crypto::OpenSSLInitializer::id ( )
staticprotected

◆ initialize()

static void Poco::Crypto::OpenSSLInitializer::initialize ( )
static

Automatically shut down OpenSSL on exit.

◆ isFIPSEnabled()

bool Poco::Crypto::OpenSSLInitializer::isFIPSEnabled ( )
inlinestatic

Shuts down the OpenSSL machinery.

Definition at line 91 of file OpenSSLInitializer.h.

◆ lock()

static void Poco::Crypto::OpenSSLInitializer::lock ( int mode,
int n,
const char * file,
int line )
staticprotected

◆ uninitialize()

static void Poco::Crypto::OpenSSLInitializer::uninitialize ( )
static

Initializes the OpenSSL machinery.

Member Data Documentation

◆ _mutexes

Poco::FastMutex* Poco::Crypto::OpenSSLInitializer::_mutexes
staticprivate

Definition at line 83 of file OpenSSLInitializer.h.

◆ _rc

Poco::AtomicCounter Poco::Crypto::OpenSSLInitializer::_rc
staticprivate

Definition at line 84 of file OpenSSLInitializer.h.


The documentation for this class was generated from the following file: