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

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

Issue 3146034: Allow the constructed certificate chain to be returned in CertVerifyResult (Closed)
Patch Set: Created 10 years, 4 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 | « no previous file | net/base/cert_verify_result.cc » ('j') | 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "base/ref_counted.h"
10
9 namespace net { 11 namespace net {
10 12
11 // The result of certificate verification. Eventually this may contain the 13 class X509Certificate;
12 // certificate chain that was constructed during certificate verification. 14
15 // The result of certificate verification.
13 class CertVerifyResult { 16 class CertVerifyResult {
14 public: 17 public:
15 CertVerifyResult() { Reset(); } 18 CertVerifyResult();
19 ~CertVerifyResult();
16 20
17 void Reset() { 21 void Reset();
18 cert_status = 0; 22
19 has_md5 = false; 23 // The verified certificate, along with the constructed certificate
20 has_md2 = false; 24 // chain stored as intermediates, beginning with the issuer of the
21 has_md4 = false; 25 // certificate and terminating in a trust anchor, if any.
22 has_md5_ca = false; 26 scoped_refptr<X509Certificate> certificate;
23 has_md2_ca = false;
24 }
25 27
26 int cert_status; 28 int cert_status;
27 29
28 // Properties of the certificate chain. 30 // Properties of the certificate chain.
29 bool has_md5; 31 bool has_md5;
30 bool has_md2; 32 bool has_md2;
31 bool has_md4; 33 bool has_md4;
32 bool has_md5_ca; 34 bool has_md5_ca;
33 bool has_md2_ca; 35 bool has_md2_ca;
34 }; 36 };
35 37
36 } // namespace net 38 } // namespace net
37 39
38 #endif // NET_BASE_CERT_VERIFY_RESULT_H_ 40 #endif // NET_BASE_CERT_VERIFY_RESULT_H_
OLDNEW
« no previous file with comments | « no previous file | net/base/cert_verify_result.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698