| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/curvecp/connection_key.h" | 5 #include "net/curvecp/connection_key.h" |
| 6 | 6 |
| 7 #include <string.h> | 7 #include <string.h> |
| 8 | 8 |
| 9 namespace net { | 9 namespace net { |
| 10 | 10 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 return memcmp(key_, other.key_, sizeof(key_)) < 0; | 33 return memcmp(key_, other.key_, sizeof(key_)) < 0; |
| 34 } | 34 } |
| 35 | 35 |
| 36 std::string ConnectionKey::ToString() const { | 36 std::string ConnectionKey::ToString() const { |
| 37 // TODO(mbelshe): make this a nice hex formatter | 37 // TODO(mbelshe): make this a nice hex formatter |
| 38 return std::string("key") + | 38 return std::string("key") + |
| 39 std::string(reinterpret_cast<const char*>(key_), 32); | 39 std::string(reinterpret_cast<const char*>(key_), 32); |
| 40 } | 40 } |
| 41 | 41 |
| 42 } // namespace net | 42 } // namespace net |
| OLD | NEW |