Skip to content

Commit 5d16338

Browse files
committed
Adding Endpoint sub models
1 parent fd4e778 commit 5d16338

File tree

15 files changed

+200
-10
lines changed

15 files changed

+200
-10
lines changed

SSLLWrapper.sln

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ VisualStudioVersion = 12.0.31101.0
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SSLLWrapper", "SSLLWrapper\SSLLWrapper.csproj", "{9D2FF62D-01C0-41B0-A3BE-32005365290C}"
77
EndProject
8+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".nuget", ".nuget", "{06122B2D-FE98-44A4-9801-B3381751A8B6}"
9+
ProjectSection(SolutionItems) = preProject
10+
.nuget\NuGet.Config = .nuget\NuGet.Config
11+
.nuget\NuGet.exe = .nuget\NuGet.exe
12+
.nuget\NuGet.targets = .nuget\NuGet.targets
13+
EndProjectSection
14+
EndProject
815
Global
916
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1017
Debug|Any CPU = Debug|Any CPU

SSLLWrapper/Models/Response/AnalyzeModel.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using System.Collections.Generic;
2-
using SSLLWrapper.Models.Response.AnalyzeSubModels;
32

43
namespace SSLLWrapper.Models.Response
54
{

SSLLWrapper/Models/Response/AnalyzeSubModels/Endpoint.cs renamed to SSLLWrapper/Models/Response/Endpoint.cs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
1-
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Text;
5-
using System.Threading.Tasks;
1+
using SSLLWrapper.Models.Response.EndpointSubModels;
62

7-
namespace SSLLWrapper.Models.Response.AnalyzeSubModels
3+
namespace SSLLWrapper.Models.Response
84
{
95
public class Endpoint
106
{
@@ -21,5 +17,8 @@ public class Endpoint
2117
public string grade { get; set; }
2218
public bool hasWarnings { get; set; }
2319
public bool isExceptional { get; set; }
20+
21+
public Details Details { get; set; }
22+
2423
}
2524
}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
using System.Collections.Generic;
2+
3+
namespace SSLLWrapper.Models.Response.EndpointSubModels
4+
{
5+
public class Cert
6+
{
7+
public string subject { get; set; }
8+
public List<string> commonNames { get; set; }
9+
public List<string> altNames { get; set; }
10+
public long notBefore { get; set; }
11+
public long notAfter { get; set; }
12+
public string issuerSubject { get; set; }
13+
public string sigAlg { get; set; }
14+
public string issuerLabel { get; set; }
15+
public int revocationInfo { get; set; }
16+
public List<string> crlURIs { get; set; }
17+
public List<string> ocspURIs { get; set; }
18+
public int revocationStatus { get; set; }
19+
public int sgc { get; set; }
20+
public int issues { get; set; }
21+
}
22+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
namespace SSLLWrapper.Models.Response.EndpointSubModels
2+
{
3+
public class Cert2
4+
{
5+
public string subject { get; set; }
6+
public string label { get; set; }
7+
public string issuerSubject { get; set; }
8+
public string issuerLabel { get; set; }
9+
public string raw { get; set; }
10+
}
11+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
using System.Collections.Generic;
2+
3+
namespace SSLLWrapper.Models.Response.EndpointSubModels
4+
{
5+
public class Chain
6+
{
7+
public List<Cert2> certs { get; set; }
8+
public int issues { get; set; }
9+
}
10+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
namespace SSLLWrapper.Models.Response.EndpointSubModels
2+
{
3+
public class Client
4+
{
5+
public int id { get; set; }
6+
public string name { get; set; }
7+
public string version { get; set; }
8+
public bool isReference { get; set; }
9+
public string platform { get; set; }
10+
}
11+
}
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
using System.Threading.Tasks;
6+
7+
namespace SSLLWrapper.Models.Response.EndpointSubModels
8+
{
9+
public class Details
10+
{
11+
public long hostStartTime { get; set; }
12+
public Key key { get; set; }
13+
public Cert cert { get; set; }
14+
public Chain chain { get; set; }
15+
public List<Protocol> protocols { get; set; }
16+
public Suites suites { get; set; }
17+
public string serverSignature { get; set; }
18+
public bool prefixDelegation { get; set; }
19+
public bool nonPrefixDelegation { get; set; }
20+
public bool vulnBeast { get; set; }
21+
public int renegSupport { get; set; }
22+
public int sessionResumption { get; set; }
23+
public int compressionMethods { get; set; }
24+
public bool supportsNpn { get; set; }
25+
public int sessionTickets { get; set; }
26+
public bool ocspStapling { get; set; }
27+
public bool sniRequired { get; set; }
28+
public int httpStatusCode { get; set; }
29+
public bool supportsRc4 { get; set; }
30+
public int forwardSecrecy { get; set; }
31+
public bool rc4WithModern { get; set; }
32+
public Sims sims { get; set; }
33+
public bool heartbleed { get; set; }
34+
public bool heartbeat { get; set; }
35+
public int openSslCcs { get; set; }
36+
public int poodleTls { get; set; }
37+
38+
public Details()
39+
{
40+
key = new Key();
41+
cert = new Cert();
42+
chain = new Chain();
43+
suites = new Suites();
44+
sims = new Sims();
45+
}
46+
}
47+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
namespace SSLLWrapper.Models.Response.EndpointSubModels
2+
{
3+
public class Key
4+
{
5+
public int size { get; set; }
6+
public string alg { get; set; }
7+
public bool debianFlaw { get; set; }
8+
public int strength { get; set; }
9+
}
10+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
namespace SSLLWrapper.Models.Response.EndpointSubModels
2+
{
3+
public class List
4+
{
5+
public int id { get; set; }
6+
public string name { get; set; }
7+
public int cipherStrength { get; set; }
8+
public int ecdhBits { get; set; }
9+
public int ecdhStrength { get; set; }
10+
public int? dhStrength { get; set; }
11+
public int? dhP { get; set; }
12+
public int? dhG { get; set; }
13+
public int? dhYs { get; set; }
14+
}
15+
}

0 commit comments

Comments
 (0)