[Libreoffice-commits] core.git: ucb/source
Tor Lillqvist
tml at iki.fi
Fri Mar 15 04:55:30 PDT 2013
ucb/source/ucp/webdav-neon/NeonSession.cxx | 5 +++++
1 file changed, 5 insertions(+)
New commits:
commit 6dc7dab6a80a2bc4cc347d144a9b9454a731e6a7
Author: Tor Lillqvist <tml at iki.fi>
Date: Fri Mar 15 13:53:12 2013 +0200
Use default set of root certificates, if available, when using SSL
Part of fix for the WebDAV https server authentication problem noticed when
fixing bnc#805901.
Change-Id: Ic54c59bdadaf34cdba32949400d5da69712017f3
diff --git a/ucb/source/ucp/webdav-neon/NeonSession.cxx b/ucb/source/ucp/webdav-neon/NeonSession.cxx
index 4c77d8e..81bb6ab 100644
--- a/ucb/source/ucp/webdav-neon/NeonSession.cxx
+++ b/ucb/source/ucp/webdav-neon/NeonSession.cxx
@@ -774,6 +774,11 @@ void NeonSession::Init()
// Set a failure callback for certificate check
ne_ssl_set_verify(
m_pHttpSession, NeonSession_CertificationNotify, this);
+
+ // Tell Neon to tell the SSL library used (OpenSSL or
+ // GnuTLS, I guess) to use a default set of root
+ // certificates.
+ ne_ssl_trust_default_ca(m_pHttpSession);
}
// Add hooks (i.e. for adding additional headers to the request)
More information about the Libreoffice-commits
mailing list