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
08ae56de
Kaydet (Commit)
08ae56de
authored
Şub 10, 2012
tarafından
Catalin Iacob
Kaydeden (comit)
Michael Meeks
Şub 13, 2012
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Remove unused code in XSecController
üst
b05ace90
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
107 deletions
+0
-107
unusedcode.easy
unusedcode.easy
+0
-3
xsecctl.cxx
xmlsecurity/source/helper/xsecctl.cxx
+0
-64
xsecctl.hxx
xmlsecurity/source/helper/xsecctl.hxx
+0
-10
xsecsign.cxx
xmlsecurity/source/helper/xsecsign.cxx
+0
-30
No files found.
unusedcode.easy
Dosyayı görüntüle @
08ae56de
...
...
@@ -651,9 +651,6 @@ XMLTextListAutoStylePool_Impl::GetPos(XMLTextListAutoStylePoolEntry_Impl const*)
XMLTextListAutoStylePool_Impl::Remove(XMLTextListAutoStylePoolEntry_Impl*)
XMLVisAreaContext::XMLVisAreaContext(SvXMLImport&, unsigned short, rtl::OUString const&, com::sun::star::uno::Reference<com::sun::star::xml::sax::XAttributeList> const&, Rectangle&, short)
XPropertyList::Clear()
XSecController::collectToSign(int, rtl::OUString const&)
XSecController::getErrorMessage()
XSecController::setSAXChainConnector(com::sun::star::uno::Reference<com::sun::star::xml::sax::XParser> const&, com::sun::star::uno::Reference<com::sun::star::xml::sax::XDocumentHandler> const&, com::sun::star::uno::Reference<com::sun::star::xml::crypto::sax::XElementStackKeeper> const&)
XWindowItem::XWindowItem(unsigned short, Window*)
XWindowItem::XWindowItem(unsigned short, com::sun::star::uno::Reference<com::sun::star::awt::XWindow>&)
XclExpFontBuffer::Insert(ScPatternAttr const&, short, XclExpColorType, bool)
...
...
xmlsecurity/source/helper/xsecctl.cxx
Dosyayı görüntüle @
08ae56de
...
...
@@ -782,44 +782,6 @@ void XSecController::setSAXChainConnector(
initializeSAXChain
(
);
}
void
XSecController
::
setSAXChainConnector
(
const
cssu
::
Reference
<
cssxs
::
XParser
>&
xParser
,
const
cssu
::
Reference
<
cssxs
::
XDocumentHandler
>&
xDocumentHandler
,
const
cssu
::
Reference
<
cssxc
::
sax
::
XElementStackKeeper
>&
xElementStackKeeper
)
/****** XSecController/setSAXChainConnector ***********************************
*
* NAME
* setSAXChainConnector -- configures the components which will
* collaborate with the SAXEventKeeper on the SAX chain.
*
* SYNOPSIS
* setSAXChainConnector( xParser, xDocumentHandler, xElementStackKeeper );
*
* FUNCTION
* See NAME.
*
* INPUTS
* xParser - the previous node on the SAX chain
* xDocumentHandler - the next node on the SAX chain
* xElementStackKeeper -the ElementStackKeeper component which reserves
* missed key SAX events for the SAXEventKeeper
*
* RESULT
* empty
*
* AUTHOR
* Michael Mi
* Email: michael.mi@sun.com
******************************************************************************/
{
m_bIsPreviousNodeInitializable
=
false
;
m_xPreviousNodeOnSAXChain
=
xParser
;
m_xNextNodeOnSAXChain
=
xDocumentHandler
;
m_xElementStackKeeper
=
xElementStackKeeper
;
initializeSAXChain
(
);
}
void
XSecController
::
clearSAXChainConnector
()
/****** XSecController/clearSAXChainConnector *********************************
*
...
...
@@ -920,32 +882,6 @@ void XSecController::endMission()
}
}
const
char
*
XSecController
::
getErrorMessage
()
/****** XSecController/getErrorMessage ****************************************
*
* NAME
* getErrorMessage -- get the last error message
*
* SYNOPSIS
* pErrorMessage = getErrorMessage( );
*
* FUNCTION
* see NAME.
*
* INPUTS
* empty
*
* RESULT
* empty
*
* AUTHOR
* Michael Mi
* Email: michael.mi@sun.com
******************************************************************************/
{
return
m_pErrorMessage
;
}
void
XSecController
::
exportSignature
(
const
cssu
::
Reference
<
cssxs
::
XDocumentHandler
>&
xDocumentHandler
,
const
SignatureInformation
&
signatureInfo
)
...
...
xmlsecurity/source/helper/xsecctl.hxx
Dosyayı görüntüle @
08ae56de
...
...
@@ -425,17 +425,8 @@ public:
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
xml
::
crypto
::
sax
::
XElementStackKeeper
>&
xElementStackKeeper
);
void
setSAXChainConnector
(
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
xml
::
sax
::
XParser
>&
xParser
,
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
xml
::
sax
::
XDocumentHandler
>&
xDocumentHandler
,
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
xml
::
crypto
::
sax
::
XElementStackKeeper
>&
xElementStackKeeper
);
void
clearSAXChainConnector
();
void
endMission
();
const
char
*
getErrorMessage
();
SignatureInformation
getSignatureInformation
(
sal_Int32
nSecurityId
)
const
;
SignatureInformations
getSignatureInformations
()
const
;
...
...
@@ -449,7 +440,6 @@ public:
/*
* For signature generation
*/
void
collectToSign
(
sal_Int32
securityId
,
const
rtl
::
OUString
&
referenceId
);
void
signAStream
(
sal_Int32
securityId
,
const
rtl
::
OUString
&
uri
,
const
rtl
::
OUString
&
objectURL
,
sal_Bool
isBinary
);
...
...
xmlsecurity/source/helper/xsecsign.cxx
Dosyayı görüntüle @
08ae56de
...
...
@@ -192,36 +192,6 @@ cssu::Reference< cssxc::sax::XReferenceResolvedListener > XSecController::prepar
return
xReferenceResolvedListener
;
}
/* public: for signature generation */
void
XSecController
::
collectToSign
(
sal_Int32
securityId
,
const
rtl
::
OUString
&
referenceId
)
{
/* DBG_ASSERT( m_xSAXEventKeeper.is(), "the SAXEventKeeper is NULL" ); */
chainOn
(
true
);
if
(
m_nStatusOfSecurityComponents
==
INITIALIZED
)
/*
* if all security components are ready, add a signature.
*/
{
sal_Int32
nKeeperId
=
m_xSAXEventKeeper
->
addSecurityElementCollector
(
cssxc
::
sax
::
ElementMarkPriority_AFTERMODIFY
,
sal_False
);
int
index
=
findSignatureInfor
(
securityId
);
if
(
index
==
-
1
)
{
InternalSignatureInformation
isi
(
securityId
,
NULL
);
isi
.
addReference
(
TYPE_SAMEDOCUMENT_REFERENCE
,
referenceId
,
nKeeperId
);
m_vInternalSignatureInformations
.
push_back
(
isi
);
}
else
{
m_vInternalSignatureInformations
[
index
].
addReference
(
TYPE_SAMEDOCUMENT_REFERENCE
,
referenceId
,
nKeeperId
);
}
}
}
void
XSecController
::
signAStream
(
sal_Int32
securityId
,
const
rtl
::
OUString
&
uri
,
const
rtl
::
OUString
&
/*objectURL*/
,
sal_Bool
isBinary
)
{
sal_Int32
type
=
((
isBinary
==
sal_True
)
?
TYPE_BINARYSTREAM_REFERENCE
:
TYPE_XMLSTREAM_REFERENCE
);
...
...
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