summaryrefslogtreecommitdiff
path: root/xmlsecurity
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2005-05-18 09:02:58 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2005-05-18 09:02:58 +0000
commit32b45bd18fb99755497bf9c34d8602b85545da8e (patch)
tree9484837c3aeb74f6d1752dd9889d75794c13f7cd /xmlsecurity
parentc8818bc4764e0435336806094fe78cfae30e7c75 (diff)
INTEGRATION: CWS xmlsec12 (1.4.10); FILE MERGED
2005/04/13 10:14:49 mt 1.4.10.1: Clean-Ups...
Diffstat (limited to 'xmlsecurity')
-rw-r--r--xmlsecurity/tools/demo/util.hxx39
1 files changed, 17 insertions, 22 deletions
diff --git a/xmlsecurity/tools/demo/util.hxx b/xmlsecurity/tools/demo/util.hxx
index 4a44163975ba..afc77b8d72a7 100644
--- a/xmlsecurity/tools/demo/util.hxx
+++ b/xmlsecurity/tools/demo/util.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: util.hxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: vg $ $Date: 2005-03-10 18:15:42 $
+ * last change: $Author: rt $ $Date: 2005-05-18 10:02:58 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -59,31 +59,26 @@
*
************************************************************************/
-#include <stdio.h>
-
#include <rtl/ustring.hxx>
#include <cppuhelper/servicefactory.hxx>
-#include <cppuhelper/implbase1.hxx>
-
#include <xmlsecurity/xmlsignaturehelper.hxx>
-#include <com/sun/star/xml/crypto/XUriBinding.hpp>
+// Get the demo.rdb servcie manager...
+::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > CreateDemoServiceFactory();
+
+// Ask user to show more signature details...
+void QueryPrintSignatureDetails( const SignatureInformations& SignatureInformations, ::com::sun::star::uno::Reference< ::com::sun::star::xml::crypto::XSecurityEnvironment > );
+
+// Query value from user.
+int QuerySelectNumber( int nMin, int nMax );
-/*
- * get service manager and context
- */
-::com::sun::star::uno::Reference<
- ::com::sun::star::lang::XMultiServiceFactory >
- serviceManager( ::com::sun::star::uno::Reference<
- ::com::sun::star::uno::XComponentContext > &xContext,
- ::rtl::OUString sUnoUrl,
- ::rtl::OUString sRdbUrl)
- throw( ::com::sun::star::uno::RuntimeException , ::com::sun::star::uno::Exception );
+// Ask to verify the signature
+long QueryVerifySignature();
-::rtl::OUString getSignatureInformations(
- const SignatureInformations& SignatureInformations,
- ::com::sun::star::uno::Reference< ::com::sun::star::xml::crypto::XSecurityEnvironment > xSecurityEnvironment );
+// Open In/Output Stream
+::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream > OpenInputStream( const ::rtl::OUString& rStreamName );
+::com::sun::star::uno::Reference< ::com::sun::star::io::XOutputStream > OpenOutputStream( const ::rtl::OUString& rStreamName );
-::com::sun::star::uno::Reference< ::com::sun::star::security::XCertificate >
- getCertificateFromEnvironment( ::com::sun::star::uno::Reference< ::com::sun::star::xml::crypto::XSecurityEnvironment > xSecurityEnvironment , BOOL nType);
+::rtl::OUString getSignatureInformations( const SignatureInformations& SignatureInformations, ::com::sun::star::uno::Reference< ::com::sun::star::xml::crypto::XSecurityEnvironment > xSecurityEnvironment );
+::com::sun::star::uno::Reference< ::com::sun::star::security::XCertificate > getCertificateFromEnvironment( ::com::sun::star::uno::Reference< ::com::sun::star::xml::crypto::XSecurityEnvironment > xSecurityEnvironment, BOOL nType);