OLD | NEW |
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 17 matching lines...) Expand all Loading... |
28 HANDSHAKE_FULL, // we negotiated a new session. | 28 HANDSHAKE_FULL, // we negotiated a new session. |
29 }; | 29 }; |
30 | 30 |
31 SSLInfo(); | 31 SSLInfo(); |
32 SSLInfo(const SSLInfo& info); | 32 SSLInfo(const SSLInfo& info); |
33 ~SSLInfo(); | 33 ~SSLInfo(); |
34 SSLInfo& operator=(const SSLInfo& info); | 34 SSLInfo& operator=(const SSLInfo& info); |
35 | 35 |
36 void Reset(); | 36 void Reset(); |
37 | 37 |
38 bool is_valid() const { return cert != NULL; } | 38 bool is_valid() const { return cert.get() != NULL; } |
39 | 39 |
40 // Adds the specified |error| to the cert status. | 40 // Adds the specified |error| to the cert status. |
41 void SetCertError(int error); | 41 void SetCertError(int error); |
42 | 42 |
43 // The SSL certificate. | 43 // The SSL certificate. |
44 scoped_refptr<X509Certificate> cert; | 44 scoped_refptr<X509Certificate> cert; |
45 | 45 |
46 // Bitmask of status info of |cert|, representing, for example, known errors | 46 // Bitmask of status info of |cert|, representing, for example, known errors |
47 // and extended validation (EV) status. | 47 // and extended validation (EV) status. |
48 // See cert_status_flags.h for values. | 48 // See cert_status_flags.h for values. |
(...skipping 23 matching lines...) Expand all Loading... |
72 HandshakeType handshake_type; | 72 HandshakeType handshake_type; |
73 | 73 |
74 // The hashes, in several algorithms, of the SubjectPublicKeyInfos from | 74 // The hashes, in several algorithms, of the SubjectPublicKeyInfos from |
75 // each certificate in the chain. | 75 // each certificate in the chain. |
76 HashValueVector public_key_hashes; | 76 HashValueVector public_key_hashes; |
77 }; | 77 }; |
78 | 78 |
79 } // namespace net | 79 } // namespace net |
80 | 80 |
81 #endif // NET_SSL_SSL_INFO_H_ | 81 #endif // NET_SSL_SSL_INFO_H_ |
OLD | NEW |