[Libreoffice-commits] .: ucb/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Tue Oct 30 02:44:12 PDT 2012
ucb/source/ucp/webdav-neon/NeonSession.cxx | 7 ++-----
ucb/source/ucp/webdav/SerfSession.cxx | 7 ++-----
2 files changed, 4 insertions(+), 10 deletions(-)
New commits:
commit e6abcd4fe7eb7cc12df372a298d06b57f822251f
Author: Noel Grandin <noel at peralex.com>
Date: Thu Oct 25 17:31:23 2012 +0200
fdo#46808, use service constructor for security::CertificateContainer
Change-Id: Ia8bcd2efd8137922024fb2ed2f2e4197f4ee25e1
diff --git a/ucb/source/ucp/webdav-neon/NeonSession.cxx b/ucb/source/ucp/webdav-neon/NeonSession.cxx
index b3a737f..d05973f 100644
--- a/ucb/source/ucp/webdav-neon/NeonSession.cxx
+++ b/ucb/source/ucp/webdav-neon/NeonSession.cxx
@@ -49,6 +49,7 @@ extern "C" {
#include "libxml/parser.h"
#include "rtl/ustrbuf.hxx"
+#include "comphelper/processfactory.hxx"
#include "comphelper/sequence.hxx"
#include <comphelper/stl_types.hxx>
#include "ucbhelper/simplecertificatevalidationrequest.hxx"
@@ -406,11 +407,7 @@ extern "C" int NeonSession_CertificationNotify( void *userdata,
uno::Reference< security::XCertificateContainer > xCertificateContainer;
try
{
- xCertificateContainer
- = uno::Reference< security::XCertificateContainer >(
- pSession->getMSF()->createInstance(
- rtl::OUString( "com.sun.star.security.CertificateContainer" ) ),
- uno::UNO_QUERY );
+ xCertificateContainer = security::CertificateContainer::create( comphelper::getComponentContext( pSession->getMSF() ) );
}
catch ( uno::Exception const & )
{
diff --git a/ucb/source/ucp/webdav/SerfSession.cxx b/ucb/source/ucp/webdav/SerfSession.cxx
index 0030c21..bd858b4 100644
--- a/ucb/source/ucp/webdav/SerfSession.cxx
+++ b/ucb/source/ucp/webdav/SerfSession.cxx
@@ -24,6 +24,7 @@
#include <vector>
#include <string.h>
#include <rtl/string.h>
+#include "comphelper/processfactory.hxx"
#include "comphelper/sequence.hxx"
#include "ucbhelper/simplecertificatevalidationrequest.hxx"
@@ -385,11 +386,7 @@ apr_status_t SerfSession::verifySerfCertificateChain (
try
{
// Create a certificate container.
- xCertificateContainer = uno::Reference< security::XCertificateContainer >(
- getMSF()->createInstance(
- rtl::OUString::createFromAscii(
- "com.sun.star.security.CertificateContainer" ) ),
- uno::UNO_QUERY_THROW);
+ xCertificateContainer = security::CertificateContainer::create( comphelper::getComponentContext(getMSF()) );
xSEInitializer = uno::Reference< xml::crypto::XSEInitializer >(
getMSF()->createInstance(
More information about the Libreoffice-commits
mailing list