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; |