Summary: | TLS handshake is not accepted | ||
---|---|---|---|
Product: | [Unmaintained] kio | Reporter: | Roland Wenzel <rwenzel> |
Component: | kssl | Assignee: | George Staikos <staikos> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | mueller, thilo.bangert |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Debian stable | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | Patch for kssl.cc witch enables work with TLSv1. |
Description
Roland Wenzel
2005-07-01 10:09:39 UTC
*** Bug 116108 has been marked as a duplicate of this bug. *** Seems to work fine in all configurations with the latest code in 3.5 branch and trunk Created attachment 17181 [details]
Patch for kssl.cc witch enables work with TLSv1.
KDE 3.5.3
Konqueror - don't want to work with TLSv1 with or without "Activate TLS, if
server supports it".
In code we found that all methods for TLS-work exists, but not used. Someone
forgot to init TLS methods.
We made the a little patch for kssl.cc - and now all works fine. Patch in
attachment.
Index: kssl.cc I just put this in 3.5 branch. Does it work for you? =================================================================== --- kssl.cc (revision 516947) +++ kssl.cc (working copy) @@ -129,7 +129,7 @@ return false; if (m_bAutoReconfig) - m_cfg->load(); + m_cfg->load(); if (!m_cfg->tlsv1()) return false; @@ -160,6 +160,9 @@ bool KSSL::initialize() { #ifdef KSSL_HAVE_SSL kdDebug(7029) << "KSSL initialize" << endl; + if (m_cfg->tlsv1()) + return TLSInit(); + if (m_bInit) return false; @@ -499,6 +502,7 @@ if (err != SSL_ERROR_NONE && err != SSL_ERROR_ZERO_RETURN && err != SSL_ERROR_SYSCALL) { rc = -1; // OpenSSL returns 0 on error too + d->kossl->ERR_print_errors_fp(stderr); } // else if (err == SSL_ERROR_ZERO_RETURN) We have tested your changes for our patch here at our office (LISSI Ltd., http://www.lissi.ru, mailto: info@lissi.ru). Everything works fine. Thanks. When this patch will be released? KDE 4, if not a future 3.5 release. unfortunately this patch causes regressions, for example 132098 I'll track it under 132098 *** This bug has been marked as a duplicate of 132098 *** SVN commit 571989 by mueller: always allow TLS CCBUG: 108388 M +2 -6 kssl.cc --- trunk/KDE/kdelibs/kio/kssl/kssl.cc #571988:571989 @@ -139,6 +139,8 @@ d->m_meth = d->kossl->TLSv1_client_method(); d->lastInitTLS = true; + m_pi.reset(); + d->m_ctx = d->kossl->SSL_CTX_new(d->m_meth); if (d->m_ctx == 0L) { return false; @@ -282,9 +284,6 @@ } } - if (!d->lastInitTLS) - d->kossl->SSL_set_options(d->m_ssl, SSL_OP_NO_TLSv1); - d->kossl->SSL_set_options(d->m_ssl, SSL_OP_ALL); rc = d->kossl->SSL_set_fd(d->m_ssl, sock); @@ -368,9 +367,6 @@ } } - if (!d->lastInitTLS) - d->kossl->SSL_set_options(d->m_ssl, SSL_OP_NO_TLSv1); - d->kossl->SSL_set_options(d->m_ssl, SSL_OP_ALL); rc = d->kossl->SSL_set_fd(d->m_ssl, sock); |