Datasnap.DSHTTPClient.TDSHTTP.OnValidatePeerCertificateErr

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: event
Visibility: public
Source:
Datasnap.DSHTTPClient.pas
Datasnap.DSHTTPClient.hpp
Unit: Datasnap.DSHTTPClient
Parent: TDSHTTP

Delphi

property OnValidatePeerCertificateErr: TValidateCertificateErr read FOnValidatePeerCertificateErr

C++

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

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