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