Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(301)

Side by Side Diff: net/ssl/ssl_info.h

Issue 949633002: Include both certificate chains in invalid cert reporting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add a comment to cert logger pb Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_SSL_SSL_INFO_H_ 5 #ifndef NET_SSL_SSL_INFO_H_
6 #define NET_SSL_SSL_INFO_H_ 6 #define NET_SSL_SSL_INFO_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 30 matching lines...) Expand all
41 void Reset(); 41 void Reset();
42 42
43 bool is_valid() const { return cert.get() != NULL; } 43 bool is_valid() const { return cert.get() != NULL; }
44 44
45 // Adds the specified |error| to the cert status. 45 // Adds the specified |error| to the cert status.
46 void SetCertError(int error); 46 void SetCertError(int error);
47 47
48 // The SSL certificate. 48 // The SSL certificate.
49 scoped_refptr<X509Certificate> cert; 49 scoped_refptr<X509Certificate> cert;
50 50
51 // The SSL certificate with unverified certificate chain as sent by
52 // the server.
53 scoped_refptr<X509Certificate> unverified_server_cert;
Ryan Sleevi 2015/02/25 23:15:41 the _server_ seems redundant here.
Ryan Sleevi 2015/02/25 23:15:41 There's a problem here, which is that HttpResponse
54
51 // Bitmask of status info of |cert|, representing, for example, known errors 55 // Bitmask of status info of |cert|, representing, for example, known errors
52 // and extended validation (EV) status. 56 // and extended validation (EV) status.
53 // See cert_status_flags.h for values. 57 // See cert_status_flags.h for values.
54 CertStatus cert_status; 58 CertStatus cert_status;
55 59
56 // The security strength, in bits, of the SSL cipher suite. 60 // The security strength, in bits, of the SSL cipher suite.
57 // 0 means the connection is not encrypted. 61 // 0 means the connection is not encrypted.
58 // -1 means the security strength is unknown. 62 // -1 means the security strength is unknown.
59 int security_bits; 63 int security_bits;
60 64
(...skipping 25 matching lines...) Expand all
86 std::string pinning_failure_log; 90 std::string pinning_failure_log;
87 91
88 // List of SignedCertificateTimestamps and their corresponding validation 92 // List of SignedCertificateTimestamps and their corresponding validation
89 // status. 93 // status.
90 SignedCertificateTimestampAndStatusList signed_certificate_timestamps; 94 SignedCertificateTimestampAndStatusList signed_certificate_timestamps;
91 }; 95 };
92 96
93 } // namespace net 97 } // namespace net
94 98
95 #endif // NET_SSL_SSL_INFO_H_ 99 #endif // NET_SSL_SSL_INFO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698