Exemplo n.º 1
0
 /// <summary>
 /// Constructs the SSLAnalyzer using a parsed list of HostEntries and a connected API service object.
 /// </summary>
 public SSLAnalyzer(List<HostEntry> entries, SSLLabsApiService service)
 {
     _service = service;
     _entries = entries;
     _estRuntime = 120;
     _waitInterval = 3;
     _analyzedEntries = new List<HostEntry>();
 }
Exemplo n.º 2
0
 public Details()
 {
     key = new Key();
     cert = new Cert();
     chain = new Chain();
     protocols = new List<Protocol>();
     suites = new Suites();
     sims = new Sims();
 }
Exemplo n.º 3
0
        /// <summary>
        /// Will construct a new HostEntry object.
        /// </summary>
        /// <param name="url">The URL of the host.</param>
        /// <param name="protocol">The URL protocol of the host.</param>
        /// <param name="fillEmpty">True if attributes such as IP should be filled
        /// with empty strings.</param>
        public HostEntry(string url, string protocol)
        {
            if (protocol == null) protocol = "https";
            _protocol = new HostEntryAttribute(HostEntryAttribute.Type.Protocol, protocol);

            _URL = new HostEntryAttribute(HostEntryAttribute.Type.URL, url);
            _customAttributes = new List<HostEntryAttribute>();
            _differences = new List<AnalyzeDifference>();
            _assessmentFailedMessage = "Assessment failed";
        }
Exemplo n.º 4
0
 public Sims()
 {
     results = new List<Result>();
 }
Exemplo n.º 5
0
 public Suites()
 {
     list = new List<List>();
 }
Exemplo n.º 6
0
 public Chain()
 {
     certs = new List<Cert2>();
 }
Exemplo n.º 7
0
 public void AddCustomAttribute(List<HostEntryAttribute> range)
 {
     _customAttributes.AddRange(range);
 }
Exemplo n.º 8
0
 /// <summary>
 /// Will set the TLS versions for this host entry.
 /// </summary>
 /// <param name="value"></param>
 public void SetProtocolVersions(List<Protocol> protocols)
 {
     if (protocols == null) return;
     string str = DataFormatter.Static.ProtocolVersionsToString(protocols);
     _protocolVersions = new HostEntryAttribute(HostEntryAttribute.Type.ProtocolVersions, str);
 }