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

Side by Side Diff: net/spdy/spdy_credential_builder.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/spdy/spdy_credential_builder.h ('k') | net/spdy/spdy_credential_builder_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/spdy/spdy_credential_builder.h" 5 #include "net/spdy/spdy_credential_builder.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/string_piece.h" 8 #include "base/string_piece.h"
9 #include "crypto/ec_private_key.h" 9 #include "crypto/ec_private_key.h"
10 #include "crypto/ec_signature_creator.h" 10 #include "crypto/ec_signature_creator.h"
11 #include "net/base/asn1_util.h" 11 #include "net/base/asn1_util.h"
12 #include "net/base/server_bound_cert_service.h"
13 #include "net/base/net_errors.h" 12 #include "net/base/net_errors.h"
14 #include "net/socket/ssl_client_socket.h" 13 #include "net/socket/ssl_client_socket.h"
15 #include "net/spdy/spdy_framer.h" 14 #include "net/spdy/spdy_framer.h"
15 #include "net/ssl/server_bound_cert_service.h"
16 16
17 namespace net { 17 namespace net {
18 18
19 namespace { 19 namespace {
20 20
21 std::vector<uint8> ToVector(base::StringPiece piece) { 21 std::vector<uint8> ToVector(base::StringPiece piece) {
22 return std::vector<uint8>(piece.data(), piece.data() + piece.length()); 22 return std::vector<uint8>(piece.data(), piece.data() + piece.length());
23 } 23 }
24 24
25 } // namespace 25 } // namespace
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 std::string SpdyCredentialBuilder::GetCredentialSecret( 81 std::string SpdyCredentialBuilder::GetCredentialSecret(
82 const std::string& tls_unique) { 82 const std::string& tls_unique) {
83 const char prefix[] = "SPDY CREDENTIAL ChannelID\0client -> server"; 83 const char prefix[] = "SPDY CREDENTIAL ChannelID\0client -> server";
84 std::string secret(prefix, arraysize(prefix)); 84 std::string secret(prefix, arraysize(prefix));
85 secret.append(tls_unique); 85 secret.append(tls_unique);
86 86
87 return secret; 87 return secret;
88 } 88 }
89 89
90 } // namespace net 90 } // namespace net
OLDNEW
« no previous file with comments | « net/spdy/spdy_credential_builder.h ('k') | net/spdy/spdy_credential_builder_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698