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/net_export.h" |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 #include "net/base/x509_cert_types.h" | 13 #include "net/base/x509_cert_types.h" |
14 | 14 |
15 namespace net { | 15 namespace net { |
16 | 16 |
17 class X509Certificate; | 17 class X509Certificate; |
18 | 18 |
19 // The result of certificate verification. | 19 // The result of certificate verification. |
20 class NET_API CertVerifyResult { | 20 class NET_EXPORT CertVerifyResult { |
21 public: | 21 public: |
22 CertVerifyResult(); | 22 CertVerifyResult(); |
23 ~CertVerifyResult(); | 23 ~CertVerifyResult(); |
24 | 24 |
25 void Reset(); | 25 void Reset(); |
26 | 26 |
27 // The certificate and chain that was constructed during verification. | 27 // The certificate and chain that was constructed during verification. |
28 // Note that the though the verified certificate will match the originally | 28 // Note that the though the verified certificate will match the originally |
29 // supplied certificate, the intermediate certificates stored within may | 29 // supplied certificate, the intermediate certificates stored within may |
30 // be substantially different. In the event of a verification failure, this | 30 // be substantially different. In the event of a verification failure, this |
(...skipping 22 matching lines...) Expand all Loading... |
53 // is_issued_by_known_root is true if we recognise the root CA as a standard | 53 // is_issued_by_known_root is true if we recognise the root CA as a standard |
54 // root. If it isn't then it's probably the case that this certificate was | 54 // root. If it isn't then it's probably the case that this certificate was |
55 // generated by a MITM proxy whose root has been installed locally. This is | 55 // generated by a MITM proxy whose root has been installed locally. This is |
56 // meaningless if the certificate was not trusted. | 56 // meaningless if the certificate was not trusted. |
57 bool is_issued_by_known_root; | 57 bool is_issued_by_known_root; |
58 }; | 58 }; |
59 | 59 |
60 } // namespace net | 60 } // namespace net |
61 | 61 |
62 #endif // NET_BASE_CERT_VERIFY_RESULT_H_ | 62 #endif // NET_BASE_CERT_VERIFY_RESULT_H_ |
OLD | NEW |