| 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) |
| 11 #include <cryptoht.h> | 11 #include <cryptoht.h> |
| 12 #elif defined(OS_MACOSX) | 12 #elif defined(OS_MACOSX) |
| 13 // TODO(port) | 13 #include <Security/cssm.h> |
| 14 #elif defined(OS_WIN) | 14 #elif defined(OS_WIN) |
| 15 #include <windows.h> | 15 #include <windows.h> |
| 16 #include <wincrypt.h> | 16 #include <wincrypt.h> |
| 17 #endif | 17 #endif |
| 18 | 18 |
| 19 #include <vector> | 19 #include <vector> |
| 20 | 20 |
| 21 #include "base/basictypes.h" | 21 #include "base/basictypes.h" |
| 22 #include "base/crypto/rsa_private_key.h" | 22 #include "base/crypto/rsa_private_key.h" |
| 23 | 23 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 41 | 41 |
| 42 private: | 42 private: |
| 43 // Private constructor. Use the Create() method instead. | 43 // Private constructor. Use the Create() method instead. |
| 44 SignatureCreator(); | 44 SignatureCreator(); |
| 45 | 45 |
| 46 RSAPrivateKey* key_; | 46 RSAPrivateKey* key_; |
| 47 | 47 |
| 48 #if defined(USE_NSS) | 48 #if defined(USE_NSS) |
| 49 SGNContext* sign_context_; | 49 SGNContext* sign_context_; |
| 50 #elif defined(OS_MACOSX) | 50 #elif defined(OS_MACOSX) |
| 51 // TODO(port) | 51 CSSM_CSP_HANDLE csp_handle_;» |
| 52 CSSM_CC_HANDLE sig_handle_; |
| 52 #elif defined(OS_WIN) | 53 #elif defined(OS_WIN) |
| 53 HCRYPTHASH hash_object_; | 54 HCRYPTHASH hash_object_; |
| 54 #endif | 55 #endif |
| 55 | 56 |
| 56 DISALLOW_COPY_AND_ASSIGN(SignatureCreator); | 57 DISALLOW_COPY_AND_ASSIGN(SignatureCreator); |
| 57 }; | 58 }; |
| 58 | 59 |
| 59 } // namespace base | 60 } // namespace base |
| 60 | 61 |
| 61 #endif // BASE_CRYPTO_SIGNATURE_CREATOR_H_ | 62 #endif // BASE_CRYPTO_SIGNATURE_CREATOR_H_ |
| OLD | NEW |