|
|
|
|
@ -150,15 +150,21 @@ namespace WebSocketSharp.Net
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the callback used to validate the certificate supplied by the server.
|
|
|
|
|
/// Gets or sets the callback used to validate the certificate
|
|
|
|
|
/// supplied by the server.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <remarks>
|
|
|
|
|
/// If this callback returns <c>true</c>, the server certificate will be valid.
|
|
|
|
|
/// The certificate is valid if the callback returns <c>true</c>.
|
|
|
|
|
/// </remarks>
|
|
|
|
|
/// <value>
|
|
|
|
|
/// A <see cref="RemoteCertificateValidationCallback"/> delegate that references the method
|
|
|
|
|
/// used to validate the server certificate. The default value is a function that only returns
|
|
|
|
|
/// <c>true</c>.
|
|
|
|
|
/// <para>
|
|
|
|
|
/// A <see cref="RemoteCertificateValidationCallback"/> delegate that
|
|
|
|
|
/// invokes the method called for validating the certificate.
|
|
|
|
|
/// </para>
|
|
|
|
|
/// <para>
|
|
|
|
|
/// The default value is a delegate that invokes a method that
|
|
|
|
|
/// only returns <c>true</c>.
|
|
|
|
|
/// </para>
|
|
|
|
|
/// </value>
|
|
|
|
|
public RemoteCertificateValidationCallback ServerCertificateValidationCallback {
|
|
|
|
|
get {
|
|
|
|
|
|