Datasnap.DSHTTPClient.TDSHTTP.OnValidatePeerCertificateErr

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnValidatePeerCertificateErr: TValidateCertificateErr read FOnValidatePeerCertificateErr  write FOnValidatePeerCertificateErr;

C++

__property Data::Dbxcommon::TValidateCertificateErr OnValidatePeerCertificateErr = {read=FOnValidatePeerCertificateErr, write=FOnValidatePeerCertificateErr};

Properties

Type Visibility Source Unit Parent
event public
Datasnap.DSHTTPClient.pas
Datasnap.DSHTTPClient.hpp
Datasnap.DSHTTPClient TDSHTTP

Description

Occurs when an error arises while validating the peer SSL certificate.

Use the OnValidatePeerCertificateErr event to manage peer certificate errors that require user validation.

The event handler of OnValidatePeerCertificateErr receives the following parameters:

  • Owner: object that invokes the callback.
  • Certificate: X.509 certificate.
  • ADepth: Number of certificates to be validated.
  • AError: Error number reported by the server.
  • Ok: True if the certificate is valid, False otherwise.

See Also