TSDuck v3.43-4441
MPEG Transport Stream Toolkit
Loading...
Searching...
No Matches
ts::OpenSSL::Controlled Class Referenceabstract

Base class for objects which must be terminated with OpenSSL. More...

#include <tsOpenSSL.h>

Inheritance diagram for ts::OpenSSL::Controlled:

Public Member Functions

 Controlled ()
 Constructor.
 
virtual ~Controlled ()
 Destructor.
 
virtual void terminate ()=0
 This method terminates anything about OpenSSL which must be cleaned up.
 

Detailed Description

Base class for objects which must be terminated with OpenSSL.

When the application terminates, OpenSSL does its own cleanup. After this cleanup, no OpenSSL operation is possible. I can lead to crashes. A class which uses OpenSSL shall terminate all its processing no later than the OpenSSL cleanup. This is enforced by this base class.

Member Function Documentation

◆ terminate()

virtual void ts::OpenSSL::Controlled::terminate ( )
pure virtual

This method terminates anything about OpenSSL which must be cleaned up.

This method must be idempotent and must be called in the subclass destructor.

Implemented in ts::OpenSSL::Providers.


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