Class TTrustedCerts
Unit
SChannel.Utils
Declaration
type TTrustedCerts = class(TObject)
Description
App-local storage of trusted certs. MT-safe.
Hierarchy
Overview
Methods
 |
constructor Create; |
 |
destructor Destroy; override; |
 |
procedure Add(const Host: string; const Data: TBytes); |
 |
function Contains(const Host: string): Boolean; overload; |
 |
function Contains(const Host: string; pData: Pointer; DataLen: Integer): Boolean; overload; |
 |
function Contains(const Host: string; const Data: TBytes): Boolean; overload; |
 |
procedure Clear; |
Description
Methods
 |
constructor Create; |
|
 |
destructor Destroy; override; |
|
 |
procedure Add(const Host: string; const Data: TBytes); |
Add a cert to list.
Parameters
- Host
- - cert host. If empty, cert is considered global
- Data
- - cert data
|
 |
function Contains(const Host: string): Boolean; overload; |
Check if there PROBABLY is a cert in trusted list for the host (i.e., there's at least one trusted cert either global or host-personal.
Parameters
- Host
- - cert host. If empty, cert is considered global
Returns
True if there's a cert for the host
|
 |
function Contains(const Host: string; pData: Pointer; DataLen: Integer): Boolean; overload; |
Check if provided cert is in trusted list. Looks for both host-personal and global certs.
Parameters
- Host
- - cert host. If empty, cert is considered global
- pData
- - cert data
- DataLen
- - length of cert data
Returns
True if cert is found
|
 |
function Contains(const Host: string; const Data: TBytes): Boolean; overload; |
Check if provided cert is in trusted list. TBytes variant.
Parameters
- Host
- - cert host. If empty, search is performed over all list
- Data
- - cert data
Returns
True if cert is found
|
 |
procedure Clear; |
Empty the list
|
Generated by PasDoc 0.16.0.