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
b05ace90
Kaydet (Commit)
b05ace90
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 XMLSignatureHelper
üst
25f83300
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
64 deletions
+0
-64
unusedcode.easy
unusedcode.easy
+0
-6
xmlsignaturehelper.hxx
xmlsecurity/inc/xmlsecurity/xmlsignaturehelper.hxx
+0
-11
xmlsignaturehelper.cxx
xmlsecurity/source/helper/xmlsignaturehelper.cxx
+0
-47
No files found.
unusedcode.easy
Dosyayı görüntüle @
b05ace90
...
...
@@ -640,12 +640,6 @@ XMLPropertyBackpatcher<rtl::OUString>::XMLPropertyBackpatcher(rtl::OUString cons
XMLPropertyBackpatcher<short>::XMLPropertyBackpatcher(char const*)
XMLPropertyBackpatcher<short>::XMLPropertyBackpatcher(char const*, char const*, unsigned char, short)
XMLPropertyBackpatcher<short>::XMLPropertyBackpatcher(rtl::OUString const&, rtl::OUString const&, unsigned char, short)
XMLSignatureHelper::CreateAndWriteSignature(com::sun::star::uno::Reference<com::sun::star::io::XOutputStream> const&)
XMLSignatureHelper::GetSecurityEnvironmentByIndex(int)
XMLSignatureHelper::GetSecurityEnvironmentNumber()
XMLSignatureHelper::GetUriBinding() const
XMLSignatureHelper::SetUriBinding(com::sun::star::uno::Reference<com::sun::star::xml::crypto::XUriBinding>&)
XMLSignatureHelper::SetX509Certificate(int, int, rtl::OUString const&, rtl::OUString const&, rtl::OUString const&)
XMLTextFieldExport::ProcessDate(xmloff::token::XMLTokenEnum, com::sun::star::util::Date const&, unsigned short)
XMLTextImportHelper::GetRangeFor(rtl::OUString&)
XMLTextImportHelper::HasDrawNameAttribute(com::sun::star::uno::Reference<com::sun::star::xml::sax::XAttributeList> const&, SvXMLNamespaceMap&)
...
...
xmlsecurity/inc/xmlsecurity/xmlsignaturehelper.hxx
Dosyayı görüntüle @
b05ace90
...
...
@@ -137,11 +137,6 @@ public:
// Returns true for success.
bool
Init
();
// Set UriBinding to create input streams to open files.
// Default implementation is capable to open files from disk.
void
SetUriBinding
(
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
xml
::
crypto
::
XUriBinding
>&
rxUriBinding
);
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
xml
::
crypto
::
XUriBinding
>
GetUriBinding
()
const
;
// Set the storage which should be used by the default UriBinding
// Must be set before StatrtMission().
//sODFVersion indicates the ODF version
...
...
@@ -154,8 +149,6 @@ public:
// Get the security environment
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
xml
::
crypto
::
XSecurityEnvironment
>
GetSecurityEnvironment
();
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
xml
::
crypto
::
XSecurityEnvironment
>
GetSecurityEnvironmentByIndex
(
sal_Int32
nId
);
sal_Int32
GetSecurityEnvironmentNumber
();
// After signing/veryfieng, get information about signatures
SignatureInformation
GetSignatureInformation
(
sal_Int32
nSecurityId
)
const
;
...
...
@@ -186,14 +179,10 @@ public:
void
SetX509Certificate
(
sal_Int32
nSecurityId
,
const
rtl
::
OUString
&
ouX509IssuerName
,
const
rtl
::
OUString
&
ouX509SerialNumber
,
const
rtl
::
OUString
&
ouX509Cert
);
void
SetX509Certificate
(
sal_Int32
nSecurityId
,
sal_Int32
nSecurityEnvironmentIndex
,
const
rtl
::
OUString
&
ouX509IssuerName
,
const
rtl
::
OUString
&
ouX509SerialNumber
,
const
rtl
::
OUString
&
ouX509Cert
);
void
SetDateTime
(
sal_Int32
nSecurityId
,
const
Date
&
rDate
,
const
Time
&
rTime
);
void
AddForSigning
(
sal_Int32
securityId
,
const
rtl
::
OUString
&
uri
,
const
rtl
::
OUString
&
objectURL
,
sal_Bool
bBinary
);
bool
CreateAndWriteSignature
(
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
xml
::
sax
::
XDocumentHandler
>&
xDocumentHandler
);
bool
CreateAndWriteSignature
(
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
io
::
XOutputStream
>&
xOutputStream
);
bool
ReadAndVerifySignature
(
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
io
::
XInputStream
>&
xInputStream
);
// MT: ??? I think only for adding/removing, not for new signatures...
...
...
xmlsecurity/source/helper/xmlsignaturehelper.cxx
Dosyayı görüntüle @
b05ace90
...
...
@@ -91,16 +91,6 @@ void XMLSignatureHelper::ImplCreateSEInitializer()
xMCF
->
createInstanceWithContext
(
sSEInitializer
,
mxCtx
),
uno
::
UNO_QUERY
);
}
void
XMLSignatureHelper
::
SetUriBinding
(
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
xml
::
crypto
::
XUriBinding
>&
rxUriBinding
)
{
mxUriBinding
=
rxUriBinding
;
}
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
xml
::
crypto
::
XUriBinding
>
XMLSignatureHelper
::
GetUriBinding
()
const
{
return
mxUriBinding
;
}
void
XMLSignatureHelper
::
SetStorage
(
const
Reference
<
css
::
embed
::
XStorage
>&
rxStorage
,
::
rtl
::
OUString
sODFVersion
)
...
...
@@ -149,21 +139,6 @@ void XMLSignatureHelper::SetX509Certificate(
ouX509Cert
);
}
void
XMLSignatureHelper
::
SetX509Certificate
(
sal_Int32
nSecurityId
,
sal_Int32
nSecurityEnvironmentIndex
,
const
rtl
::
OUString
&
ouX509IssuerName
,
const
rtl
::
OUString
&
ouX509SerialNumber
,
const
rtl
::
OUString
&
ouX509Cert
)
{
mpXSecController
->
setX509Certificate
(
nSecurityId
,
nSecurityEnvironmentIndex
,
ouX509IssuerName
,
ouX509SerialNumber
,
ouX509Cert
);
}
void
XMLSignatureHelper
::
SetDateTime
(
sal_Int32
nSecurityId
,
const
Date
&
rDate
,
const
Time
&
rTime
)
{
::
com
::
sun
::
star
::
util
::
DateTime
stDateTime
;
...
...
@@ -272,18 +247,6 @@ bool XMLSignatureHelper::CreateAndWriteSignature( const uno::Reference< xml::sax
return
!
mbError
;
}
bool
XMLSignatureHelper
::
CreateAndWriteSignature
(
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
io
::
XOutputStream
>&
xOutputStream
)
{
uno
::
Reference
<
xml
::
sax
::
XDocumentHandler
>
xDocHandler
=
CreateDocumentHandlerWithHeader
(
xOutputStream
);
bool
rc
=
CreateAndWriteSignature
(
xDocHandler
);
CloseDocumentHandler
(
xDocHandler
);
return
rc
;
}
bool
XMLSignatureHelper
::
ReadAndVerifySignature
(
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
io
::
XInputStream
>&
xInputStream
)
{
mbError
=
false
;
...
...
@@ -388,16 +351,6 @@ uno::Reference< ::com::sun::star::xml::crypto::XSecurityEnvironment > XMLSignatu
return
(
mxSecurityContext
.
is
()
?
(
mxSecurityContext
->
getSecurityEnvironment
())
:
uno
::
Reference
<
::
com
::
sun
::
star
::
xml
::
crypto
::
XSecurityEnvironment
>
());
}
uno
::
Reference
<
::
com
::
sun
::
star
::
xml
::
crypto
::
XSecurityEnvironment
>
XMLSignatureHelper
::
GetSecurityEnvironmentByIndex
(
sal_Int32
nId
)
{
return
(
mxSecurityContext
.
is
()
?
(
mxSecurityContext
->
getSecurityEnvironmentByIndex
(
nId
))
:
uno
::
Reference
<
::
com
::
sun
::
star
::
xml
::
crypto
::
XSecurityEnvironment
>
());
}
sal_Int32
XMLSignatureHelper
::
GetSecurityEnvironmentNumber
()
{
return
(
mxSecurityContext
.
is
()
?
(
mxSecurityContext
->
getSecurityEnvironmentNumber
())
:
0
);
}
IMPL_LINK
(
XMLSignatureHelper
,
SignatureCreationResultListener
,
XMLSignatureCreationResult
*
,
pResult
)
{
maCreationResults
.
insert
(
maCreationResults
.
begin
()
+
maCreationResults
.
size
(),
*
pResult
);
...
...
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