Imap Object : Authenticate Event |
Visual Basic |
---|
Public Event Authenticate( _ ByVal RemoteCertificate As ICertificate, _ ByVal TrustedRoot As Boolean, _ ByVal ValidDate As Boolean, _ ByVal ValidSignature As Boolean, _ ByRef Valid As Boolean _ ) |
Private Sub SecureTcp1_Authenticate(RemoteCertificate As Certificate, TrustedRoot As Boolean, ValidDate As Boolean, ValidSignature As Boolean, ByRef Valid As Boolean) On Error GoTo OnError ' use intrinsic error handling If RemoteCertificate.IssuedTo <> gRemoteHostName Then Valid = False Exit Sub OnError: ' Any error jumps here Debug.Print "Error #" + CStr(Err.Number) + ": " + Err.Description End Sub