summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoachim Lingner <jl@openoffice.org>2009-12-08 12:49:19 +0100
committerJoachim Lingner <jl@openoffice.org>2009-12-08 12:49:19 +0100
commitfbca305db0ca6c39dfe78f7356521d2eada1c15e (patch)
tree90c3a10d0686f525534d26243816c2ceead9b27c
parent0fac9b6505860bdacb92638f4d4d5dba6fc55795 (diff)
jl137: #i103420# MinGW struggles with SecureZeroMemory. Using rtl_zeroMemory
-rw-r--r--xmlsecurity/source/xmlsec/mscrypt/securityenvironment_mscryptimpl.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/xmlsecurity/source/xmlsec/mscrypt/securityenvironment_mscryptimpl.cxx b/xmlsecurity/source/xmlsec/mscrypt/securityenvironment_mscryptimpl.cxx
index 5cbbc421f01d..2800ed7a9064 100644
--- a/xmlsecurity/source/xmlsec/mscrypt/securityenvironment_mscryptimpl.cxx
+++ b/xmlsecurity/source/xmlsec/mscrypt/securityenvironment_mscryptimpl.cxx
@@ -64,6 +64,8 @@
#include <osl/process.h>
//CP : end
+#include <rtl/memory.h>
+
#include "../diagnose.hxx"
using namespace xmlsecurity;
@@ -995,7 +997,7 @@ sal_Int32 SecurityEnvironment_MSCryptImpl :: verifyCertificate(
CERT_ENHKEY_USAGE enhKeyUsage ;
CERT_USAGE_MATCH certUsage ;
CERT_CHAIN_PARA chainPara ;
- SecureZeroMemory(&chainPara, sizeof(CERT_CHAIN_PARA));
+ rtl_zeroMemory(&chainPara, sizeof(CERT_CHAIN_PARA));
//Prepare parameter for CertGetCertificateChain
enhKeyUsage.cUsageIdentifier = 0 ;