summaryrefslogtreecommitdiffstats
path: root/net/base/ssl_info.cc
diff options
context:
space:
mode:
Diffstat (limited to 'net/base/ssl_info.cc')
-rw-r--r--net/base/ssl_info.cc13
1 files changed, 10 insertions, 3 deletions
diff --git a/net/base/ssl_info.cc b/net/base/ssl_info.cc
index 1b60644..40c0fd3 100644
--- a/net/base/ssl_info.cc
+++ b/net/base/ssl_info.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// 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.
@@ -12,14 +12,17 @@ namespace net {
SSLInfo::SSLInfo()
: cert_status(0),
security_bits(-1),
- connection_status(0) {
+ connection_status(0),
+ is_issued_by_known_root(false) {
}
SSLInfo::SSLInfo(const SSLInfo& info)
: cert(info.cert),
cert_status(info.cert_status),
security_bits(info.security_bits),
- connection_status(info.connection_status) {
+ connection_status(info.connection_status),
+ is_issued_by_known_root(info.is_issued_by_known_root),
+ public_key_hashes(info.public_key_hashes) {
}
SSLInfo::~SSLInfo() {
@@ -30,6 +33,8 @@ SSLInfo& SSLInfo::operator=(const SSLInfo& info) {
cert_status = info.cert_status;
security_bits = info.security_bits;
connection_status = info.connection_status;
+ public_key_hashes = info.public_key_hashes;
+ is_issued_by_known_root = info.is_issued_by_known_root;
return *this;
}
@@ -38,6 +43,8 @@ void SSLInfo::Reset() {
cert_status = 0;
security_bits = -1;
connection_status = 0;
+ is_issued_by_known_root = false;
+ public_key_hashes.clear();
}
void SSLInfo::SetCertError(int error) {