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

Side by Side Diff: net/base/server_bound_cert_store.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/server_bound_cert_store.h ('k') | net/base/ssl_cert_request_info.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/server_bound_cert_store.h"
6
7 namespace net {
8
9 ServerBoundCertStore::ServerBoundCert::ServerBoundCert()
10 : type_(CLIENT_CERT_INVALID_TYPE) {
11 }
12
13 ServerBoundCertStore::ServerBoundCert::ServerBoundCert(
14 const std::string& server_identifier,
15 SSLClientCertType type,
16 base::Time creation_time,
17 base::Time expiration_time,
18 const std::string& private_key,
19 const std::string& cert)
20 : server_identifier_(server_identifier),
21 type_(type),
22 creation_time_(creation_time),
23 expiration_time_(expiration_time),
24 private_key_(private_key),
25 cert_(cert) {}
26
27 ServerBoundCertStore::ServerBoundCert::~ServerBoundCert() {}
28
29 void ServerBoundCertStore::InitializeFrom(const ServerBoundCertList& list) {
30 for (ServerBoundCertList::const_iterator i = list.begin(); i != list.end();
31 ++i) {
32 SetServerBoundCert(i->server_identifier(), i->type(), i->creation_time(),
33 i->expiration_time(), i->private_key(), i->cert());
34 }
35 }
36
37 } // namespace net
OLDNEW
« no previous file with comments | « net/base/server_bound_cert_store.h ('k') | net/base/ssl_cert_request_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698