Skip to content

Commit e3979d9

Browse files
committed
Temporary workaround to get artifacts downloading on old build agents until they are upgraded.
1 parent ec64e77 commit e3979d9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

mcs/class/System/Mono.Btls/MonoBtlsProvider.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,12 @@ internal override bool ValidateCertificate (
149149
X509CertificateCollection certificates, bool wantsChain, ref X509Chain chain,
150150
ref SslPolicyErrors errors, ref int status11)
151151
{
152+
// Super ugly hack to make things work on Unity build servers
153+
// FIXME: REMOVE THIS WHEN AGENTS RUN NEWER LINUX
154+
if (Environment.OSVersion.Platform == PlatformID.Unix
155+
&& Environment.GetEnvironmentVariable ("UNITY_THISISABUILDMACHINE") != null)
156+
return true;
157+
152158
if (chain != null) {
153159
var chainImpl = (X509ChainImplBtls)chain.Impl;
154160
var success = chainImpl.StoreCtx.VerifyResult == 1;

0 commit comments

Comments
 (0)