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
9adca57f
Kaydet (Commit)
9adca57f
authored
Ock 05, 2016
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
xmlsecurity: indentation fixes
Change-Id: I2125d23a535891c0269f12e5abfbe72fa5422393
üst
804e2403
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
53 additions
and
53 deletions
+53
-53
xsecparser.cxx
xmlsecurity/source/helper/xsecparser.cxx
+53
-53
No files found.
xmlsecurity/source/helper/xsecparser.cxx
Dosyayı görüntüle @
9adca57f
...
@@ -125,64 +125,64 @@ void SAL_CALL XSecParser::startElement(
...
@@ -125,64 +125,64 @@ void SAL_CALL XSecParser::startElement(
m_bReferenceUnresolved
=
true
;
m_bReferenceUnresolved
=
true
;
}
}
}
}
else
if
(
aName
==
TAG_TRANSFORM
)
else
if
(
aName
==
TAG_TRANSFORM
)
{
{
if
(
m_bReferenceUnresolved
)
if
(
m_bReferenceUnresolved
)
{
{
OUString
ouAlgorithm
=
xAttribs
->
getValueByName
(
ATTR_ALGORITHM
);
OUString
ouAlgorithm
=
xAttribs
->
getValueByName
(
ATTR_ALGORITHM
);
if
(
ouAlgorithm
!=
nullptr
&&
ouAlgorithm
==
ALGO_C14N
)
if
(
ouAlgorithm
!=
nullptr
&&
ouAlgorithm
==
ALGO_C14N
)
/*
/*
* a xml stream
* a xml stream
*/
*/
{
{
m_pXSecController
->
addStreamReference
(
m_currentReferenceURI
,
false
);
m_pXSecController
->
addStreamReference
(
m_currentReferenceURI
,
false
);
m_bReferenceUnresolved
=
false
;
m_bReferenceUnresolved
=
false
;
}
}
}
}
}
}
else
if
(
aName
==
TAG_X509ISSUERNAME
)
else
if
(
aName
==
TAG_X509ISSUERNAME
)
{
{
m_ouX509IssuerName
.
clear
();
m_ouX509IssuerName
.
clear
();
m_bInX509IssuerName
=
true
;
m_bInX509IssuerName
=
true
;
}
}
else
if
(
aName
==
TAG_X509SERIALNUMBER
)
else
if
(
aName
==
TAG_X509SERIALNUMBER
)
{
{
m_ouX509SerialNumber
.
clear
();
m_ouX509SerialNumber
.
clear
();
m_bInX509SerialNumber
=
true
;
m_bInX509SerialNumber
=
true
;
}
}
else
if
(
aName
==
TAG_X509CERTIFICATE
)
else
if
(
aName
==
TAG_X509CERTIFICATE
)
{
{
m_ouX509Certificate
.
clear
();
m_ouX509Certificate
.
clear
();
m_bInX509Certificate
=
true
;
m_bInX509Certificate
=
true
;
}
}
else
if
(
aName
==
TAG_SIGNATUREVALUE
)
else
if
(
aName
==
TAG_SIGNATUREVALUE
)
{
{
m_ouSignatureValue
.
clear
();
m_ouSignatureValue
.
clear
();
m_bInSignatureValue
=
true
;
m_bInSignatureValue
=
true
;
}
}
else
if
(
aName
==
TAG_DIGESTVALUE
)
else
if
(
aName
==
TAG_DIGESTVALUE
)
{
{
m_ouDigestValue
.
clear
();
m_ouDigestValue
.
clear
();
m_bInDigestValue
=
true
;
m_bInDigestValue
=
true
;
}
}
else
if
(
aName
==
TAG_SIGNATUREPROPERTY
)
else
if
(
aName
==
TAG_SIGNATUREPROPERTY
)
{
{
if
(
ouIdAttr
!=
nullptr
)
if
(
ouIdAttr
!=
nullptr
)
{
{
m_pXSecController
->
setPropertyId
(
ouIdAttr
);
m_pXSecController
->
setPropertyId
(
ouIdAttr
);
}
}
}
}
else
if
(
aName
==
NSTAG_DC
":"
TAG_DATE
)
else
if
(
aName
==
NSTAG_DC
":"
TAG_DATE
)
{
{
m_ouDate
.
clear
();
m_ouDate
.
clear
();
m_bInDate
=
true
;
m_bInDate
=
true
;
}
}
else
if
(
aName
==
NSTAG_DC
":"
TAG_DESCRIPTION
)
else
if
(
aName
==
NSTAG_DC
":"
TAG_DESCRIPTION
)
{
{
m_ouDescription
.
clear
();
m_ouDescription
.
clear
();
m_bInDescription
=
true
;
m_bInDescription
=
true
;
}
}
if
(
m_xNextHandler
.
is
())
if
(
m_xNextHandler
.
is
())
{
{
...
@@ -235,31 +235,31 @@ void SAL_CALL XSecParser::endElement( const OUString& aName )
...
@@ -235,31 +235,31 @@ void SAL_CALL XSecParser::endElement( const OUString& aName )
m_pXSecController
->
setSignatureValue
(
m_ouSignatureValue
);
m_pXSecController
->
setSignatureValue
(
m_ouSignatureValue
);
m_bInSignatureValue
=
false
;
m_bInSignatureValue
=
false
;
}
}
else
if
(
aName
==
TAG_X509ISSUERNAME
)
else
if
(
aName
==
TAG_X509ISSUERNAME
)
{
{
m_pXSecController
->
setX509IssuerName
(
m_ouX509IssuerName
);
m_pXSecController
->
setX509IssuerName
(
m_ouX509IssuerName
);
m_bInX509IssuerName
=
false
;
m_bInX509IssuerName
=
false
;
}
}
else
if
(
aName
==
TAG_X509SERIALNUMBER
)
else
if
(
aName
==
TAG_X509SERIALNUMBER
)
{
{
m_pXSecController
->
setX509SerialNumber
(
m_ouX509SerialNumber
);
m_pXSecController
->
setX509SerialNumber
(
m_ouX509SerialNumber
);
m_bInX509SerialNumber
=
false
;
m_bInX509SerialNumber
=
false
;
}
}
else
if
(
aName
==
TAG_X509CERTIFICATE
)
else
if
(
aName
==
TAG_X509CERTIFICATE
)
{
{
m_pXSecController
->
setX509Certificate
(
m_ouX509Certificate
);
m_pXSecController
->
setX509Certificate
(
m_ouX509Certificate
);
m_bInX509Certificate
=
false
;
m_bInX509Certificate
=
false
;
}
}
else
if
(
aName
==
NSTAG_DC
":"
TAG_DATE
)
else
if
(
aName
==
NSTAG_DC
":"
TAG_DATE
)
{
{
m_pXSecController
->
setDate
(
m_ouDate
);
m_pXSecController
->
setDate
(
m_ouDate
);
m_bInDate
=
false
;
m_bInDate
=
false
;
}
}
else
if
(
aName
==
NSTAG_DC
":"
TAG_DESCRIPTION
)
else
if
(
aName
==
NSTAG_DC
":"
TAG_DESCRIPTION
)
{
{
m_pXSecController
->
setDescription
(
m_ouDescription
);
m_pXSecController
->
setDescription
(
m_ouDescription
);
m_bInDescription
=
false
;
m_bInDescription
=
false
;
}
}
if
(
m_xNextHandler
.
is
())
if
(
m_xNextHandler
.
is
())
{
{
...
@@ -316,7 +316,7 @@ void SAL_CALL XSecParser::characters( const OUString& aChars )
...
@@ -316,7 +316,7 @@ void SAL_CALL XSecParser::characters( const OUString& aChars )
if
(
m_xNextHandler
.
is
())
if
(
m_xNextHandler
.
is
())
{
{
m_xNextHandler
->
characters
(
aChars
);
m_xNextHandler
->
characters
(
aChars
);
}
}
}
}
void
SAL_CALL
XSecParser
::
ignorableWhitespace
(
const
OUString
&
aWhitespaces
)
void
SAL_CALL
XSecParser
::
ignorableWhitespace
(
const
OUString
&
aWhitespaces
)
...
@@ -325,7 +325,7 @@ void SAL_CALL XSecParser::ignorableWhitespace( const OUString& aWhitespaces )
...
@@ -325,7 +325,7 @@ void SAL_CALL XSecParser::ignorableWhitespace( const OUString& aWhitespaces )
if
(
m_xNextHandler
.
is
())
if
(
m_xNextHandler
.
is
())
{
{
m_xNextHandler
->
ignorableWhitespace
(
aWhitespaces
);
m_xNextHandler
->
ignorableWhitespace
(
aWhitespaces
);
}
}
}
}
void
SAL_CALL
XSecParser
::
processingInstruction
(
const
OUString
&
aTarget
,
const
OUString
&
aData
)
void
SAL_CALL
XSecParser
::
processingInstruction
(
const
OUString
&
aTarget
,
const
OUString
&
aData
)
...
@@ -334,7 +334,7 @@ void SAL_CALL XSecParser::processingInstruction( const OUString& aTarget, const
...
@@ -334,7 +334,7 @@ void SAL_CALL XSecParser::processingInstruction( const OUString& aTarget, const
if
(
m_xNextHandler
.
is
())
if
(
m_xNextHandler
.
is
())
{
{
m_xNextHandler
->
processingInstruction
(
aTarget
,
aData
);
m_xNextHandler
->
processingInstruction
(
aTarget
,
aData
);
}
}
}
}
void
SAL_CALL
XSecParser
::
setDocumentLocator
(
const
cssu
::
Reference
<
cssxs
::
XLocator
>&
xLocator
)
void
SAL_CALL
XSecParser
::
setDocumentLocator
(
const
cssu
::
Reference
<
cssxs
::
XLocator
>&
xLocator
)
...
@@ -343,7 +343,7 @@ void SAL_CALL XSecParser::setDocumentLocator( const cssu::Reference< cssxs::XLoc
...
@@ -343,7 +343,7 @@ void SAL_CALL XSecParser::setDocumentLocator( const cssu::Reference< cssxs::XLoc
if
(
m_xNextHandler
.
is
())
if
(
m_xNextHandler
.
is
())
{
{
m_xNextHandler
->
setDocumentLocator
(
xLocator
);
m_xNextHandler
->
setDocumentLocator
(
xLocator
);
}
}
}
}
/*
/*
...
...
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