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

Side by Side Diff: crypto/cssm_init.h

Issue 9369020: mac: Add _EXPORT macros, crypto/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 CRYPTO_CSSM_INIT_H_ 5 #ifndef CRYPTO_CSSM_INIT_H_
6 #define CRYPTO_CSSM_INIT_H_ 6 #define CRYPTO_CSSM_INIT_H_
7 #pragma once 7 #pragma once
8 8
9 #include <Security/cssm.h> 9 #include <Security/cssm.h>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "crypto/crypto_export.h" 12 #include "crypto/crypto_export.h"
13 13
14 namespace crypto { 14 namespace crypto {
15 15
16 // Initialize CSSM if it isn't already initialized. This must be called before 16 // Initialize CSSM if it isn't already initialized. This must be called before
17 // any other CSSM functions. This function is thread-safe, and CSSM will only 17 // any other CSSM functions. This function is thread-safe, and CSSM will only
18 // ever be initialized once. CSSM will be properly shut down on program exit. 18 // ever be initialized once. CSSM will be properly shut down on program exit.
19 CRYPTO_EXPORT void EnsureCSSMInit(); 19 CRYPTO_EXPORT void EnsureCSSMInit();
20 20
21 // Returns the shared CSP handle used by CSSM functions. 21 // Returns the shared CSP handle used by CSSM functions.
22 CSSM_CSP_HANDLE GetSharedCSPHandle(); 22 CRYPTO_EXPORT CSSM_CSP_HANDLE GetSharedCSPHandle();
23 23
24 // Returns the shared CL handle used by CSSM functions. 24 // Returns the shared CL handle used by CSSM functions.
25 CRYPTO_EXPORT CSSM_CL_HANDLE GetSharedCLHandle(); 25 CRYPTO_EXPORT CSSM_CL_HANDLE GetSharedCLHandle();
26 26
27 // Returns the shared TP handle used by CSSM functions. 27 // Returns the shared TP handle used by CSSM functions.
28 CRYPTO_EXPORT CSSM_TP_HANDLE GetSharedTPHandle(); 28 CRYPTO_EXPORT CSSM_TP_HANDLE GetSharedTPHandle();
29 29
30 // Set of pointers to memory function wrappers that are required for CSSM 30 // Set of pointers to memory function wrappers that are required for CSSM
31 extern const CSSM_API_MEMORY_FUNCS kCssmMemoryFunctions; 31 extern const CSSM_API_MEMORY_FUNCS kCssmMemoryFunctions;
32 32
(...skipping 19 matching lines...) Expand all
52 52
53 private: 53 private:
54 CSSM_DATA data_; 54 CSSM_DATA data_;
55 55
56 DISALLOW_COPY_AND_ASSIGN(ScopedCSSMData); 56 DISALLOW_COPY_AND_ASSIGN(ScopedCSSMData);
57 }; 57 };
58 58
59 } // namespace crypto 59 } // namespace crypto
60 60
61 #endif // CRYPTO_CSSM_INIT_H_ 61 #endif // CRYPTO_CSSM_INIT_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698