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
39da0a99
Kaydet (Commit)
39da0a99
authored
Eyl 16, 2015
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
convert Link<> to typed
Change-Id: I2a149a0a2a189ca84ce8e71f32d0f3696a0bb50d
üst
1e2119fd
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
31 additions
and
31 deletions
+31
-31
digitalsignaturesdialog.hxx
xmlsecurity/inc/xmlsecurity/digitalsignaturesdialog.hxx
+1
-1
xmlsignaturehelper.hxx
xmlsecurity/inc/xmlsecurity/xmlsignaturehelper.hxx
+5
-5
digitalsignaturesdialog.cxx
xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx
+2
-2
xmlsignaturehelper.cxx
xmlsecurity/source/helper/xmlsignaturehelper.cxx
+9
-13
xmlsignaturehelper2.cxx
xmlsecurity/source/helper/xmlsignaturehelper2.cxx
+8
-6
xmlsignaturehelper2.hxx
xmlsecurity/source/helper/xmlsignaturehelper2.hxx
+6
-4
No files found.
xmlsecurity/inc/xmlsecurity/digitalsignaturesdialog.hxx
Dosyayı görüntüle @
39da0a99
...
@@ -93,7 +93,7 @@ private:
...
@@ -93,7 +93,7 @@ private:
DECL_LINK_TYPED
(
RemoveButtonHdl
,
Button
*
,
void
);
DECL_LINK_TYPED
(
RemoveButtonHdl
,
Button
*
,
void
);
DECL_LINK_TYPED
(
SignatureHighlightHdl
,
SvTreeListBox
*
,
void
);
DECL_LINK_TYPED
(
SignatureHighlightHdl
,
SvTreeListBox
*
,
void
);
DECL_LINK_TYPED
(
SignatureSelectHdl
,
SvTreeListBox
*
,
bool
);
DECL_LINK_TYPED
(
SignatureSelectHdl
,
SvTreeListBox
*
,
bool
);
DECL_LINK
(
StartVerifySignatureHdl
,
void
*
);
DECL_LINK
_TYPED
(
StartVerifySignatureHdl
,
LinkParamNone
*
,
bool
);
DECL_LINK_TYPED
(
OKButtonHdl
,
Button
*
,
void
);
DECL_LINK_TYPED
(
OKButtonHdl
,
Button
*
,
void
);
void
ImplGetSignatureInformations
(
bool
bUseTempStream
);
void
ImplGetSignatureInformations
(
bool
bUseTempStream
);
...
...
xmlsecurity/inc/xmlsecurity/xmlsignaturehelper.hxx
Dosyayı görüntüle @
39da0a99
...
@@ -105,12 +105,12 @@ private:
...
@@ -105,12 +105,12 @@ private:
XSecController
*
mpXSecController
;
XSecController
*
mpXSecController
;
bool
mbError
;
bool
mbError
;
bool
mbODFPre1_2
;
bool
mbODFPre1_2
;
Link
<
>
maStartVerifySignatureHdl
;
Link
<
LinkParamNone
*
,
bool
>
maStartVerifySignatureHdl
;
private
:
private
:
DECL_LINK
(
SignatureCreationResultListener
,
XMLSignatureCreationResult
*
);
DECL_LINK
_TYPED
(
SignatureCreationResultListener
,
XMLSignatureCreationResult
&
,
void
);
DECL_LINK
(
SignatureVerifyResultListener
,
XMLSignatureVerifyResult
*
);
DECL_LINK
_TYPED
(
SignatureVerifyResultListener
,
XMLSignatureVerifyResult
&
,
void
);
DECL_LINK
(
StartVerifySignatureElement
,
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
xml
::
sax
::
XAttributeList
>*
);
DECL_LINK
_TYPED
(
StartVerifySignatureElement
,
LinkParamNone
*
,
void
);
XMLSignatureHelper
(
const
XMLSignatureHelper
&
)
SAL_DELETED_FUNCTION
;
XMLSignatureHelper
(
const
XMLSignatureHelper
&
)
SAL_DELETED_FUNCTION
;
...
@@ -130,7 +130,7 @@ public:
...
@@ -130,7 +130,7 @@ public:
// Argument for the Link is a uno::Reference< xml::sax::XAttributeList >*
// Argument for the Link is a uno::Reference< xml::sax::XAttributeList >*
// Return 1 to verify, 0 to skip.
// Return 1 to verify, 0 to skip.
// Default handler will verify all.
// Default handler will verify all.
void
SetStartVerifySignatureHdl
(
const
Link
<>&
rLink
);
void
SetStartVerifySignatureHdl
(
const
Link
<
LinkParamNone
*
,
bool
>&
rLink
);
// Get the security environment
// 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
>
GetSecurityEnvironment
();
...
...
xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx
Dosyayı görüntüle @
39da0a99
...
@@ -565,9 +565,9 @@ IMPL_LINK_NOARG_TYPED(DigitalSignaturesDialog, RemoveButtonHdl, Button*, void)
...
@@ -565,9 +565,9 @@ IMPL_LINK_NOARG_TYPED(DigitalSignaturesDialog, RemoveButtonHdl, Button*, void)
}
}
}
}
IMPL_LINK_NOARG
(
DigitalSignaturesDialog
,
StartVerifySignatureHd
l
)
IMPL_LINK_NOARG
_TYPED
(
DigitalSignaturesDialog
,
StartVerifySignatureHdl
,
LinkParamNone
*
,
boo
l
)
{
{
return
mbVerifySignatures
?
1
:
0
;
return
mbVerifySignatures
;
}
}
void
DigitalSignaturesDialog
::
ImplFillSignaturesBox
()
void
DigitalSignaturesDialog
::
ImplFillSignaturesBox
()
...
...
xmlsecurity/source/helper/xmlsignaturehelper.cxx
Dosyayı görüntüle @
39da0a99
...
@@ -85,7 +85,7 @@ void XMLSignatureHelper::SetStorage(
...
@@ -85,7 +85,7 @@ void XMLSignatureHelper::SetStorage(
}
}
void
XMLSignatureHelper
::
SetStartVerifySignatureHdl
(
const
Link
<>&
rLink
)
void
XMLSignatureHelper
::
SetStartVerifySignatureHdl
(
const
Link
<
LinkParamNone
*
,
bool
>&
rLink
)
{
{
maStartVerifySignatureHdl
=
rLink
;
maStartVerifySignatureHdl
=
rLink
;
}
}
...
@@ -311,31 +311,27 @@ uno::Reference< ::com::sun::star::xml::crypto::XSecurityEnvironment > XMLSignatu
...
@@ -311,31 +311,27 @@ uno::Reference< ::com::sun::star::xml::crypto::XSecurityEnvironment > XMLSignatu
return
(
mxSecurityContext
.
is
()
?
(
mxSecurityContext
->
getSecurityEnvironment
())
:
uno
::
Reference
<
::
com
::
sun
::
star
::
xml
::
crypto
::
XSecurityEnvironment
>
());
return
(
mxSecurityContext
.
is
()
?
(
mxSecurityContext
->
getSecurityEnvironment
())
:
uno
::
Reference
<
::
com
::
sun
::
star
::
xml
::
crypto
::
XSecurityEnvironment
>
());
}
}
IMPL_LINK
(
XMLSignatureHelper
,
SignatureCreationResultListener
,
XMLSignatureCreationResult
*
,
pResult
)
IMPL_LINK
_TYPED
(
XMLSignatureHelper
,
SignatureCreationResultListener
,
XMLSignatureCreationResult
&
,
rResult
,
void
)
{
{
maCreationResults
.
insert
(
maCreationResults
.
begin
()
+
maCreationResults
.
size
(),
*
p
Result
);
maCreationResults
.
insert
(
maCreationResults
.
begin
()
+
maCreationResults
.
size
(),
r
Result
);
if
(
pResult
->
nSignatureCreationResult
!=
com
::
sun
::
star
::
xml
::
crypto
::
SecurityOperationStatus_OPERATION_SUCCEEDED
)
if
(
rResult
.
nSignatureCreationResult
!=
com
::
sun
::
star
::
xml
::
crypto
::
SecurityOperationStatus_OPERATION_SUCCEEDED
)
mbError
=
true
;
mbError
=
true
;
return
0
;
}
}
IMPL_LINK
(
XMLSignatureHelper
,
SignatureVerifyResultListener
,
XMLSignatureVerifyResult
*
,
pResult
)
IMPL_LINK
_TYPED
(
XMLSignatureHelper
,
SignatureVerifyResultListener
,
XMLSignatureVerifyResult
&
,
rResult
,
void
)
{
{
maVerifyResults
.
insert
(
maVerifyResults
.
begin
()
+
maVerifyResults
.
size
(),
*
p
Result
);
maVerifyResults
.
insert
(
maVerifyResults
.
begin
()
+
maVerifyResults
.
size
(),
r
Result
);
if
(
pResult
->
nSignatureVerifyResult
!=
com
::
sun
::
star
::
xml
::
crypto
::
SecurityOperationStatus_OPERATION_SUCCEEDED
)
if
(
rResult
.
nSignatureVerifyResult
!=
com
::
sun
::
star
::
xml
::
crypto
::
SecurityOperationStatus_OPERATION_SUCCEEDED
)
mbError
=
true
;
mbError
=
true
;
return
0
;
}
}
IMPL_LINK
(
XMLSignatureHelper
,
StartVerifySignatureElement
,
const
uno
::
Reference
<
com
::
sun
::
star
::
xml
::
sax
::
XAttributeList
>*
,
pAttrs
)
IMPL_LINK
_NOARG_TYPED
(
XMLSignatureHelper
,
StartVerifySignatureElement
,
LinkParamNone
*
,
void
)
{
{
if
(
!
maStartVerifySignatureHdl
.
IsSet
()
||
maStartVerifySignatureHdl
.
Call
(
const_cast
<
css
::
uno
::
Reference
<
css
::
xml
::
sax
::
XAttributeList
>
*>
(
pAttrs
)
)
)
if
(
!
maStartVerifySignatureHdl
.
IsSet
()
||
maStartVerifySignatureHdl
.
Call
(
nullptr
)
)
{
{
sal_Int32
nSignatureId
=
mpXSecController
->
getNewSecurityId
();
sal_Int32
nSignatureId
=
mpXSecController
->
getNewSecurityId
();
mpXSecController
->
addSignature
(
nSignatureId
);
mpXSecController
->
addSignature
(
nSignatureId
);
}
}
return
0
;
}
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
xmlsecurity/source/helper/xmlsignaturehelper2.cxx
Dosyayı görüntüle @
39da0a99
...
@@ -32,13 +32,15 @@
...
@@ -32,13 +32,15 @@
using
namespace
com
::
sun
::
star
;
using
namespace
com
::
sun
::
star
;
ImplXMLSignatureListener
::
ImplXMLSignatureListener
(
const
Link
<>&
rCreationResultListenerListener
,
const
Link
<>&
rVerifyResultListenerListener
,
const
Link
<>&
rStartSignatureElement
)
ImplXMLSignatureListener
::
ImplXMLSignatureListener
(
const
Link
<
XMLSignatureCreationResult
&
,
void
>&
rCreationResultListenerListener
,
const
Link
<
XMLSignatureVerifyResult
&
,
void
>&
rVerifyResultListenerListener
,
const
Link
<
LinkParamNone
*
,
void
>&
rStartSignatureElement
)
{
{
maCreationResultListenerListener
=
rCreationResultListenerListener
;
maCreationResultListenerListener
=
rCreationResultListenerListener
;
maVerifyResultListenerListener
=
rVerifyResultListenerListener
;
maVerifyResultListenerListener
=
rVerifyResultListenerListener
;
maStartVerifySignatureElementListener
=
rStartSignatureElement
;
maStartVerifySignatureElementListener
=
rStartSignatureElement
;
}
}
ImplXMLSignatureListener
::~
ImplXMLSignatureListener
()
ImplXMLSignatureListener
::~
ImplXMLSignatureListener
()
{
{
}
}
...
@@ -53,14 +55,14 @@ void SAL_CALL ImplXMLSignatureListener::signatureCreated( sal_Int32 securityId,
...
@@ -53,14 +55,14 @@ void SAL_CALL ImplXMLSignatureListener::signatureCreated( sal_Int32 securityId,
throw
(
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
throw
(
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
{
{
XMLSignatureCreationResult
aResult
(
securityId
,
nResult
);
XMLSignatureCreationResult
aResult
(
securityId
,
nResult
);
maCreationResultListenerListener
.
Call
(
&
aResult
);
maCreationResultListenerListener
.
Call
(
aResult
);
}
}
void
SAL_CALL
ImplXMLSignatureListener
::
signatureVerified
(
sal_Int32
securityId
,
com
::
sun
::
star
::
xml
::
crypto
::
SecurityOperationStatus
nResult
)
void
SAL_CALL
ImplXMLSignatureListener
::
signatureVerified
(
sal_Int32
securityId
,
com
::
sun
::
star
::
xml
::
crypto
::
SecurityOperationStatus
nResult
)
throw
(
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
throw
(
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
{
{
XMLSignatureVerifyResult
aResult
(
securityId
,
nResult
);
XMLSignatureVerifyResult
aResult
(
securityId
,
nResult
);
maVerifyResultListenerListener
.
Call
(
&
aResult
);
maVerifyResultListenerListener
.
Call
(
aResult
);
}
}
// XDocumentHandler
// XDocumentHandler
...
@@ -82,12 +84,12 @@ void SAL_CALL ImplXMLSignatureListener::endDocument( )
...
@@ -82,12 +84,12 @@ void SAL_CALL ImplXMLSignatureListener::endDocument( )
}
}
}
}
void
SAL_CALL
ImplXMLSignatureListener
::
startElement
(
const
OUString
&
aName
,
const
c
om
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
xml
::
sax
::
XAttributeList
>&
xAttribs
)
void
SAL_CALL
ImplXMLSignatureListener
::
startElement
(
const
OUString
&
aName
,
const
c
ss
::
uno
::
Reference
<
css
::
xml
::
sax
::
XAttributeList
>&
xAttribs
)
throw
(
com
::
sun
::
star
::
xml
::
sax
::
SAXException
,
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
throw
(
com
::
sun
::
star
::
xml
::
sax
::
SAXException
,
com
::
sun
::
star
::
uno
::
RuntimeException
,
std
::
exception
)
{
{
if
(
aName
==
"Signature"
)
if
(
aName
==
"Signature"
)
{
{
maStartVerifySignatureElementListener
.
Call
(
const_cast
<
css
::
uno
::
Reference
<
css
::
xml
::
sax
::
XAttributeList
>
*>
(
&
xAttribs
)
);
maStartVerifySignatureElementListener
.
Call
(
nullptr
);
}
}
if
(
m_xNextHandler
.
is
())
if
(
m_xNextHandler
.
is
())
...
...
xmlsecurity/source/helper/xmlsignaturehelper2.hxx
Dosyayı görüntüle @
39da0a99
...
@@ -48,15 +48,17 @@ class ImplXMLSignatureListener : public cppu::WeakImplHelper
...
@@ -48,15 +48,17 @@ class ImplXMLSignatureListener : public cppu::WeakImplHelper
>
>
{
{
private
:
private
:
Link
<
>
maCreationResultListenerListener
;
Link
<
XMLSignatureCreationResult
&
,
void
>
maCreationResultListenerListener
;
Link
<
>
maVerifyResultListenerListener
;
Link
<
XMLSignatureVerifyResult
&
,
void
>
maVerifyResultListenerListener
;
Link
<
>
maStartVerifySignatureElementListener
;
Link
<
LinkParamNone
*
,
void
>
maStartVerifySignatureElementListener
;
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
xml
::
sax
::
XDocumentHandler
>
m_xNextHandler
;
com
::
sun
::
star
::
xml
::
sax
::
XDocumentHandler
>
m_xNextHandler
;
public
:
public
:
ImplXMLSignatureListener
(
const
Link
<>&
rCreationResultListenerListener
,
const
Link
<>&
rVerifyResultListenerListener
,
const
Link
<>&
rStartVerifySignatureElement
);
ImplXMLSignatureListener
(
const
Link
<
XMLSignatureCreationResult
&
,
void
>&
rCreationResultListenerListener
,
const
Link
<
XMLSignatureVerifyResult
&
,
void
>&
rVerifyResultListenerListener
,
const
Link
<
LinkParamNone
*
,
void
>&
rStartVerifySignatureElement
);
virtual
~
ImplXMLSignatureListener
();
virtual
~
ImplXMLSignatureListener
();
void
setNextHandler
(
com
::
sun
::
star
::
uno
::
Reference
<
void
setNextHandler
(
com
::
sun
::
star
::
uno
::
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