TSDuck v3.43-4441
MPEG Transport Stream Toolkit
Loading...
Searching...
No Matches
ts::CertStoreRepository Class Reference

Repository of Windows certificate stores. More...

#include <tsWinTLS.h>

Public Member Functions

 ~CertStoreRepository ()
 Destructor: close opened stores.
 
::HCERTSTORE getStore (const UString &store_name, Report &report)
 Get or open a certificate store.
 

Static Public Member Functions

static CertStoreRepositoryInstance ()
 Get the instance of the singleton of this class.
 

Detailed Description

Repository of Windows certificate stores.

The certificate stores must remain open all the time, once open. They are closed on termination of the singleton.

Member Function Documentation

◆ Instance()

static CertStoreRepository & ts::CertStoreRepository::Instance ( )
static

Get the instance of the singleton of this class.

Returns
The instance of the singleton of this class.

◆ getStore()

::HCERTSTORE ts::CertStoreRepository::getStore ( const UString store_name,
Report report 
)

Get or open a certificate store.

Parameters
[in]store_nameName of certificate store. One of "system", "user".
[in,out]reportWhere to report errors.
Returns
A handle to the certificate store or nullptr on error. Do not close it, will be done by singleton destructor.

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