Delegate AcceptCertificateDelegate
Delegate definition for a function that a SIPTLSChannel user can provide to determine whether or not to allow a connection given a client's X.509 certificate.
Namespace: SipLib.Channels
Assembly: SipLib.dll
Syntax
public delegate bool AcceptCertificateDelegate(X509Certificate? certificate, X509Chain? chain, SslPolicyErrors? sslPolicyErrors)
Parameters
Type | Name | Description |
---|---|---|
X509Certificate | certificate | X509Certificated object that was received from the TLS client or TLS server during the connection handshake process. May be null if the client did not provide a certificate. |
X509Chain | chain | Certificate chain for the X.509 certificate that was received. May be null if an X.509 client certificate was not sent. |
SslPolicyErrors? | sslPolicyErrors | Contains the SSL (TLS) policy errors that were detected by the underlying OS for the certificate that was received. May be null if qn X.509 certificate was not sent. |
Returns
Type | Description |
---|---|
bool | Return true to accept the connection request or false to reject the connection request. |