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
dbfb82b6
Kaydet (Commit)
dbfb82b6
authored
Ock 13, 2016
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
xmlsecurity: refactor to allow multiple signature parser implementations
Change-Id: I1d1ae4a0bf41b89fe2f8db9b44d3b0b7a0dfd1cd
üst
5524754e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
xsecctl.cxx
xmlsecurity/source/helper/xsecctl.cxx
+0
-1
xsecctl.hxx
xmlsecurity/source/helper/xsecctl.hxx
+1
-1
xsecverify.cxx
xmlsecurity/source/helper/xsecverify.cxx
+6
-5
No files found.
xmlsecurity/source/helper/xsecctl.cxx
Dosyayı görüntüle @
dbfb82b6
...
@@ -56,7 +56,6 @@ XSecController::XSecController( const cssu::Reference<cssu::XComponentContext>&
...
@@ -56,7 +56,6 @@ XSecController::XSecController( const cssu::Reference<cssu::XComponentContext>&
,
m_nStatusOfSecurityComponents
(
UNINITIALIZED
)
,
m_nStatusOfSecurityComponents
(
UNINITIALIZED
)
,
m_bIsSAXEventKeeperSticky
(
false
)
,
m_bIsSAXEventKeeperSticky
(
false
)
,
m_pErrorMessage
(
nullptr
)
,
m_pErrorMessage
(
nullptr
)
,
m_pXSecParser
(
nullptr
)
,
m_nReservedSignatureId
(
0
)
,
m_nReservedSignatureId
(
0
)
,
m_bVerifyCurrentSignature
(
false
)
,
m_bVerifyCurrentSignature
(
false
)
{
{
...
...
xmlsecurity/source/helper/xsecctl.hxx
Dosyayı görüntüle @
dbfb82b6
...
@@ -310,7 +310,7 @@ private:
...
@@ -310,7 +310,7 @@ private:
/*
/*
* the XSecParser which is used to parse the signature stream
* the XSecParser which is used to parse the signature stream
*/
*/
XSecParser
*
m_pX
SecParser
;
css
::
uno
::
Reference
<
css
::
xml
::
sax
::
XDocumentHandler
>
m_x
SecParser
;
/*
/*
* the caller assigned signature id for the next signature in the
* the caller assigned signature id for the next signature in the
...
...
xmlsecurity/source/helper/xsecverify.cxx
Dosyayı görüntüle @
dbfb82b6
...
@@ -31,6 +31,7 @@
...
@@ -31,6 +31,7 @@
#include <sal/log.hxx>
#include <sal/log.hxx>
#include <unotools/datetime.hxx>
#include <unotools/datetime.hxx>
using
namespace
com
::
sun
::
star
;
namespace
cssu
=
com
::
sun
::
star
::
uno
;
namespace
cssu
=
com
::
sun
::
star
::
uno
;
namespace
cssl
=
com
::
sun
::
star
::
lang
;
namespace
cssl
=
com
::
sun
::
star
::
lang
;
namespace
cssxc
=
com
::
sun
::
star
::
xml
::
crypto
;
namespace
cssxc
=
com
::
sun
::
star
::
xml
::
crypto
;
...
@@ -371,7 +372,7 @@ void XSecController::collectToVerify( const OUString& referenceId )
...
@@ -371,7 +372,7 @@ void XSecController::collectToVerify( const OUString& referenceId )
void
XSecController
::
addSignature
(
sal_Int32
nSignatureId
)
void
XSecController
::
addSignature
(
sal_Int32
nSignatureId
)
{
{
DBG_ASSERT
(
m_
pXSecParser
!=
nullptr
,
"No XSecParser initialized"
);
DBG_ASSERT
(
m_
xSecParser
.
is
()
,
"No XSecParser initialized"
);
m_nReservedSignatureId
=
nSignatureId
;
m_nReservedSignatureId
=
nSignatureId
;
m_bVerifyCurrentSignature
=
true
;
m_bVerifyCurrentSignature
=
true
;
...
@@ -379,18 +380,18 @@ void XSecController::addSignature( sal_Int32 nSignatureId )
...
@@ -379,18 +380,18 @@ void XSecController::addSignature( sal_Int32 nSignatureId )
cssu
::
Reference
<
cssxs
::
XDocumentHandler
>
XSecController
::
createSignatureReader
()
cssu
::
Reference
<
cssxs
::
XDocumentHandler
>
XSecController
::
createSignatureReader
()
{
{
m_
pX
SecParser
=
new
XSecParser
(
this
,
nullptr
);
m_
x
SecParser
=
new
XSecParser
(
this
,
nullptr
);
cssu
::
Reference
<
cssl
::
XInitialization
>
xInitialization
=
m_pXSecParser
;
cssu
::
Reference
<
cssl
::
XInitialization
>
xInitialization
(
m_xSecParser
,
uno
::
UNO_QUERY
)
;
setSAXChainConnector
(
xInitialization
,
nullptr
,
nullptr
);
setSAXChainConnector
(
xInitialization
,
nullptr
,
nullptr
);
return
m_
pX
SecParser
;
return
m_
x
SecParser
;
}
}
void
XSecController
::
releaseSignatureReader
()
void
XSecController
::
releaseSignatureReader
()
{
{
clearSAXChainConnector
(
);
clearSAXChainConnector
(
);
m_
pXSecParser
=
nullptr
;
m_
xSecParser
.
clear
()
;
}
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
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