-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix net-v14.1.1.0-core github build failures (net-main -> v14.1.1.0-c…
…ore @111754) [git-p4: depot-paths = "//dev/release.net/coherence-net-v14.1.1.0-core/": change = 112081]
- Loading branch information
Showing
6 changed files
with
384 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
tests/Coherence.Core.Tests/Net/Ssl/CertificateValidatorNonWindows.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* | ||
* Copyright (c) 2024, Oracle and/or its affiliates. | ||
* | ||
* Licensed under the Universal Permissive License v 1.0 as shown at | ||
* https://oss.oracle.com/licenses/upl. | ||
*/ | ||
using System; | ||
using System.Net.Security; | ||
using System.Security.Cryptography.X509Certificates; | ||
using System.Text; | ||
|
||
namespace Tangosol.Net.Ssl | ||
{ | ||
public sealed class CertificateValidatorNonWindows | ||
{ | ||
public CertificateValidatorNonWindows() | ||
{ | ||
} | ||
|
||
/// <summary> | ||
/// Verifies the remote Secure Sockets Layer (SSL) certificate used for authentication. This callback | ||
/// ignores the content of the Common Name for the certificate during the validation. | ||
/// </summary> | ||
/// <param name="sender">An object that contains state information for this validation.</param> | ||
/// <param name="certificate">The certificate used to authenticate the remote party.</param> | ||
/// <param name="chain">The chain of certificate authorities associated with the remote certificate.</param> | ||
/// <param name="errors">One or more errors associated with the remote certificate.</param> | ||
/// <returns>A Boolean value that determines whether the specified certificate is accepted for authentication.</returns> | ||
public static bool IgnoreCommonNameCertificateValidation(object sender, X509Certificate certificate, | ||
X509Chain chain, SslPolicyErrors errors) | ||
{ | ||
return true; | ||
|
||
} | ||
} | ||
} |
Oops, something went wrong.