| 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 "crypto/signature_creator.h" | 5 #include "crypto/signature_creator.h" |
| 6 | 6 |
| 7 #include <cryptohi.h> | 7 #include <cryptohi.h> |
| 8 #include <keyhi.h> | 8 #include <keyhi.h> |
| 9 #include <stdlib.h> | 9 #include <stdlib.h> |
| 10 | 10 |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 } | 84 } |
| 85 signature->assign(signature_item.data, | 85 signature->assign(signature_item.data, |
| 86 signature_item.data + signature_item.len); | 86 signature_item.data + signature_item.len); |
| 87 SECITEM_FreeItem(&signature_item, PR_FALSE); | 87 SECITEM_FreeItem(&signature_item, PR_FALSE); |
| 88 return true; | 88 return true; |
| 89 } | 89 } |
| 90 | 90 |
| 91 SignatureCreator::SignatureCreator() | 91 SignatureCreator::SignatureCreator() |
| 92 : key_(NULL), | 92 : key_(NULL), |
| 93 sign_context_(NULL) { | 93 sign_context_(NULL) { |
| 94 LOG(ERROR) << "HIIIIIIIIIIIIIIIIIIIIIIIIIII"; |
| 94 EnsureNSSInit(); | 95 EnsureNSSInit(); |
| 95 } | 96 } |
| 96 | 97 |
| 97 } // namespace crypto | 98 } // namespace crypto |
| OLD | NEW |