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

Side by Side Diff: net/base/ssl_info.cc

Issue 12680003: net: split net/ssl out of net/base (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « net/base/ssl_info.h ('k') | net/base/transport_security_state.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "net/base/ssl_info.h"
6
7 #include "net/base/cert_status_flags.h"
8 #include "net/base/x509_certificate.h"
9
10 namespace net {
11
12 SSLInfo::SSLInfo() {
13 Reset();
14 }
15
16 SSLInfo::SSLInfo(const SSLInfo& info) {
17 *this = info;
18 }
19
20 SSLInfo::~SSLInfo() {
21 }
22
23 SSLInfo& SSLInfo::operator=(const SSLInfo& info) {
24 cert = info.cert;
25 cert_status = info.cert_status;
26 security_bits = info.security_bits;
27 connection_status = info.connection_status;
28 is_issued_by_known_root = info.is_issued_by_known_root;
29 client_cert_sent = info.client_cert_sent;
30 channel_id_sent = info.channel_id_sent;
31 handshake_type = info.handshake_type;
32 public_key_hashes = info.public_key_hashes;
33
34 return *this;
35 }
36
37 void SSLInfo::Reset() {
38 cert = NULL;
39 cert_status = 0;
40 security_bits = -1;
41 connection_status = 0;
42 is_issued_by_known_root = false;
43 client_cert_sent = false;
44 channel_id_sent = false;
45 handshake_type = HANDSHAKE_UNKNOWN;
46
47 public_key_hashes.clear();
48 }
49
50 void SSLInfo::SetCertError(int error) {
51 cert_status |= MapNetErrorToCertStatus(error);
52 }
53
54 } // namespace net
OLDNEW
« no previous file with comments | « net/base/ssl_info.h ('k') | net/base/transport_security_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698