summaryrefslogtreecommitdiff
path: root/ucb/source
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2013-03-15 13:53:12 +0200
committerTor Lillqvist <tml@iki.fi>2013-03-15 13:53:12 +0200
commit6dc7dab6a80a2bc4cc347d144a9b9454a731e6a7 (patch)
treec3114baea097b0db392943615ecc4d982fa5c454 /ucb/source
parent1f08c7cbe263dbbe6a7c08f5777b3268fa2f51a5 (diff)
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
Diffstat (limited to 'ucb/source')
-rw-r--r--ucb/source/ucp/webdav-neon/NeonSession.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/ucb/source/ucp/webdav-neon/NeonSession.cxx b/ucb/source/ucp/webdav-neon/NeonSession.cxx
index 4c77d8eaf992..81bb6ab9e4fd 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)