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

Side by Side Diff: net/base/cert_verify_result.h

Issue 6793041: net: add ability to distinguish user-added root CAs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ... Created 9 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | net/base/x509_certificate.h » ('j') | net/base/x509_certificate.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 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 namespace net { 9 namespace net {
10 10
11 // The result of certificate verification. Eventually this may contain the 11 // The result of certificate verification. Eventually this may contain the
12 // certificate chain that was constructed during certificate verification. 12 // certificate chain that was constructed during certificate verification.
13 class CertVerifyResult { 13 class CertVerifyResult {
14 public: 14 public:
15 CertVerifyResult() { Reset(); } 15 CertVerifyResult() { Reset(); }
16 16
17 void Reset() { 17 void Reset() {
18 cert_status = 0; 18 cert_status = 0;
19 has_md5 = false; 19 has_md5 = false;
20 has_md2 = false; 20 has_md2 = false;
21 has_md4 = false; 21 has_md4 = false;
22 has_md5_ca = false; 22 has_md5_ca = false;
23 has_md2_ca = false; 23 has_md2_ca = false;
24 is_issued_by_known_root = false;
24 } 25 }
25 26
26 // Bitmask of CERT_STATUS_* from net/base/cert_status_flags.h 27 // Bitmask of CERT_STATUS_* from net/base/cert_status_flags.h
27 int cert_status; 28 int cert_status;
28 29
29 // Properties of the certificate chain. 30 // Properties of the certificate chain.
30 bool has_md5; 31 bool has_md5;
31 bool has_md2; 32 bool has_md2;
32 bool has_md4; 33 bool has_md4;
33 bool has_md5_ca; 34 bool has_md5_ca;
34 bool has_md2_ca; 35 bool has_md2_ca;
36
37 // is_issued_by_known_root is true if recognise the root CA as a standard
wtc 2011/04/07 05:01:54 Nit: add "we" before "recognise"?
agl 2011/04/07 15:02:49 Done.
38 // root. If it isn't then it's probably the case that this certificate was
39 // generated by a MITM proxy whose root has been installed locally. This is
40 // meaningless if the certificate was not trusted.
41 bool is_issued_by_known_root;
35 }; 42 };
36 43
37 } // namespace net 44 } // namespace net
38 45
39 #endif // NET_BASE_CERT_VERIFY_RESULT_H_ 46 #endif // NET_BASE_CERT_VERIFY_RESULT_H_
OLDNEW
« no previous file with comments | « no previous file | net/base/x509_certificate.h » ('j') | net/base/x509_certificate.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698