TIdSSLSocket
Implements a
socket connection for the SSL transport protocol.
TIdSSLSocket = class(TObject)
Unit
Description
TIdSSLSocket is a class that provides a
socket implementation that supports the Secure Socket Layer transport protocol. TIdSSLSocket allows both client and server SSL connections using an SSL context, as well as support for session identifiers and X.509 certificate files.
Description
X.509 certificate for a peer on the SSL
socket connection.
Description
PeerCert is a read-only
TIdX509 property that represents the X.509 certificate for a peer connection on the SSL
socket.
Creates and binds a new SSL
socket.
Parameters
const pHandle: TIdStackSocketHandle
Socket handle binding used for the new SSL
socket.
fSSLContext: TIdSSLContext
SSL context for the SSL
socket.
Description
Accept is a procedure that initializes an SSL
socket for the SSL context specified in fSSLContext, and binds the SSL
socket using the
socket handle in pHandle.
Creates and binds a new client SSL
socket.
Parameters
const pHandle: TIdStackSocketHandle
Socket handle binding for the SSL
socket.
fSSLContext: TIdSSLContext
SSL context for the SSL
socket.
Description
Connect is a procedure that initializes an SSL
socket for the client SSL context specified in fSSLContext, and binds the SSL
socket using the
socket handle in pHandle.
Constructor for the object instance.
constructor Create(Parent: TObject);
Parameters
Parent: TObject
Owner of the object instance.
Description
Create is the constructor for the object instance. Create assigns the Parent for the SSL
socket.
Frees an object instance.
destructor Destroy; override;
Description
Destroy is the destructor for the object instance. Destroy will
shutdown the SSL
socket prior to freeing and releasing the object instance. Destroy calls the inherited Destroy method.
SSL session identifier for the SSL
socket.
Description
GetSessionID is a
TByteArray function that returns SSL session identifier for the SSL
socket.
SSL session identifier in hexadecimal form.
function GetSessionIDAsString: String;
Description
GetSessionIDAsString is a String function that returns a string containing the hexadecimal representation of the SSL session identifier for the SSL
socket.
function Recv(var ABuf; ALen: integer): integer;
Description
function Send(var ABuf; ALen: integer): integer;
Description
SetCipherList is not currently implemented.
procedure SetCipherList(CipherList: String);
Description
SetCipherList is not currently implemented.