Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
9b2e6d45
Kaydet (Commit)
9b2e6d45
authored
Agu 04, 2012
tarafından
Arnaud Versini
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Replace usage of rtl/memory.h in xmlsecurity their equivalent from string.h
Change-Id: Id4a088864ee28163160d6ac408592952fe6c797d
üst
1af0e36f
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
17 additions
and
15 deletions
+17
-15
securityenvironment_mscryptimpl.cxx
...source/xmlsec/mscrypt/securityenvironment_mscryptimpl.cxx
+3
-4
x509certificate_mscryptimpl.cxx
...ity/source/xmlsec/mscrypt/x509certificate_mscryptimpl.cxx
+3
-1
ciphercontext.cxx
xmlsecurity/source/xmlsec/nss/ciphercontext.cxx
+7
-7
securityenvironment_nssimpl.cxx
...ecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx
+1
-1
x509certificate_nssimpl.cxx
xmlsecurity/source/xmlsec/nss/x509certificate_nssimpl.cxx
+1
-1
xmlelementwrapper_xmlsecimpl.cxx
xmlsecurity/source/xmlsec/xmlelementwrapper_xmlsecimpl.cxx
+2
-1
No files found.
xmlsecurity/source/xmlsec/mscrypt/securityenvironment_mscryptimpl.cxx
Dosyayı görüntüle @
9b2e6d45
...
...
@@ -17,6 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include <string.h>
#ifdef _MSC_VER
#pragma warning(push,1)
...
...
@@ -48,8 +49,6 @@
#include <osl/nlsupport.h>
#include <osl/process.h>
#include <rtl/memory.h>
#include "../diagnose.hxx"
using
namespace
xmlsecurity
;
...
...
@@ -211,7 +210,7 @@ Reference< XSingleServiceFactory > SecurityEnvironment_MSCryptImpl :: impl_creat
sal_Int64
SAL_CALL
SecurityEnvironment_MSCryptImpl
::
getSomething
(
const
Sequence
<
sal_Int8
>&
aIdentifier
)
throw
(
RuntimeException
)
{
if
(
aIdentifier
.
getLength
()
==
16
&&
0
==
rtl_compareMemory
(
getUnoTunnelId
().
getConstArray
(),
aIdentifier
.
getConstArray
(),
16
)
)
{
if
(
aIdentifier
.
getLength
()
==
16
&&
0
==
memcmp
(
getUnoTunnelId
().
getConstArray
(),
aIdentifier
.
getConstArray
(),
16
)
)
{
return
(
sal_Int64
)
this
;
}
return
0
;
...
...
@@ -947,7 +946,7 @@ sal_Int32 SecurityEnvironment_MSCryptImpl :: verifyCertificate(
CERT_ENHKEY_USAGE
enhKeyUsage
;
CERT_USAGE_MATCH
certUsage
;
CERT_CHAIN_PARA
chainPara
;
rtl_zeroMemory
(
&
chainPara
,
sizeof
(
CERT_CHAIN_PARA
));
memset
(
&
chainPara
,
0
,
sizeof
(
CERT_CHAIN_PARA
));
//Prepare parameter for CertGetCertificateChain
enhKeyUsage
.
cUsageIdentifier
=
0
;
...
...
xmlsecurity/source/xmlsec/mscrypt/x509certificate_mscryptimpl.cxx
Dosyayı görüntüle @
9b2e6d45
...
...
@@ -17,6 +17,8 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include <string.h>
#include <sal/config.h>
#include <comphelper/servicehelper.hxx>
#include "x509certificate_mscryptimpl.hxx"
...
...
@@ -471,7 +473,7 @@ void X509Certificate_MSCryptImpl :: setRawCert( Sequence< sal_Int8 > rawCert ) t
/* XUnoTunnel */
sal_Int64
SAL_CALL
X509Certificate_MSCryptImpl
::
getSomething
(
const
Sequence
<
sal_Int8
>&
aIdentifier
)
throw
(
RuntimeException
)
{
if
(
aIdentifier
.
getLength
()
==
16
&&
0
==
rtl_compareMemory
(
getUnoTunnelId
().
getConstArray
(),
aIdentifier
.
getConstArray
(),
16
)
)
{
if
(
aIdentifier
.
getLength
()
==
16
&&
0
==
memcmp
(
getUnoTunnelId
().
getConstArray
(),
aIdentifier
.
getConstArray
(),
16
)
)
{
return
(
sal_Int64
)
this
;
}
return
0
;
...
...
xmlsecurity/source/xmlsec/nss/ciphercontext.cxx
Dosyayı görüntüle @
9b2e6d45
...
...
@@ -130,23 +130,23 @@ uno::Sequence< ::sal_Int8 > SAL_CALL OCipherContext::convertWithCipherContext( c
if
(
nToConvertLen
==
0
)
{
m_aLastBlock
.
realloc
(
nOldLastBlockLen
+
aData
.
getLength
()
);
rtl_copyMemor
y
(
m_aLastBlock
.
getArray
()
+
nOldLastBlockLen
,
aData
.
getConstArray
(),
aData
.
getLength
()
);
memcp
y
(
m_aLastBlock
.
getArray
()
+
nOldLastBlockLen
,
aData
.
getConstArray
(),
aData
.
getLength
()
);
// aToConvert stays empty
}
else
if
(
nToConvertLen
<
nOldLastBlockLen
)
{
rtl_copyMemor
y
(
aToConvert
.
getArray
(),
m_aLastBlock
.
getConstArray
(),
nToConvertLen
);
rtl_copyMemor
y
(
m_aLastBlock
.
getArray
(),
m_aLastBlock
.
getConstArray
()
+
nToConvertLen
,
nOldLastBlockLen
-
nToConvertLen
);
memcp
y
(
aToConvert
.
getArray
(),
m_aLastBlock
.
getConstArray
(),
nToConvertLen
);
memcp
y
(
m_aLastBlock
.
getArray
(),
m_aLastBlock
.
getConstArray
()
+
nToConvertLen
,
nOldLastBlockLen
-
nToConvertLen
);
m_aLastBlock
.
realloc
(
nOldLastBlockLen
-
nToConvertLen
+
aData
.
getLength
()
);
rtl_copyMemor
y
(
m_aLastBlock
.
getArray
()
+
nOldLastBlockLen
-
nToConvertLen
,
aData
.
getConstArray
(),
aData
.
getLength
()
);
memcp
y
(
m_aLastBlock
.
getArray
()
+
nOldLastBlockLen
-
nToConvertLen
,
aData
.
getConstArray
(),
aData
.
getLength
()
);
}
else
{
rtl_copyMemor
y
(
aToConvert
.
getArray
(),
m_aLastBlock
.
getConstArray
(),
nOldLastBlockLen
);
memcp
y
(
aToConvert
.
getArray
(),
m_aLastBlock
.
getConstArray
(),
nOldLastBlockLen
);
if
(
nToConvertLen
>
nOldLastBlockLen
)
rtl_copyMemor
y
(
aToConvert
.
getArray
()
+
nOldLastBlockLen
,
aData
.
getConstArray
(),
nToConvertLen
-
nOldLastBlockLen
);
memcp
y
(
aToConvert
.
getArray
()
+
nOldLastBlockLen
,
aData
.
getConstArray
(),
nToConvertLen
-
nOldLastBlockLen
);
m_aLastBlock
.
realloc
(
nAvailableData
-
nToConvertLen
);
rtl_copyMemor
y
(
m_aLastBlock
.
getArray
(),
aData
.
getConstArray
()
+
nToConvertLen
-
nOldLastBlockLen
,
nAvailableData
-
nToConvertLen
);
memcp
y
(
m_aLastBlock
.
getArray
(),
aData
.
getConstArray
()
+
nToConvertLen
-
nOldLastBlockLen
,
nAvailableData
-
nToConvertLen
);
}
}
...
...
xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx
Dosyayı görüntüle @
9b2e6d45
...
...
@@ -223,7 +223,7 @@ Reference< XSingleServiceFactory > SecurityEnvironment_NssImpl :: impl_createFac
sal_Int64
SAL_CALL
SecurityEnvironment_NssImpl
::
getSomething
(
const
Sequence
<
sal_Int8
>&
aIdentifier
)
throw
(
RuntimeException
)
{
if
(
aIdentifier
.
getLength
()
==
16
&&
0
==
rtl_compareMemory
(
getUnoTunnelId
().
getConstArray
(),
aIdentifier
.
getConstArray
(),
16
)
)
{
if
(
aIdentifier
.
getLength
()
==
16
&&
0
==
memcmp
(
getUnoTunnelId
().
getConstArray
(),
aIdentifier
.
getConstArray
(),
16
)
)
{
return
sal
::
static_int_cast
<
sal_Int64
>
(
reinterpret_cast
<
sal_uIntPtr
>
(
this
));
}
return
0
;
...
...
xmlsecurity/source/xmlsec/nss/x509certificate_nssimpl.cxx
Dosyayı görüntüle @
9b2e6d45
...
...
@@ -304,7 +304,7 @@ void X509Certificate_NssImpl :: setRawCert( Sequence< sal_Int8 > rawCert ) throw
/* XUnoTunnel */
sal_Int64
SAL_CALL
X509Certificate_NssImpl
::
getSomething
(
const
Sequence
<
sal_Int8
>&
aIdentifier
)
throw
(
RuntimeException
)
{
if
(
aIdentifier
.
getLength
()
==
16
&&
0
==
rtl_compareMemory
(
getUnoTunnelId
().
getConstArray
(),
aIdentifier
.
getConstArray
(),
16
)
)
{
if
(
aIdentifier
.
getLength
()
==
16
&&
0
==
memcmp
(
getUnoTunnelId
().
getConstArray
(),
aIdentifier
.
getConstArray
(),
16
)
)
{
return
sal
::
static_int_cast
<
sal_Int64
>
(
reinterpret_cast
<
sal_uIntPtr
>
(
this
));
}
return
0
;
...
...
xmlsecurity/source/xmlsec/xmlelementwrapper_xmlsecimpl.cxx
Dosyayı görüntüle @
9b2e6d45
...
...
@@ -17,6 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include <string.h>
#include "xmlelementwrapper_xmlsecimpl.hxx"
#include <cppuhelper/typeprovider.hxx>
...
...
@@ -56,7 +57,7 @@ sal_Int64 SAL_CALL XMLElementWrapper_XmlSecImpl::getSomething( const cssu::Seque
throw
(
cssu
::
RuntimeException
)
{
if
(
aIdentifier
.
getLength
()
==
16
&&
0
==
rtl_compareMemory
(
0
==
memcmp
(
getUnoTunnelImplementationId
().
getConstArray
(),
aIdentifier
.
getConstArray
(),
16
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment