Class TgoOpenSSL

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TgoOpenSSL = class(TObject)

Description

OpenSSL protocol handler

Hierarchy

  • TObject
  • TgoOpenSSL

Overview

Methods

Public constructor Create;
Public destructor Destroy; override;
Public function Connect(const AALPN: Boolean = False): Boolean;
Public procedure Release;
Public procedure Read(const ABuffer: Pointer = nil; const ASize: Integer = 0);
Public function Write(const ABuffer: Pointer; const ASize: Integer): Boolean;
Public function ALPN: Boolean;

Properties

Public property Certificate: TBytes read FCertificate write FCertificate;
Public property PrivateKey: TBytes read FPrivateKey write FPrivateKey;
Public property Password: UnicodeString read FPassword write FPassword;
Public property OnConnected: TgoOpenSSLNotify read FOnConnected write FOnConnected;
Public property OnRead: TgoOpenSSLData read FOnRead write FOnRead;
Public property OnWrite: TgoOpenSSLData read FOnWrite write FOnWrite;

Description

Methods

Public constructor Create;
 
Public destructor Destroy; override;
 
Public function Connect(const AALPN: Boolean = False): Boolean;

Start SSL connect handshake

Public procedure Release;

Free SSL related objects

Public procedure Read(const ABuffer: Pointer = nil; const ASize: Integer = 0);

Do SSL read from socket

Public function Write(const ABuffer: Pointer; const ASize: Integer): Boolean;

Do SSL write to socket

Public function ALPN: Boolean;

Returns True if ALPN is negotiated

Properties

Public property Certificate: TBytes read FCertificate write FCertificate;

Certificate in PEM format

Public property PrivateKey: TBytes read FPrivateKey write FPrivateKey;

Private key in PEM format

Public property Password: UnicodeString read FPassword write FPassword;

Password for private key

Public property OnConnected: TgoOpenSSLNotify read FOnConnected write FOnConnected;

Fired when the SSL connection is established

Public property OnRead: TgoOpenSSLData read FOnRead write FOnRead;

Fired when decrypted SSL data is ready to be read

Public property OnWrite: TgoOpenSSLData read FOnWrite write FOnWrite;

Fired when encrypted SSL data is ready to be sent


Generated by P2PasDoc 0.13.0 on 2017-04-25 12:54:26