Mentalis.org Security Library documentation

CertRequestEventHandler Delegate

References the method to be called when the SecureSocket receives a Certificate request from the peer.

[Visual Basic]
Public Delegate Sub CertRequestEventHandler( _
   ByVal socket As SecureSocket, _
   ByVal acceptable As DistinguishedNameList, _
   ByVal e As RequestEventArgs _
)
[C#]
public delegate void CertRequestEventHandler(
   SecureSocket socket,
   DistinguishedNameList acceptable,
   RequestEventArgs e
);

Parameters

socket
The SecureSocket that received the certificate request.
acceptable
An instance of the DistinguishedNameList class that contains a list of relative distinguished names. If the client chooses to send a certificate to the remote server, the CA that signed this certificate should be in the list of distinguished names.
e
A RequestEventArgs instance used to pass the certificate to the SecureSocket.

Remarks

This delegate is only used by client sockets

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