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

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

Issue 1174073003: Add served cert chain to SSLInfo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rsleevi nits Created 5 years, 6 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
« no previous file with comments | « net/socket/ssl_client_socket_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 27 matching lines...) Expand all
38 void Reset(); 38 void Reset();
39 39
40 bool is_valid() const { return cert.get() != NULL; } 40 bool is_valid() const { return cert.get() != NULL; }
41 41
42 // Adds the specified |error| to the cert status. 42 // Adds the specified |error| to the cert status.
43 void SetCertError(int error); 43 void SetCertError(int error);
44 44
45 // The SSL certificate. 45 // The SSL certificate.
46 scoped_refptr<X509Certificate> cert; 46 scoped_refptr<X509Certificate> cert;
47 47
48 // The SSL certificate as received by the client. Can be different
49 // from |cert|, which is the chain as built by the client during
50 // validation.
51 scoped_refptr<X509Certificate> unverified_cert;
52
48 // Bitmask of status info of |cert|, representing, for example, known errors 53 // Bitmask of status info of |cert|, representing, for example, known errors
49 // and extended validation (EV) status. 54 // and extended validation (EV) status.
50 // See cert_status_flags.h for values. 55 // See cert_status_flags.h for values.
51 CertStatus cert_status; 56 CertStatus cert_status;
52 57
53 // The security strength, in bits, of the SSL cipher suite. 58 // The security strength, in bits, of the SSL cipher suite.
54 // 0 means the connection is not encrypted. 59 // 0 means the connection is not encrypted.
55 // -1 means the security strength is unknown. 60 // -1 means the security strength is unknown.
56 int security_bits; 61 int security_bits;
57 62
(...skipping 25 matching lines...) Expand all
83 std::string pinning_failure_log; 88 std::string pinning_failure_log;
84 89
85 // List of SignedCertificateTimestamps and their corresponding validation 90 // List of SignedCertificateTimestamps and their corresponding validation
86 // status. 91 // status.
87 SignedCertificateTimestampAndStatusList signed_certificate_timestamps; 92 SignedCertificateTimestampAndStatusList signed_certificate_timestamps;
88 }; 93 };
89 94
90 } // namespace net 95 } // namespace net
91 96
92 #endif // NET_SSL_SSL_INFO_H_ 97 #endif // NET_SSL_SSL_INFO_H_
OLDNEW
« no previous file with comments | « net/socket/ssl_client_socket_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698