Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Unified Diff: crypto/cssm_init.h

Issue 7532023: mac: Components build for crypto (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | crypto/mac_security_services_lock.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: crypto/cssm_init.h
diff --git a/crypto/cssm_init.h b/crypto/cssm_init.h
index 9093b0f69c4a85abebdb2ff15c35f4ac838a5ced..86ea19de9a3d8f67613f28475cfd7bfca38263ba 100644
--- a/crypto/cssm_init.h
+++ b/crypto/cssm_init.h
@@ -9,32 +9,33 @@
#include <Security/cssm.h>
#include "base/basictypes.h"
+#include "crypto/crypto_api.h"
namespace crypto {
// Initialize CSSM if it isn't already initialized. This must be called before
// any other CSSM functions. This function is thread-safe, and CSSM will only
// ever be initialized once. CSSM will be properly shut down on program exit.
-void EnsureCSSMInit();
+CRYPTO_API void EnsureCSSMInit();
// Returns the shared CSP handle used by CSSM functions.
CSSM_CSP_HANDLE GetSharedCSPHandle();
// Returns the shared CL handle used by CSSM functions.
-CSSM_CL_HANDLE GetSharedCLHandle();
+CRYPTO_API CSSM_CL_HANDLE GetSharedCLHandle();
// Returns the shared TP handle used by CSSM functions.
-CSSM_TP_HANDLE GetSharedTPHandle();
+CRYPTO_API CSSM_TP_HANDLE GetSharedTPHandle();
// Set of pointers to memory function wrappers that are required for CSSM
extern const CSSM_API_MEMORY_FUNCS kCssmMemoryFunctions;
// Utility function to log an error message including the error name.
-void LogCSSMError(const char *function_name, CSSM_RETURN err);
+CRYPTO_API void LogCSSMError(const char *function_name, CSSM_RETURN err);
// Utility functions to allocate and release CSSM memory.
void* CSSMMalloc(CSSM_SIZE size);
-void CSSMFree(void* ptr);
+CRYPTO_API void CSSMFree(void* ptr);
Nico 2011/07/29 02:03:37 Called by net/base/x509_certificate_mac.cc. Nobody
// Wrapper class for CSSM_DATA type. This should only be used when using the
// CL/TP/CSP handles from above, since that's the only time we're guaranteed (or
« no previous file with comments | « no previous file | crypto/mac_security_services_lock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698