Mentalis.org Security Library documentation

CertVerifyEventHandler Delegate

References the method to be called when the remote certificate should be verified.

[Visual Basic]
Public Delegate Sub CertVerifyEventHandler( _
   ByVal socket As SecureSocket, _
   ByVal remote As Certificate, _
   ByVal chain As CertificateChain, _
   ByVal e As VerifyEventArgs _
)
[C#]
public delegate void CertVerifyEventHandler(
   SecureSocket socket,
   Certificate remote,
   CertificateChain chain,
   VerifyEventArgs e
);

Parameters

socket
The SecureSocket that received the certificate to verify.
remote
The Certificate of the remote party to verify.
chain
The CertificateChain associated with the remote certificate.
e
A VerifyEventArgs instance used to (in)validate the certificate.

Remarks

If an error is thrown by the code in the delegate, the SecureSocket will close the connection.

Requirements

Namespace: Org.Mentalis.Security.Ssl Namespace

Assembly: Org.Mentalis.Security.dll

See Also

Org.Mentalis.Security.Ssl Namespace