summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/base/cert_verify_result.cc24
-rw-r--r--net/base/cert_verify_result.h15
-rw-r--r--net/net.gyp1
3 files changed, 28 insertions, 12 deletions
diff --git a/net/base/cert_verify_result.cc b/net/base/cert_verify_result.cc
new file mode 100644
index 0000000..a97c98f
--- /dev/null
+++ b/net/base/cert_verify_result.cc
@@ -0,0 +1,24 @@
+// Copyright (c) 2011 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.
+
+#include "net/base/cert_verify_result.h"
+
+namespace net {
+
+CertVerifyResult::CertVerifyResult() {
+ Reset();
+}
+
+void CertVerifyResult::Reset() {
+ cert_status = 0;
+ has_md5 = false;
+ has_md2 = false;
+ has_md4 = false;
+ has_md5_ca = false;
+ has_md2_ca = false;
+ is_issued_by_known_root = false;
+ public_key_hashes.clear();
+}
+
+} // namespace net
diff --git a/net/base/cert_verify_result.h b/net/base/cert_verify_result.h
index 96b50e2..316fe8d 100644
--- a/net/base/cert_verify_result.h
+++ b/net/base/cert_verify_result.h
@@ -16,18 +16,9 @@ namespace net {
// certificate chain that was constructed during 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;
- is_issued_by_known_root = false;
- public_key_hashes.clear();
- }
+ CertVerifyResult();
+
+ void Reset();
// Bitmask of CERT_STATUS_* from net/base/cert_status_flags.h
int cert_status;
diff --git a/net/net.gyp b/net/net.gyp
index 4433ecc..e772afb 100644
--- a/net/net.gyp
+++ b/net/net.gyp
@@ -48,6 +48,7 @@
'base/cert_status_flags.h',
'base/cert_verifier.cc',
'base/cert_verifier.h',
+ 'base/cert_verify_result.cc',
'base/cert_verify_result.h',
'base/completion_callback.h',
'base/connection_type_histograms.cc',