OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_BASE_CERT_VERIFY_RESULT_H_ | 5 #ifndef NET_BASE_CERT_VERIFY_RESULT_H_ |
6 #define NET_BASE_CERT_VERIFY_RESULT_H_ | 6 #define NET_BASE_CERT_VERIFY_RESULT_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "net/base/net_api.h" | |
11 #include "net/base/x509_cert_types.h" | 12 #include "net/base/x509_cert_types.h" |
12 | 13 |
13 namespace net { | 14 namespace net { |
14 | 15 |
15 // The result of certificate verification. Eventually this may contain the | 16 // The result of certificate verification. Eventually this may contain the |
16 // certificate chain that was constructed during certificate verification. | 17 // certificate chain that was constructed during certificate verification. |
17 class CertVerifyResult { | 18 class NET_TEST CertVerifyResult { |
wtc
2011/05/16 20:55:17
CertVerifyResult is used by CertVerifier.
If Cert
| |
18 public: | 19 public: |
19 CertVerifyResult(); | 20 CertVerifyResult(); |
20 ~CertVerifyResult(); | 21 ~CertVerifyResult(); |
21 | 22 |
22 void Reset(); | 23 void Reset(); |
23 | 24 |
24 // Bitmask of CERT_STATUS_* from net/base/cert_status_flags.h | 25 // Bitmask of CERT_STATUS_* from net/base/cert_status_flags.h |
25 int cert_status; | 26 int cert_status; |
26 | 27 |
27 // Properties of the certificate chain. | 28 // Properties of the certificate chain. |
(...skipping 11 matching lines...) Expand all Loading... | |
39 // is_issued_by_known_root is true if we recognise the root CA as a standard | 40 // is_issued_by_known_root is true if we recognise the root CA as a standard |
40 // root. If it isn't then it's probably the case that this certificate was | 41 // root. If it isn't then it's probably the case that this certificate was |
41 // generated by a MITM proxy whose root has been installed locally. This is | 42 // generated by a MITM proxy whose root has been installed locally. This is |
42 // meaningless if the certificate was not trusted. | 43 // meaningless if the certificate was not trusted. |
43 bool is_issued_by_known_root; | 44 bool is_issued_by_known_root; |
44 }; | 45 }; |
45 | 46 |
46 } // namespace net | 47 } // namespace net |
47 | 48 |
48 #endif // NET_BASE_CERT_VERIFY_RESULT_H_ | 49 #endif // NET_BASE_CERT_VERIFY_RESULT_H_ |
OLD | NEW |