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
7ccffbf5
Kaydet (Commit)
7ccffbf5
authored
Ock 14, 2016
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
xmlsecurity: import OOXML <X509Certificate>
Change-Id: I051b3b0f69567cf7bcf4837ab6ccda221142b49e
üst
4ab8711c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
3 deletions
+18
-3
ooxmlsecparser.cxx
xmlsecurity/source/helper/ooxmlsecparser.cxx
+16
-3
ooxmlsecparser.hxx
xmlsecurity/source/helper/ooxmlsecparser.hxx
+2
-0
No files found.
xmlsecurity/source/helper/ooxmlsecparser.cxx
Dosyayı görüntüle @
7ccffbf5
...
...
@@ -13,9 +13,10 @@
using
namespace
com
::
sun
::
star
;
OOXMLSecParser
::
OOXMLSecParser
(
XSecController
*
pXSecController
)
:
m_pXSecController
(
pXSecController
),
m_bInDigestValue
(
false
),
m_bInSignatureValue
(
false
)
:
m_pXSecController
(
pXSecController
)
,
m_bInDigestValue
(
false
)
,
m_bInSignatureValue
(
false
)
,
m_bInX509Certificate
(
false
)
{
}
...
...
@@ -65,6 +66,11 @@ throw (xml::sax::SAXException, uno::RuntimeException, std::exception)
m_aSignatureValue
.
clear
();
m_bInSignatureValue
=
true
;
}
else
if
(
rName
==
"X509Certificate"
)
{
m_aX509Certificate
.
clear
();
m_bInX509Certificate
=
true
;
}
if
(
m_xNextHandler
.
is
())
m_xNextHandler
->
startElement
(
rName
,
xAttribs
);
...
...
@@ -83,6 +89,11 @@ void SAL_CALL OOXMLSecParser::endElement(const OUString& rName) throw (xml::sax:
m_pXSecController
->
setSignatureValue
(
m_aSignatureValue
);
m_bInSignatureValue
=
false
;
}
else
if
(
rName
==
"X509Certificate"
)
{
m_pXSecController
->
setX509Certificate
(
m_aX509Certificate
);
m_bInX509Certificate
=
false
;
}
if
(
m_xNextHandler
.
is
())
m_xNextHandler
->
endElement
(
rName
);
...
...
@@ -94,6 +105,8 @@ void SAL_CALL OOXMLSecParser::characters(const OUString& rChars) throw (xml::sax
m_aDigestValue
+=
rChars
;
else
if
(
m_bInSignatureValue
)
m_aSignatureValue
+=
rChars
;
else
if
(
m_bInX509Certificate
)
m_aX509Certificate
+=
rChars
;
if
(
m_xNextHandler
.
is
())
m_xNextHandler
->
characters
(
rChars
);
...
...
xmlsecurity/source/helper/ooxmlsecparser.hxx
Dosyayı görüntüle @
7ccffbf5
...
...
@@ -33,6 +33,8 @@ class OOXMLSecParser: public cppu::WeakImplHelper
OUString
m_aDigestValue
;
bool
m_bInSignatureValue
;
OUString
m_aSignatureValue
;
bool
m_bInX509Certificate
;
OUString
m_aX509Certificate
;
public
:
OOXMLSecParser
(
XSecController
*
pXSecController
);
...
...
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