| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 #ifndef BASE_CRYPTO_SIGNATURE_CREATOR_H_ | 5 #ifndef BASE_CRYPTO_SIGNATURE_CREATOR_H_ |
| 6 #define BASE_CRYPTO_SIGNATURE_CREATOR_H_ | 6 #define BASE_CRYPTO_SIGNATURE_CREATOR_H_ |
| 7 | 7 |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 | 9 |
| 10 #if defined(USE_NSS) | 10 #if defined(USE_NSS) |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 | 42 |
| 43 private: | 43 private: |
| 44 // Private constructor. Use the Create() method instead. | 44 // Private constructor. Use the Create() method instead. |
| 45 SignatureCreator(); | 45 SignatureCreator(); |
| 46 | 46 |
| 47 RSAPrivateKey* key_; | 47 RSAPrivateKey* key_; |
| 48 | 48 |
| 49 #if defined(USE_NSS) | 49 #if defined(USE_NSS) |
| 50 SGNContextStr* sign_context_; | 50 SGNContextStr* sign_context_; |
| 51 #elif defined(OS_MACOSX) | 51 #elif defined(OS_MACOSX) |
| 52 CSSM_CSP_HANDLE csp_handle_; | |
| 53 CSSM_CC_HANDLE sig_handle_; | 52 CSSM_CC_HANDLE sig_handle_; |
| 54 #elif defined(OS_WIN) | 53 #elif defined(OS_WIN) |
| 55 HCRYPTHASH hash_object_; | 54 HCRYPTHASH hash_object_; |
| 56 #endif | 55 #endif |
| 57 | 56 |
| 58 DISALLOW_COPY_AND_ASSIGN(SignatureCreator); | 57 DISALLOW_COPY_AND_ASSIGN(SignatureCreator); |
| 59 }; | 58 }; |
| 60 | 59 |
| 61 } // namespace base | 60 } // namespace base |
| 62 | 61 |
| 63 #endif // BASE_CRYPTO_SIGNATURE_CREATOR_H_ | 62 #endif // BASE_CRYPTO_SIGNATURE_CREATOR_H_ |
| OLD | NEW |