summaryrefslogtreecommitdiffstats
path: root/base/crypto/signature_verifier.h
diff options
context:
space:
mode:
Diffstat (limited to 'base/crypto/signature_verifier.h')
-rw-r--r--base/crypto/signature_verifier.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/base/crypto/signature_verifier.h b/base/crypto/signature_verifier.h
index bfe6c332..1ef08cf 100644
--- a/base/crypto/signature_verifier.h
+++ b/base/crypto/signature_verifier.h
@@ -11,15 +11,16 @@
#include <cryptoht.h>
#elif defined(OS_MACOSX)
#include <Security/cssm.h>
-#elif defined(OS_WIN)
-#include <windows.h>
-#include <wincrypt.h>
#endif
#include <vector>
#include "base/basictypes.h"
+#if defined(OS_WIN)
+#include "base/crypto/scoped_capi_types.h"
+#endif
+
namespace base {
// The SignatureVerifier class verifies a signature using a bare public key
@@ -90,11 +91,11 @@ class SignatureVerifier {
CSSM_KEY public_key_;
#elif defined(OS_WIN)
- HCRYPTPROV provider_;
+ ScopedHCRYPTPROV provider_;
- HCRYPTHASH hash_object_;
+ ScopedHCRYPTHASH hash_object_;
- HCRYPTKEY public_key_;
+ ScopedHCRYPTKEY public_key_;
#endif
};