| 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/strings/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/net_errors.h" | 11 #include "net/base/net_errors.h" |
| 12 #include "net/cert/asn1_util.h" | 12 #include "net/cert/asn1_util.h" |
| 13 #include "net/socket/ssl_client_socket.h" | 13 #include "net/socket/ssl_client_socket.h" |
| 14 #include "net/spdy/spdy_framer.h" | 14 #include "net/spdy/spdy_framer.h" |
| 15 #include "net/ssl/server_bound_cert_service.h" | 15 #include "net/ssl/server_bound_cert_service.h" |
| 16 | 16 |
| 17 namespace net { | 17 namespace net { |
| 18 | 18 |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 |
| OLD | NEW |