diff options
author | Malte Timmermann <mt@openoffice.org> | 2004-07-16 14:58:49 +0000 |
---|---|---|
committer | Malte Timmermann <mt@openoffice.org> | 2004-07-16 14:58:49 +0000 |
commit | 6c64a3eca35bd93197fb976fbce371409bd245da (patch) | |
tree | 2186f6da2af18b9121662e41c0d8e611d9df46ff /xmlsecurity/source | |
parent | 81daa9434f14def10dd04c759565a34e8357d507 (diff) |
#i21596# ...
Diffstat (limited to 'xmlsecurity/source')
4 files changed, 45 insertions, 9 deletions
diff --git a/xmlsecurity/source/component/documentdigitalsignatures.cxx b/xmlsecurity/source/component/documentdigitalsignatures.cxx index b368829b2cc7..0676236edaa8 100644 --- a/xmlsecurity/source/component/documentdigitalsignatures.cxx +++ b/xmlsecurity/source/component/documentdigitalsignatures.cxx @@ -2,9 +2,9 @@ * * $RCSfile: documentdigitalsignatures.cxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: mt $ $Date: 2004-07-15 09:28:32 $ + * last change: $Author: mt $ $Date: 2004-07-16 15:58:49 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -207,6 +207,30 @@ com::sun::star::uno::Sequence< ::com::sun::star::security::DocumentSignaturesInf } +void DocumentDigitalSignatures::manageTrustedSources( ) throw (::com::sun::star::uno::RuntimeException) +{ +} + +::sal_Bool DocumentDigitalSignatures::isAuthorTrusted( const ::com::sun::star::uno::Reference< ::com::sun::star::security::XCertificate >& Author ) throw (::com::sun::star::uno::RuntimeException) +{ + return sal_False; +} + +::sal_Bool DocumentDigitalSignatures::isLocationTrusted( const ::rtl::OUString& Location ) throw (::com::sun::star::uno::RuntimeException) +{ + return sal_False; +} + +void DocumentDigitalSignatures::addAuthorToTrustedSources( const ::com::sun::star::uno::Reference< ::com::sun::star::security::XCertificate >& Author ) throw (::com::sun::star::uno::RuntimeException) +{ +} + +void DocumentDigitalSignatures::addLocationToTrustedSources( const ::rtl::OUString& Location ) throw (::com::sun::star::uno::RuntimeException) +{ +} + + + rtl::OUString DocumentDigitalSignatures::GetImplementationName() throw (uno::RuntimeException) { return rtl::OUString ( RTL_CONSTASCII_USTRINGPARAM ( "com.sun.star.security.DocumentDigitalSignatures" ) ); diff --git a/xmlsecurity/source/component/documentdigitalsignatures.hxx b/xmlsecurity/source/component/documentdigitalsignatures.hxx index 96f874129b91..659b8438501e 100644 --- a/xmlsecurity/source/component/documentdigitalsignatures.hxx +++ b/xmlsecurity/source/component/documentdigitalsignatures.hxx @@ -2,9 +2,9 @@ * * $RCSfile: documentdigitalsignatures.hxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: mt $ $Date: 2004-07-14 11:05:45 $ + * last change: $Author: mt $ $Date: 2004-07-16 15:58:49 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -97,6 +97,12 @@ public: com::sun::star::uno::Sequence< ::com::sun::star::security::DocumentSignaturesInformation > SAL_CALL VerifyPackageSignatures( const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& rxStorage ) throw (::com::sun::star::uno::RuntimeException); void SAL_CALL ShowPackageSignatures( const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& Storage ) throw (::com::sun::star::uno::RuntimeException); + void SAL_CALL manageTrustedSources( ) throw (::com::sun::star::uno::RuntimeException); + ::sal_Bool SAL_CALL isAuthorTrusted( const ::com::sun::star::uno::Reference< ::com::sun::star::security::XCertificate >& Author ) throw (::com::sun::star::uno::RuntimeException); + ::sal_Bool SAL_CALL isLocationTrusted( const ::rtl::OUString& Location ) throw (::com::sun::star::uno::RuntimeException); + void SAL_CALL addAuthorToTrustedSources( const ::com::sun::star::uno::Reference< ::com::sun::star::security::XCertificate >& Author ) throw (::com::sun::star::uno::RuntimeException); + void SAL_CALL addLocationToTrustedSources( const ::rtl::OUString& Location ) throw (::com::sun::star::uno::RuntimeException); + }; com::sun::star::uno::Reference< com::sun::star::uno::XInterface > SAL_CALL DocumentDigitalSignatures_CreateInstance( diff --git a/xmlsecurity/source/helper/xmlsignaturehelper2.cxx b/xmlsecurity/source/helper/xmlsignaturehelper2.cxx index 750b6dbf6524..883653b68df0 100644 --- a/xmlsecurity/source/helper/xmlsignaturehelper2.cxx +++ b/xmlsecurity/source/helper/xmlsignaturehelper2.cxx @@ -2,9 +2,9 @@ * * $RCSfile: xmlsignaturehelper2.cxx,v $ * - * $Revision: 1.1.1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: mt $ $Date: 2004-07-12 13:15:22 $ + * last change: $Author: mt $ $Date: 2004-07-16 15:58:49 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -227,7 +227,9 @@ uno::Reference < io::XStream > UriBindingHelper::OpenInputStream( uno::Reference sal_Int32 nSepPos = rURI.indexOf( '/' ); if ( nSepPos == -1 ) { - xStream = rxStore->openStreamElement( rURI, embed::ElementModes::READ ); + // Cloning because of I can't keep all storage references open + // MBA with think about a better API... + xStream = rxStore->cloneStreamElement( rURI ); } else { diff --git a/xmlsecurity/source/helper/xmlsignaturehelper2.hxx b/xmlsecurity/source/helper/xmlsignaturehelper2.hxx index f41bb3da6c9d..1dec9015b216 100644 --- a/xmlsecurity/source/helper/xmlsignaturehelper2.hxx +++ b/xmlsecurity/source/helper/xmlsignaturehelper2.hxx @@ -2,9 +2,9 @@ * * $RCSfile: xmlsignaturehelper2.hxx,v $ * - * $Revision: 1.1.1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: mt $ $Date: 2004-07-12 13:15:22 $ + * last change: $Author: mt $ $Date: 2004-07-16 15:58:49 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -80,6 +80,9 @@ namespace embed { class XStorage; } }}} + +// MT: Not needed any more, remove later... + class ImplXMLSignatureListener : public cppu::WeakImplHelper3 < com::sun::star::xml::crypto::sax::XSignatureCreationResultListener, @@ -149,6 +152,7 @@ class UriBindingHelper : public cppu::WeakImplHelper1 private: com::sun::star::uno::Reference < com::sun::star::embed::XStorage > mxStorage; + public: UriBindingHelper(); UriBindingHelper( const com::sun::star::uno::Reference < com::sun::star::embed::XStorage >& rxStorage ); |