Changeset 68248 in webkit


Ignore:
Timestamp:
Sep 24, 2010 5:44:42 AM (14 years ago)
Author:
yael.aharon@nokia.com
Message:

2010-09-24 Yael Aharon <yael.aharon@nokia.com>

Reviewed by Kenneth Rohde Christiansen.

[Qt] Web Sockets are insecure with QtWebKit
https://bugs.webkit.org/show_bug.cgi?id=44769

Throw an error when the server certificate is not valid.
DRT currently does not support secure websocket connection,
so no new tests. This was tested with the server at
http://code.google.com/p/pywebsocket instead.

  • platform/network/qt/SocketStreamHandleQt.cpp: (WebCore::SocketStreamHandlePrivate::socketSslErrors):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r68243 r68248  
     12010-09-24  Yael Aharon  <yael.aharon@nokia.com>
     2
     3        Reviewed by Kenneth Rohde Christiansen.
     4
     5        [Qt] Web Sockets are insecure with QtWebKit
     6        https://bugs.webkit.org/show_bug.cgi?id=44769
     7
     8        Throw an error when the server certificate is not valid.
     9        DRT currently does not support secure websocket connection,
     10        so no new tests. This was tested with the server at
     11        http://code.google.com/p/pywebsocket instead.
     12
     13        * platform/network/qt/SocketStreamHandleQt.cpp:
     14        (WebCore::SocketStreamHandlePrivate::socketSslErrors):
     15
    1162010-09-24  Jia Pu  <jpu@apple.com>
    217
  • trunk/WebCore/platform/network/qt/SocketStreamHandleQt.cpp

    r54298 r68248  
    149149
    150150#ifndef QT_NO_OPENSSL
    151 void SocketStreamHandlePrivate::socketSslErrors(const QList<QSslError>&)
    152 {
    153     // FIXME: based on http://tools.ietf.org/html/draft-hixie-thewebsocketprotocol-68#page-15
    154     // we should abort on certificate errors.
    155     // We don't abort while this is still work in progress.
    156     static_cast<QSslSocket*>(m_socket)->ignoreSslErrors();
     151void SocketStreamHandlePrivate::socketSslErrors(const QList<QSslError>& error)
     152{
     153    QMetaObject::invokeMethod(this, "socketErrorCallback", Qt::QueuedConnection, Q_ARG(int, error[0].error()));
    157154}
    158155#endif
Note: See TracChangeset for help on using the changeset viewer.