Skip to content

Commit

Permalink
Temporary workaround to get artifacts downloading on old build agents…
Browse files Browse the repository at this point in the history
… until they are upgraded.
  • Loading branch information
UnityAlex committed Apr 19, 2021
1 parent ec64e77 commit e3979d9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mcs/class/System/Mono.Btls/MonoBtlsProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,12 @@ internal override bool ValidateCertificate (
X509CertificateCollection certificates, bool wantsChain, ref X509Chain chain,
ref SslPolicyErrors errors, ref int status11)
{
// Super ugly hack to make things work on Unity build servers
// FIXME: REMOVE THIS WHEN AGENTS RUN NEWER LINUX
if (Environment.OSVersion.Platform == PlatformID.Unix
&& Environment.GetEnvironmentVariable ("UNITY_THISISABUILDMACHINE") != null)
return true;

if (chain != null) {
var chainImpl = (X509ChainImplBtls)chain.Impl;
var success = chainImpl.StoreCtx.VerifyResult == 1;
Expand Down

0 comments on commit e3979d9

Please sign in to comment.