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
54c401d7
Kaydet (Commit)
54c401d7
authored
Ara 16, 2016
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
loplugin:staticmethods (clang-cl)
Change-Id: Id97600a7d29fbe938d67ea074ca12dd665a29cc3
üst
b2d800ed
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
11 deletions
+11
-11
securityenvironment_mscryptimpl.hxx
...source/xmlsec/mscrypt/securityenvironment_mscryptimpl.hxx
+1
-1
xmlencryption_mscryptimpl.cxx
...urity/source/xmlsec/mscrypt/xmlencryption_mscryptimpl.cxx
+6
-6
xmlsignature_mscryptimpl.cxx
...curity/source/xmlsec/mscrypt/xmlsignature_mscryptimpl.cxx
+4
-4
No files found.
xmlsecurity/source/xmlsec/mscrypt/securityenvironment_mscryptimpl.hxx
Dosyayı görüntüle @
54c401d7
...
@@ -177,7 +177,7 @@ class SecurityEnvironment_MSCryptImpl : public ::cppu::WeakImplHelper<
...
@@ -177,7 +177,7 @@ class SecurityEnvironment_MSCryptImpl : public ::cppu::WeakImplHelper<
xmlSecKeysMngrPtr
createKeysManager
()
throw
(
css
::
uno
::
Exception
,
css
::
uno
::
RuntimeException
)
;
xmlSecKeysMngrPtr
createKeysManager
()
throw
(
css
::
uno
::
Exception
,
css
::
uno
::
RuntimeException
)
;
void
destroyKeysManager
(
xmlSecKeysMngrPtr
pKeysMngr
)
throw
(
css
::
uno
::
Exception
,
css
::
uno
::
RuntimeException
)
;
static
void
destroyKeysManager
(
xmlSecKeysMngrPtr
pKeysMngr
)
throw
(
css
::
uno
::
Exception
,
css
::
uno
::
RuntimeException
)
;
}
;
}
;
#endif // INCLUDED_XMLSECURITY_SOURCE_XMLSEC_MSCRYPT_SECURITYENVIRONMENT_MSCRYPTIMPL_HXX
#endif // INCLUDED_XMLSECURITY_SOURCE_XMLSEC_MSCRYPT_SECURITYENVIRONMENT_MSCRYPTIMPL_HXX
...
...
xmlsecurity/source/xmlsec/mscrypt/xmlencryption_mscryptimpl.cxx
Dosyayı görüntüle @
54c401d7
...
@@ -157,7 +157,7 @@ SAL_CALL XMLEncryption_MSCryptImpl::encrypt(
...
@@ -157,7 +157,7 @@ SAL_CALL XMLEncryption_MSCryptImpl::encrypt(
pEncCtx
=
xmlSecEncCtxCreate
(
pMngr
)
;
pEncCtx
=
xmlSecEncCtxCreate
(
pMngr
)
;
if
(
pEncCtx
==
nullptr
)
if
(
pEncCtx
==
nullptr
)
{
{
pSecEnv
->
destroyKeysManager
(
pMngr
);
SecurityEnvironment_MSCryptImpl
::
destroyKeysManager
(
pMngr
);
//throw XMLEncryptionException() ;
//throw XMLEncryptionException() ;
clearErrorRecorder
();
clearErrorRecorder
();
return
aTemplate
;
return
aTemplate
;
...
@@ -167,13 +167,13 @@ SAL_CALL XMLEncryption_MSCryptImpl::encrypt(
...
@@ -167,13 +167,13 @@ SAL_CALL XMLEncryption_MSCryptImpl::encrypt(
if
(
xmlSecEncCtxXmlEncrypt
(
pEncCtx
,
pEncryptedData
,
pContent
)
<
0
)
{
if
(
xmlSecEncCtxXmlEncrypt
(
pEncCtx
,
pEncryptedData
,
pContent
)
<
0
)
{
aTemplate
->
setStatus
(
css
::
xml
::
crypto
::
SecurityOperationStatus_UNKNOWN
);
aTemplate
->
setStatus
(
css
::
xml
::
crypto
::
SecurityOperationStatus_UNKNOWN
);
xmlSecEncCtxDestroy
(
pEncCtx
)
;
xmlSecEncCtxDestroy
(
pEncCtx
)
;
pSecEnv
->
destroyKeysManager
(
pMngr
);
SecurityEnvironment_MSCryptImpl
::
destroyKeysManager
(
pMngr
);
clearErrorRecorder
();
clearErrorRecorder
();
return
aTemplate
;
return
aTemplate
;
}
}
aTemplate
->
setStatus
(
css
::
xml
::
crypto
::
SecurityOperationStatus_OPERATION_SUCCEEDED
);
aTemplate
->
setStatus
(
css
::
xml
::
crypto
::
SecurityOperationStatus_OPERATION_SUCCEEDED
);
xmlSecEncCtxDestroy
(
pEncCtx
)
;
xmlSecEncCtxDestroy
(
pEncCtx
)
;
pSecEnv
->
destroyKeysManager
(
pMngr
);
SecurityEnvironment_MSCryptImpl
::
destroyKeysManager
(
pMngr
);
//get the new EncryptedData element
//get the new EncryptedData element
if
(
isParentRef
)
if
(
isParentRef
)
...
@@ -263,7 +263,7 @@ XMLEncryption_MSCryptImpl::decrypt(
...
@@ -263,7 +263,7 @@ XMLEncryption_MSCryptImpl::decrypt(
pEncCtx
=
xmlSecEncCtxCreate
(
pMngr
)
;
pEncCtx
=
xmlSecEncCtxCreate
(
pMngr
)
;
if
(
pEncCtx
==
nullptr
)
if
(
pEncCtx
==
nullptr
)
{
{
pSecEnv
->
destroyKeysManager
(
pMngr
);
SecurityEnvironment_MSCryptImpl
::
destroyKeysManager
(
pMngr
);
//throw XMLEncryptionException() ;
//throw XMLEncryptionException() ;
clearErrorRecorder
();
clearErrorRecorder
();
return
aTemplate
;
return
aTemplate
;
...
@@ -273,7 +273,7 @@ XMLEncryption_MSCryptImpl::decrypt(
...
@@ -273,7 +273,7 @@ XMLEncryption_MSCryptImpl::decrypt(
if
(
xmlSecEncCtxDecrypt
(
pEncCtx
,
pEncryptedData
)
<
0
||
pEncCtx
->
result
==
nullptr
)
{
if
(
xmlSecEncCtxDecrypt
(
pEncCtx
,
pEncryptedData
)
<
0
||
pEncCtx
->
result
==
nullptr
)
{
aTemplate
->
setStatus
(
css
::
xml
::
crypto
::
SecurityOperationStatus_UNKNOWN
);
aTemplate
->
setStatus
(
css
::
xml
::
crypto
::
SecurityOperationStatus_UNKNOWN
);
xmlSecEncCtxDestroy
(
pEncCtx
)
;
xmlSecEncCtxDestroy
(
pEncCtx
)
;
pSecEnv
->
destroyKeysManager
(
pMngr
);
SecurityEnvironment_MSCryptImpl
::
destroyKeysManager
(
pMngr
);
//throw XMLEncryptionException() ;
//throw XMLEncryptionException() ;
clearErrorRecorder
();
clearErrorRecorder
();
...
@@ -306,7 +306,7 @@ XMLEncryption_MSCryptImpl::decrypt(
...
@@ -306,7 +306,7 @@ XMLEncryption_MSCryptImpl::decrypt(
//Destroy the encryption context
//Destroy the encryption context
xmlSecEncCtxDestroy
(
pEncCtx
)
;
xmlSecEncCtxDestroy
(
pEncCtx
)
;
pSecEnv
->
destroyKeysManager
(
pMngr
);
SecurityEnvironment_MSCryptImpl
::
destroyKeysManager
(
pMngr
);
//get the decrypted element
//get the decrypted element
XMLElementWrapper_XmlSecImpl
*
ret
=
new
XMLElementWrapper_XmlSecImpl
(
isParentRef
?
XMLElementWrapper_XmlSecImpl
*
ret
=
new
XMLElementWrapper_XmlSecImpl
(
isParentRef
?
...
...
xmlsecurity/source/xmlsec/mscrypt/xmlsignature_mscryptimpl.cxx
Dosyayı görüntüle @
54c401d7
...
@@ -116,7 +116,7 @@ SAL_CALL XMLSignature_MSCryptImpl::generate(
...
@@ -116,7 +116,7 @@ SAL_CALL XMLSignature_MSCryptImpl::generate(
if
(
pDsigCtx
==
nullptr
)
if
(
pDsigCtx
==
nullptr
)
{
{
//throw XMLSignatureException() ;
//throw XMLSignatureException() ;
pSecEnv
->
destroyKeysManager
(
pMngr
);
SecurityEnvironment_MSCryptImpl
::
destroyKeysManager
(
pMngr
);
clearErrorRecorder
();
clearErrorRecorder
();
return
aTemplate
;
return
aTemplate
;
}
}
...
@@ -136,7 +136,7 @@ SAL_CALL XMLSignature_MSCryptImpl::generate(
...
@@ -136,7 +136,7 @@ SAL_CALL XMLSignature_MSCryptImpl::generate(
xmlSecDSigCtxDestroy
(
pDsigCtx
)
;
xmlSecDSigCtxDestroy
(
pDsigCtx
)
;
pSecEnv
->
destroyKeysManager
(
pMngr
);
SecurityEnvironment_MSCryptImpl
::
destroyKeysManager
(
pMngr
);
//Unregistered the stream/URI binding
//Unregistered the stream/URI binding
if
(
xUriBinding
.
is
()
)
if
(
xUriBinding
.
is
()
)
...
@@ -212,7 +212,7 @@ SAL_CALL XMLSignature_MSCryptImpl::validate(
...
@@ -212,7 +212,7 @@ SAL_CALL XMLSignature_MSCryptImpl::validate(
pDsigCtx
=
xmlSecDSigCtxCreate
(
pMngr
)
;
pDsigCtx
=
xmlSecDSigCtxCreate
(
pMngr
)
;
if
(
pDsigCtx
==
nullptr
)
if
(
pDsigCtx
==
nullptr
)
{
{
pSecEnv
->
destroyKeysManager
(
pMngr
);
SecurityEnvironment_MSCryptImpl
::
destroyKeysManager
(
pMngr
);
clearErrorRecorder
();
clearErrorRecorder
();
return
aTemplate
;
return
aTemplate
;
}
}
...
@@ -253,7 +253,7 @@ SAL_CALL XMLSignature_MSCryptImpl::validate(
...
@@ -253,7 +253,7 @@ SAL_CALL XMLSignature_MSCryptImpl::validate(
}
}
xmlSecDSigCtxDestroy
(
pDsigCtx
)
;
xmlSecDSigCtxDestroy
(
pDsigCtx
)
;
pSecEnv
->
destroyKeysManager
(
pMngr
);
SecurityEnvironment_MSCryptImpl
::
destroyKeysManager
(
pMngr
);
//Unregistered the stream/URI binding
//Unregistered the stream/URI binding
if
(
xUriBinding
.
is
()
)
if
(
xUriBinding
.
is
()
)
...
...
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