OLD | NEW |
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 "crypto/signature_creator.h" | |
12 #include "net/base/asn1_util.h" | 11 #include "net/base/asn1_util.h" |
13 #include "net/base/server_bound_cert_service.h" | 12 #include "net/base/server_bound_cert_service.h" |
14 #include "net/base/net_errors.h" | 13 #include "net/base/net_errors.h" |
15 #include "net/socket/ssl_client_socket.h" | 14 #include "net/socket/ssl_client_socket.h" |
16 #include "net/spdy/spdy_framer.h" | 15 #include "net/spdy/spdy_framer.h" |
17 | 16 |
18 namespace net { | 17 namespace net { |
19 | 18 |
20 namespace { | 19 namespace { |
21 | 20 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 std::string SpdyCredentialBuilder::GetCredentialSecret( | 75 std::string SpdyCredentialBuilder::GetCredentialSecret( |
77 const std::string& tls_unique) { | 76 const std::string& tls_unique) { |
78 const char prefix[] = "SPDY CREDENTIAL ChannelID\0client -> server"; | 77 const char prefix[] = "SPDY CREDENTIAL ChannelID\0client -> server"; |
79 std::string secret(prefix, arraysize(prefix)); | 78 std::string secret(prefix, arraysize(prefix)); |
80 secret.append(tls_unique); | 79 secret.append(tls_unique); |
81 | 80 |
82 return secret; | 81 return secret; |
83 } | 82 } |
84 | 83 |
85 } // namespace net | 84 } // namespace net |
OLD | NEW |