summaryrefslogtreecommitdiffstats
path: root/crypto/capi_util.h
diff options
context:
space:
mode:
authorrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-20 23:24:09 +0000
committerrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-20 23:24:09 +0000
commite4c9ddaf1f515ab9b11855d710107c91771cb5a9 (patch)
tree955d35dd2b66abb75b4d30d71344d91786a0fa99 /crypto/capi_util.h
parent696e471564eee41d4077c450ec331d57992c303a (diff)
downloadchromium_src-e4c9ddaf1f515ab9b11855d710107c91771cb5a9.zip
chromium_src-e4c9ddaf1f515ab9b11855d710107c91771cb5a9.tar.gz
chromium_src-e4c9ddaf1f515ab9b11855d710107c91771cb5a9.tar.bz2
Crypto: Add crypto_api to code needed outside of crypto
that is not covered by crypto_unittests BUG=85776 TEST=none Review URL: http://codereview.chromium.org/7209001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89756 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'crypto/capi_util.h')
-rw-r--r--crypto/capi_util.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/crypto/capi_util.h b/crypto/capi_util.h
index faaf012..b61c268 100644
--- a/crypto/capi_util.h
+++ b/crypto/capi_util.h
@@ -9,6 +9,8 @@
#include <windows.h>
#include <wincrypt.h>
+#include "crypto/crypto_api.h"
+
namespace crypto {
// CryptAcquireContext when passed CRYPT_NEWKEYSET or CRYPT_DELETEKEYSET in
@@ -21,11 +23,11 @@ namespace crypto {
// "The CryptAcquireContext function is generally thread safe unless
// CRYPT_NEWKEYSET or CRYPT_DELETEKEYSET is specified in the dwFlags
// parameter."
-BOOL CryptAcquireContextLocked(HCRYPTPROV* prov,
- LPCWSTR container,
- LPCWSTR provider,
- DWORD prov_type,
- DWORD flags);
+CRYPTO_API BOOL CryptAcquireContextLocked(HCRYPTPROV* prov,
+ LPCWSTR container,
+ LPCWSTR provider,
+ DWORD prov_type,
+ DWORD flags);
} // namespace crypto