Classe TSSLCryptLib

Unit

Declaração

type TSSLCryptLib = class(TCustomSSL)

Descrição

class implementing CryptLib SSL/SSH plugin.

Instance of this class will be created for each TTCPBlockSocket. You not need to create instance of this class, all is done by Synapse itself!

Hierarquia

Visão Geral

Campos

Protected FCryptSession: CRYPT_SESSION;
Protected FPrivateKeyLabel: string;
Protected FDelCert: Boolean;
Protected FReadBuffer: string;
Protected FTrustedCAs: array of integer;

Métodos

Protected function SSLCheck(Value: integer): Boolean;
Protected function Init(server:Boolean): Boolean;
Protected function DeInit: Boolean;
Protected function Prepare(server:Boolean): Boolean;
Protected function GetString(const cryptHandle: CRYPT_HANDLE; const attributeType: CRYPT_ATTRIBUTE_TYPE): string;
Protected function CreateSelfSignedCert(Host: string): Boolean; override;
Protected function PopAll: string;
Public constructor Create(const Value: TTCPBlockSocket); override;
Public destructor Destroy; override;
Public procedure SetCertCAFile(const Value: string); override;
Public function LibVersion: String; override;
Public function LibName: String; override;
Public procedure Assign(const Value: TCustomSSL); override;
Public function Connect: boolean; override;
Public function Accept: boolean; override;
Public function Shutdown: boolean; override;
Public function BiShutdown: boolean; override;
Public function SendBuffer(Buffer: TMemory; Len: Integer): Integer; override;
Public function RecvBuffer(Buffer: TMemory; Len: Integer): Integer; override;
Public function WaitingData: Integer; override;
Public function GetSSLVersion: string; override;
Public function GetPeerSubject: string; override;
Public function GetPeerIssuer: string; override;
Public function GetPeerName: string; override;
Public function GetPeerFingerprint: ansistring; override;
Public function GetVerifyCert: integer; override;

Propriedades

Published property PrivateKeyLabel: string read FPrivateKeyLabel Write FPrivateKeyLabel;

Descrição

Campos

Protected FCryptSession: CRYPT_SESSION;
 
Protected FPrivateKeyLabel: string;
 
Protected FDelCert: Boolean;
 
Protected FReadBuffer: string;
 
Protected FTrustedCAs: array of integer;
 

Métodos

Protected function SSLCheck(Value: integer): Boolean;
 
Protected function Init(server:Boolean): Boolean;
 
Protected function DeInit: Boolean;
 
Protected function Prepare(server:Boolean): Boolean;
 
Protected function GetString(const cryptHandle: CRYPT_HANDLE; const attributeType: CRYPT_ATTRIBUTE_TYPE): string;
 
Protected function CreateSelfSignedCert(Host: string): Boolean; override;
 
Protected function PopAll: string;
 
Public constructor Create(const Value: TTCPBlockSocket); override;

See TCustomSSL.Create

Public destructor Destroy; override;
 
Public procedure SetCertCAFile(const Value: string); override;

Load trusted CA's in PEM format

Public function LibVersion: String; override;

See TCustomSSL.LibVersion

Public function LibName: String; override;

See TCustomSSL.LibName

Public procedure Assign(const Value: TCustomSSL); override;

See TCustomSSL.Assign

Public function Connect: boolean; override;

See TCustomSSL.Connect and ssl_cryptlib for more details.

Public function Accept: boolean; override;

See TCustomSSL.Accept and ssl_cryptlib for more details.

Public function Shutdown: boolean; override;

See TCustomSSL.Shutdown

Public function BiShutdown: boolean; override;

See TCustomSSL.BiShutdown

Public function SendBuffer(Buffer: TMemory; Len: Integer): Integer; override;

See TCustomSSL.SendBuffer

Public function RecvBuffer(Buffer: TMemory; Len: Integer): Integer; override;

See TCustomSSL.RecvBuffer

Public function WaitingData: Integer; override;

See TCustomSSL.WaitingData

Public function GetSSLVersion: string; override;

See TCustomSSL.GetSSLVersion

Public function GetPeerSubject: string; override;

See TCustomSSL.GetPeerSubject

Public function GetPeerIssuer: string; override;

See TCustomSSL.GetPeerIssuer

Public function GetPeerName: string; override;

See TCustomSSL.GetPeerName

Public function GetPeerFingerprint: ansistring; override;

See TCustomSSL.GetPeerFingerprint

Public function GetVerifyCert: integer; override;

See TCustomSSL.GetVerifyCert

Propriedades

Published property PrivateKeyLabel: string read FPrivateKeyLabel Write FPrivateKeyLabel;

name of certificate/key within PKCS#15 file. It can hold more then one certificate/key and each certificate/key must have unique label within one file.


Gerado por PasDoc 0.16.0.