Home > Language Reference > Classes > SslContext

Verify Event

Event sent when an error occurs while checking the certificat.

Syntax

Public Event Verify(ByRef bIgnore As Boolean, ByVal eCode As HbSslVerify)

ParameterDescription
bIgnoreSet this parameter to True to instruct the SSL library to ignore the error.
eCodeA code specifying the exact reason of the failure.

Remarks

The Verify event may be sent by the Connect method of the StreamSocket object while negociating the SSL connection, if the server provides an invalid certificat. The eCode parameter can be used to determine the exact reason of the failure, as shown in the table below:

ConstantValue
hbSslVerifyBadSignature&H3980
hbSslVerifyNoTrustedRoot&H3981
hbSslVerifyNotAfter&H3982
hbSslVerifyNotBefore&H3983
hbSslVerifyConstraintViolation&H3984
hbSslVerifyUnknownExtension&H3985

You can instruct the SSL library to ignore the error and to accept the invalid certificat by setting the bIgnore parameter to True when handling this event.

System requirements

SystemMinimal versionRemarks
Palm OSPalm OS 5.0N/A