| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/base/keygen_handler.h" | 5 #include "net/base/keygen_handler.h" |
| 6 | 6 |
| 7 #include "net/third_party/mozilla_security_manager/nsKeygenHandler.h" | 7 #include "net/third_party/mozilla_security_manager/nsKeygenHandler.h" |
| 8 | 8 |
| 9 // PSM = Mozilla's Personal Security Manager. | 9 // PSM = Mozilla's Personal Security Manager. |
| 10 namespace psm = mozilla_security_manager; | 10 namespace psm = mozilla_security_manager; |
| 11 | 11 |
| 12 namespace net { | 12 namespace net { |
| 13 | 13 |
| 14 bool KeygenHandler::KeyLocation::Equals( | |
| 15 const net::KeygenHandler::KeyLocation& location) const { | |
| 16 return slot_name == location.slot_name; | |
| 17 } | |
| 18 | |
| 19 std::string KeygenHandler::GenKeyAndSignChallenge() { | 14 std::string KeygenHandler::GenKeyAndSignChallenge() { |
| 20 return psm::GenKeyAndSignChallenge(key_size_in_bits_, challenge_, | 15 return psm::GenKeyAndSignChallenge(key_size_in_bits_, challenge_, |
| 21 stores_key_); | 16 stores_key_); |
| 22 } | 17 } |
| 23 | 18 |
| 24 } // namespace net | 19 } // namespace net |
| OLD | NEW |