/src/network/ssl/

amicCast, we should avoid creating the QSharedPointer that shares the weak and strong reference counts. In Qt 5, this does not imply a leak since the original pointer is stored internally for deletion. In Qt 4 it implies a leak under certain circumstances, which this change fixes. Task-number: QTBUG-28924 Change-Id: Id2de140de4cf676461e14b201ad250c53666b79d (cherry-picked from qt5 commit a094bf5a893c3cccffff10c1420bfbe3a3c02a7c) Reviewed-by: Olivier Goffart <ogoffart@woboq.com> * Centralise handling & ignoring of SIGPIPE in qcore_unix_p.hThiago Macieira2013-01-054-46/+33 | | | | | | | | | | | | We had two instances of this function in the Qt source code, one clearly a copy of the other, so both had the same thread-safety issue. Instead, let's have one copy and have both write_nosignal() and sendto() call them. (cherry-picked from qtbase commit cb7d64170d62c9cda11ced7e5047070af678338b) Change-Id: I0f1354a8e9df8e6b10a02f86a940e3c6d1222087 Reviewed-by: Peter Hartmann <phartmann@rim.com> Reviewed-by: Shane Kearns <shane.kearns@accenture.com> * Fix thread-safety of qt_ignore_sigpipeThiago Macieira2013-01-052-2/+10 | | | | | | | | | | | | | | The testAndSet operation would mean another thread could see the value of 1 and proceed to write(2)/sendto(2) before SIGPIPE had been ignored. If the pipe or socket were already closed by then, a SIGPIPE would be delivered to the application with its default action: terminate. (cherry-picked from qtbase commit 3f970c20f9afd5c9a1cc14d7f69882e13f6aaf1b) Change-Id: I62dc8f5fa14c1dd453d13e4053c642bd78fbc468 Reviewed-by: Qt Doc Bot <qt_docbot@qt-project.org> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com> Reviewed-by: Shane Kearns <shane.kearns@accenture.com> Reviewed-by: Peter Hartmann <phartmann@rim.com> * BlackBerry: Reevaluation of timer list in event dispatcherBernd Weimer2013-01-051-11/+22 | | | | | | | | | | | In the event dispatcher the timer list has to be reevaluated after each call to filterEvent, because timers could be started in event filters. Backport of 9cfce43f19af87bc0a929b917da2901de7dbc193 Change-Id: Ib1feca6e970b3809e422f50164fd280b96beddf3 Reviewed-by: Sean Harmer <sean.harmer@kdab.com> * Fix tst_QImage on QNXRafael Roquetto2013-01-051-5/+5 | | | | | | | | | | This test is also run out of source under QNX and BlackBerry targets. This patch adjust SRCDIR accordingly by actually undefining it in QNX as well. This patch is not needed by Qt5. Change-Id: Ia8e43cd209d2876d5283f51b5717060992ed78ed Reviewed-by: Olivier Goffart <ogoffart@woboq.com> * Fix QWidget::showFullScreen() on QPARafael Roquetto2013-01-051-1/+1 | | | | | | | | | | | | | When showing full screen, we need to enforce that the size of the widget *is* the size of the screen. When calling QWidget::resize(), there was a chance for the layout to bypass the screen size, causing the toplevel widget to be clipped. This fix is not necessary on Qt5. Qt5 implements this differently and correctly. Change-Id: I1f4467dd14310ee20376caba8780507f8d787720 Reviewed-by: Samuel Rødal <samuel.rodal@digia.com> * Fix QWidget::hide() on QPA platformsRafael Roquetto2013-01-051-1/+0 | | | | | | | | | | | | | We must check within QWidgetPrivate::hide_sys() if the widget has a platform window and hide it. Fixed on Qt5 as a side effect of 09163941268745bbe231d0b2c25697940aa40127 Change-Id: Id0f5e748e69789027cbde427d37655d19a4ccab2 Reviewed-by: Sean Harmer <sean.harmer@kdab.com> Reviewed-by: Kevin Krammer <kevin.krammer@kdab.com> Reviewed-by: Debao Zhang <hello@debao.me> Reviewed-by: Jørgen Lind <jorgen.lind@gmail.com> * Skip failing testAlan Alpert2013-01-051-0/+1 | | | | | | Task-number: QTBUG-28830 Change-Id: If2313cf1536cd2209a92b5aee9a5980344b4f7eb Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com> * Skip failing test for nowAlan Alpert2013-01-051-0/+1 | | | | | | Task-number: QTBUG-28829 Change-Id: If607130a936bd04fda8cc518f8b4cd8070e62c3c Reviewed-by: Sergio Ahumada <sergio.ahumada@digia.com> * SSL certificates: blacklist mis-issued Turktrust certificatesPeter Hartmann2013-01-043-0/+58 | | | | | | | | | | | | Those certificates have erroneously set the CA attribute to true, meaning everybody in possesion of their keys can issue certificates on their own. backport of bf5e7fb2652669599a508e049b46ebd5cd3206e5 from qtbase Task-number: QTBUG-28937 Change-Id: Iee57c6f983fee61c13c3b66ed874300ef8e80c23 Reviewed-by: Richard J. Moore <rich@kde.org> * fix duplicate TRANSLATION entry in generated RC fileJoerg Bornemann2012-12-211-4/+0 | | | | | | | | Task-number: QTBUG-28625 Change-Id: I9bd6098c7557ca008211acef172f5c51a6766998 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com> (cherry picked from commit 3e94e8daf36e90e73ca475a81c9b9a3af40b45b3) * tst_qaccessibility: Fix warnings about window geometry on Windows.Friedemann Kleint2012-12-201-0/+19 | | | | | | | | | | Make windows frameless so that size constraints for decorated windows do not interfere. Task-number: QTBUG-28696 Change-Id: Ic4410d8a6e8166bdfe013ed2362173f8e02d4b29 Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com> (cherry picked from qtbase/a0584f678b20103fe4ccbe482848051acbb00b21) * changes-4.8.5: Fix wording about merge request and fix linksSergio Ahumada2012-12-201-5/+3 | | | | | | Change-Id: Iecc74cc9126b279d12c2938f7649e25f6c6e463f Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com> Reviewed-by: Akseli Salovaara <akseli.salovaara@digia.com> * Elaborate shortDayName(), etc using default locale.Leonard Lee2012-12-201-10/+10 | | | | | | | | | | | | QDate::toString() should explain QDate::shortDayName() and QDate::shortMonthName() will be localized name using the default locale from the system. Task-number: QTBUG-28522 Change-Id: I3d475a11066b181945d85ace4d3cbb4d8fa19b73 (cherry picked from commit qtbase/4cf112b641f7ea9fb1ba87cefcef7ee98b6b0831) Reviewed-by: Liang Qi <liang.qi@digia.com> * BlackBerry: QBBCursor implementationRafael Roquetto2012-12-196-3/+156 | | | | | | | | | | | | Implementation of QBBCursor, a QPlatformCursor subclass. Due to the lack of a proper cursor API from the underlying OS, this class only caches the current cursor position to make sure that the QCursor class works properly. Backport from qt5 290ed7f8fafd67197f773454223410bbe57fc4d3 Change-Id: I1bb4b2b416579641d03ca5611e335322a8d81ae2 Reviewed-by: Bernd Weimer <bweimer@rim.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com> * Add cursor position support to QPlatformCursorRafael Roquetto2012-12-193-1/+36 | | | | | | | | | | Based on qt5 4469de4ce7a72ab6824629bfe8483131aaf22137 Change-Id: I5886c11f3dcf72943e2956beaa92464657110ce9 Reviewed-by: Laszlo Agocs <lagocs83@gmail.com> Reviewed-by: Sérgio Martins <sergio.martins.qnx@kdab.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com> Reviewed-by: Sean Harmer <sean.harmer@kdab.com> * Blackberry: Reset virtual keyboard when shown.Sergio Martins2012-12-191-0/+4 | | | | | | | | | | | | | | | | The keyboard mode is shared between applications. You can reproduce this bug by clicking on a spin box, it will open a number only keyboard, then close the application and run an application that shows a text edit: a number only keyboard will appear. PPS keyboard already does this. Backport of Qt 5 commit 019f9158e64ae24 Change-Id: I1ef8e32ae2958a604cfe618b765b23504997f0d4 Reviewed-by: Sean Harmer <sean.harmer@kdab.com> * QMdiArea: Increase minimum size for Windows 8/Large fonts.Friedemann Kleint2012-12-191-2/+2 | | | | | | | | | Task-number: QTBUG-28611 Change-Id: I115a5fa6726ac99c2bbff4ec65d3f8856b2530df Reviewed-by: Oliver Wolff <oliver.wolff@digia.com> (cherry picked from qtbase/3e3451f42989a0dbd2398da78ad84441c7898fd3) Reviewed-by: Janne Anttila <janne.anttila@digia.com> * QMenu: Do not set snapToMouse if a caused-widget exists.Friedemann Kleint2012-12-192-5/+37 | | | | | | | | | | | | | When clicking at the bottom-right corner of a menu in a menu bar, it appears at the wrong position. Add test and stabilize RTL-tests by making sure the layout direction is cleared should they fail. Task-number: QTBUG-28031 Task-number: QTBUG-2596 Change-Id: Ibc5ae916388753908e9f3ee98e8859faaa0c8723 Reviewed-by: Olivier Goffart <ogoffart@woboq.com> (cherry picked from qtbase/bf178c77dda1db56ae698c1d31a6e3f685f4830f) * Backport adjusting cursorToX for trailing spaces from Qt 5Eskil Abrahamsen Blomfeldt2012-12-193-15/+450 | | | | | | | | | | | This is a backport of d07982b104de5dc2b54bef09c071500ce22cf539 from Qt 5 which fixes cursorToX() in some cases, e.g. when a line filled with spaces is ended by a soft line break. Task-number: QTBUG-27354 Change-Id: Ia88873aeb3c0620044fefe24fc6bb1310e3aa339 Reviewed-by: Lars Knoll <lars.knoll@digia.com> Reviewed-by: Andrew den Exter <andrew.den.exter@qinetic.com.au> * accept hex/octal values for RC_LANG and RC_CODEPAGEJoerg Bornemann2012-12-181-1/+7 | | | | | | | | Task-number: QTBUG-28624 Change-Id: I6188045b05ebb8b9d285d1b30f8082a2fe46ff8b Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com> (cherry picked from commit f0f12ea5f1b6fdaf3e2e38bf8d814dfa41cbca5b) * Use frameless widgets in tst_qgridlayout.Friedemann Kleint2012-12-181-2/+31 | | | | | | | | | Avoid failures caused by minimum window widths on Windows Areo/8. Task-number: QTBUG-28611 Change-Id: I9affcce84ab804a45fa1a12fb93ad0136e6ae877 Reviewed-by: Oliver Wolff <oliver.wolff@digia.com> (cherry picked from qtbase/d5d79f3c7f9e597cb63dfa8a9ccfb9dca733a782) * Allow qmljsdebugger argument and value to be separated by a spaceAurélien Gâteau2012-12-181-0/+4 | | | | | | | | | | | This change makes it possible to use the QML JS debugger with KDE applications. Change-Id: I1c6615c604a4023062fe6e6ead66dfcea9f8d493 Reviewed-by: David Faure (KDE) <faure@kde.org> Reviewed-by: Kai Koehne <kai.koehne@digia.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com> (cherry picked from qtbase/fea68274b89a9bcde55eabbf6eb7bf2e8376d930) * Return correct accessible name when a label has rich textJosé Millán Soto2012-12-161-1/+9 | | | | | | | | | When a QLabel was displaying rich text, the raw html was being returned as accessible name. Now the plain text is returned. Task-number: QTBUG-27302 Change-Id: I2fc469b4ca8fc3584b849bbe0a94d094d727d04f Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com> * a11y: Do not refer to destructed QObject in Windows bridgeJan Arve Saether2012-12-162-10/+32 | | | | | | | | | | | | The crash could happen if a QWidget in the UI got deleted, and the AT client later tried to access the widget through the cache (qAccessibleRecentSentEvents()). Solution: Use a QPointer as a guard. Task-number: QTBUG-26187 Change-Id: I41eab158989fddfa147309b6bd91ac0cd1fe7b1a Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com> * Remove the timestamp info in genarated filesLiang Qi2012-12-15