Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
U
Unity
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Shane Veasy
Unity
Commits
ef64c171
Commit
ef64c171
authored
8 years ago
by
Andreia Gaita
Browse files
Options
Downloads
Patches
Plain Diff
Disable ssl validation, for now
parent
4ea3ce15
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/UnityExtension/Assets/Editor/GitHub.Unity/Misc/EntryPoint.cs
+12
-11
12 additions, 11 deletions
...tyExtension/Assets/Editor/GitHub.Unity/Misc/EntryPoint.cs
with
12 additions
and
11 deletions
src/UnityExtension/Assets/Editor/GitHub.Unity/Misc/EntryPoint.cs
+
12
−
11
View file @
ef64c171
...
...
@@ -140,18 +140,19 @@ namespace GitHub.Unity
X509Chain
chain
,
SslPolicyErrors
sslPolicyErrors
)
{
var
success
=
true
;
// TODO: Invoke MozRoots.Process() to populate the certificate store and make this code work properly.
// If there are errors in the certificate chain, look at each error to determine the cause.
if
(
sslPolicyErrors
!=
SslPolicyErrors
.
None
)
{
foreach
(
var
status
in
chain
.
ChainStatus
.
Where
(
st
=>
st
.
Status
!=
X509ChainStatusFlags
.
RevocationStatusUnknown
))
{
chain
.
ChainPolicy
.
RevocationFlag
=
X509RevocationFlag
.
EntireChain
;
chain
.
ChainPolicy
.
RevocationMode
=
X509RevocationMode
.
Online
;
chain
.
ChainPolicy
.
UrlRetrievalTimeout
=
new
TimeSpan
(
0
,
1
,
0
);
chain
.
ChainPolicy
.
VerificationFlags
=
X509VerificationFlags
.
AllFlags
;
success
&=
chain
.
Build
((
X509Certificate2
)
certificate
);
}
}
//
if (sslPolicyErrors != SslPolicyErrors.None)
//
{
//
foreach (var status in chain.ChainStatus.Where(st => st.Status != X509ChainStatusFlags.RevocationStatusUnknown))
//
{
//
chain.ChainPolicy.RevocationFlag = X509RevocationFlag.EntireChain;
//
chain.ChainPolicy.RevocationMode = X509RevocationMode.Online;
//
chain.ChainPolicy.UrlRetrievalTimeout = new TimeSpan(0, 1, 0);
//
chain.ChainPolicy.VerificationFlags = X509VerificationFlags.AllFlags;
//
success &= chain.Build((X509Certificate2)certificate);
//
}
//
}
return
success
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment