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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | net/base/cert_verify_result.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/cert_verify_result.h
diff --git a/net/base/cert_verify_result.h b/net/base/cert_verify_result.h
index b3381af63f8557562c84ff374688f9681ce7f47d..60be5df5bd7382584a787f1ce4f20f1e62a7d5b5 100644
--- a/net/base/cert_verify_result.h
+++ b/net/base/cert_verify_result.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -6,22 +6,24 @@
#define NET_BASE_CERT_VERIFY_RESULT_H_
#pragma once
+#include "base/ref_counted.h"
+
namespace net {
-// The result of certificate verification. Eventually this may contain the
-// certificate chain that was constructed during certificate verification.
+class X509Certificate;
+
+// The result of certificate verification.
class CertVerifyResult {
public:
- CertVerifyResult() { Reset(); }
-
- void Reset() {
- cert_status = 0;
- has_md5 = false;
- has_md2 = false;
- has_md4 = false;
- has_md5_ca = false;
- has_md2_ca = false;
- }
+ CertVerifyResult();
+ ~CertVerifyResult();
+
+ void Reset();
+
+ // The verified certificate, along with the constructed certificate
+ // chain stored as intermediates, beginning with the issuer of the
+ // certificate and terminating in a trust anchor, if any.
+ scoped_refptr<X509Certificate> certificate;
int cert_status;
« 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