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_CSSM_INIT_H_ | 5 #ifndef BASE_CRYPTO_CSSM_INIT_H_ |
6 #define BASE_CRYPTO_CSSM_INIT_H_ | 6 #define BASE_CRYPTO_CSSM_INIT_H_ |
7 | 7 |
| 8 #include <Security/cssm.h> |
| 9 |
| 10 #include "base/logging.h" |
| 11 #include "base/scoped_ptr.h" |
| 12 |
8 namespace base { | 13 namespace base { |
9 | 14 |
10 // Initialize CSSM if it isn't already initialized. This must be called before | 15 // Initialize CSSM if it isn't already initialized. This must be called before |
11 // any other CSSM functions. This function is thread-safe, and CSSM will only | 16 // any other CSSM functions. This function is thread-safe, and CSSM will only |
12 // ever be initialized once. CSSM will be properly shut down on program exit. | 17 // ever be initialized once. CSSM will be properly shut down on program exit. |
13 void EnsureCSSMInit(); | 18 void EnsureCSSMInit(); |
14 | 19 |
| 20 // Set of pointers to memory function wrappers that are required for CSSM |
| 21 extern const CSSM_API_MEMORY_FUNCS kCssmMemoryFunctions; |
| 22 |
15 } // namespace base | 23 } // namespace base |
16 | 24 |
17 #endif // BASE_CRYPTO_CSSM_INIT_H_ | 25 #endif // BASE_CRYPTO_CSSM_INIT_H_ |
OLD | NEW |