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
85a1abd8
Kaydet (Commit)
85a1abd8
authored
Agu 18, 2004
tarafından
Malte Timmermann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#i20156# Some improvements...
üst
d3e69fe9
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
33 additions
and
27 deletions
+33
-27
xmlsignaturehelper.hxx
xmlsecurity/inc/xmlsecurity/xmlsignaturehelper.hxx
+3
-2
build.lst
xmlsecurity/prj/build.lst
+1
-1
digitalsignaturesdialog.cxx
xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx
+5
-4
xmlsignaturehelper.cxx
xmlsecurity/source/helper/xmlsignaturehelper.cxx
+7
-2
xsecctl.cxx
xmlsecurity/source/helper/xsecctl.cxx
+11
-13
xsecctl.hxx
xmlsecurity/source/helper/xsecctl.hxx
+6
-5
No files found.
xmlsecurity/inc/xmlsecurity/xmlsignaturehelper.hxx
Dosyayı görüntüle @
85a1abd8
...
...
@@ -2,9 +2,9 @@
*
* $RCSfile: xmlsignaturehelper.hxx,v $
*
* $Revision: 1.
5
$
* $Revision: 1.
6
$
*
* last change: $Author: mt $ $Date: 2004-0
7-26 15:45:14
$
* last change: $Author: mt $ $Date: 2004-0
8-18 09:14:40
$
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
...
...
@@ -189,6 +189,7 @@ public:
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
xml
::
crypto
::
XSecurityEnvironment
>
GetSecurityEnvironment
();
// After signing/veryfieng, get information about signatures
SignatureInformation
GetSignatureInformation
(
sal_Int32
nSecurityId
)
const
;
SignatureInformations
GetSignatureInformations
()
const
;
// See XSecController for documentation
...
...
xmlsecurity/prj/build.lst
Dosyayı görüntüle @
85a1abd8
xs xmlsecurity : xmloff offapi unoil svx moz NULL
xs xmlsecurity : xmloff offapi unoil svx moz
libxmlsec
NULL
xs xmlsecurity usr1 - all xs_mkout NULL
xs xmlsecurity\source\framework nmake - all xs_fw NULL
xs xmlsecurity\source\xmlsec\nss nmake - all xs_nss NULL
...
...
xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx
Dosyayı görüntüle @
85a1abd8
...
...
@@ -2,9 +2,9 @@
*
* $RCSfile: digitalsignaturesdialog.cxx,v $
*
* $Revision: 1.1
3
$
* $Revision: 1.1
4
$
*
* last change: $Author: m
mi $ $Date: 2004-08-12 02:29:2
1 $
* last change: $Author: m
t $ $Date: 2004-08-18 09:14:4
1 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
...
...
@@ -285,14 +285,15 @@ IMPL_LINK( DigitalSignaturesDialog, AddButtonHdl, Button*, EMPTYARG )
maSignatureHelper
.
ExportSignature
(
xDocumentHandler
,
maCurrentSignatureInformations
[
n
]);
// Create a new one...
bool
bDone
=
maSignatureHelper
.
CreateAndWriteSignature
(
xDocumentHandler
);
maSignatureHelper
.
CreateAndWriteSignature
(
xDocumentHandler
);
// That's it...
maSignatureHelper
.
CloseDocumentHandler
(
xDocumentHandler
);
maSignatureHelper
.
EndMission
();
if
(
bDone
)
sal_Int32
nStatus
=
maSignatureHelper
.
GetSignatureInformation
(
nSecurityId
).
nStatus
;
if
(
nStatus
==
STATUS_CREATION_SUCCEED
)
{
uno
::
Reference
<
embed
::
XTransactedObject
>
xTrans
(
aStreamHelper
.
xSignatureStorage
,
uno
::
UNO_QUERY
);
xTrans
->
commit
();
...
...
xmlsecurity/source/helper/xmlsignaturehelper.cxx
Dosyayı görüntüle @
85a1abd8
...
...
@@ -2,9 +2,9 @@
*
* $RCSfile: xmlsignaturehelper.cxx,v $
*
* $Revision: 1.1
7
$
* $Revision: 1.1
8
$
*
* last change: $Author: m
mi $ $Date: 2004-08-12 02:29:21
$
* last change: $Author: m
t $ $Date: 2004-08-18 09:14:42
$
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
...
...
@@ -443,6 +443,11 @@ bool XMLSignatureHelper::ReadAndVerifySignature( const com::sun::star::uno::Refe
return
!
mbError
;
}
SignatureInformation
XMLSignatureHelper
::
GetSignatureInformation
(
sal_Int32
nSecurityId
)
const
{
return
mpXSecController
->
getSignatureInformation
(
nSecurityId
);
}
SignatureInformations
XMLSignatureHelper
::
GetSignatureInformations
()
const
{
return
mpXSecController
->
getSignatureInformations
();
...
...
xmlsecurity/source/helper/xsecctl.cxx
Dosyayı görüntüle @
85a1abd8
...
...
@@ -2,9 +2,9 @@
*
* $RCSfile: xsecctl.cxx,v $
*
* $Revision: 1.
3
$
* $Revision: 1.
4
$
*
* last change: $Author: m
mi $ $Date: 2004-08-12 02:29:21
$
* last change: $Author: m
t $ $Date: 2004-08-18 09:14:42
$
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
...
...
@@ -296,7 +296,7 @@ sal_Bool XSecController::convertDateTime( com::sun::star::util::DateTime& rDateT
return
bSuccess
;
}
int
XSecController
::
findSignatureInfor
(
sal_Int32
nSecurityId
)
int
XSecController
::
findSignatureInfor
(
sal_Int32
nSecurityId
)
const
/****** XSecController/findSignatureInfor *************************************
*
* NAME
...
...
@@ -1379,21 +1379,19 @@ void XSecController::exportSignature(
xDocumentHandler
->
endElement
(
tag_Signature
);
}
bool
XSecController
::
getSignatureInfor
(
sal_Int32
nSecurityId
,
SignatureInformation
&
signatureInfor
)
SignatureInformation
XSecController
::
getSignatureInformation
(
sal_Int32
nSecurityId
)
const
{
int
index
=
findSignatureInfor
(
nSecurityId
);
if
(
index
==
-
1
)
SignatureInformation
aInf
(
0
);
int
nIndex
=
findSignatureInfor
(
nSecurityId
);
DBG_ASSERT
(
nIndex
!=
-
1
,
"getSignatureInformation - SecurityId is invalid!"
);
if
(
nIndex
!=
-
1
)
{
return
false
;
}
else
{
signatureInfor
=
m_vInternalSignatureInformations
[
index
].
signatureInfor
;
return
true
;
aInf
=
m_vInternalSignatureInformations
[
nIndex
].
signatureInfor
;
}
return
aInf
;
}
SignatureInformations
XSecController
::
getSignatureInformations
()
SignatureInformations
XSecController
::
getSignatureInformations
()
const
{
SignatureInformations
vInfors
;
int
sigNum
=
m_vInternalSignatureInformations
.
size
();
...
...
xmlsecurity/source/helper/xsecctl.hxx
Dosyayı görüntüle @
85a1abd8
...
...
@@ -2,9 +2,9 @@
*
* $RCSfile: xsecctl.hxx,v $
*
* $Revision: 1.
4
$
* $Revision: 1.
5
$
*
* last change: $Author: m
mi $ $Date: 2004-08-12 02:29:21
$
* last change: $Author: m
t $ $Date: 2004-08-18 09:14:42
$
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
...
...
@@ -411,7 +411,7 @@ private:
sal_Bool
convertDateTime
(
com
::
sun
::
star
::
util
::
DateTime
&
rDateTime
,
const
::
rtl
::
OUString
&
rString
);
void
createXSecComponent
(
);
int
findSignatureInfor
(
sal_Int32
nSecurityId
);
int
findSignatureInfor
(
sal_Int32
nSecurityId
)
const
;
bool
chainOn
(
bool
bRetrievingLastEvent
);
void
chainOff
();
void
checkChainingStatus
();
...
...
@@ -497,8 +497,9 @@ public:
void
clearSAXChainConnector
();
void
endMission
();
const
char
*
getErrorMessage
();
bool
getSignatureInfor
(
sal_Int32
nSecurityId
,
SignatureInformation
&
signatureInfor
);
SignatureInformations
getSignatureInformations
();
SignatureInformation
getSignatureInformation
(
sal_Int32
nSecurityId
)
const
;
SignatureInformations
getSignatureInformations
()
const
;
void
exportSignature
(
const
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