Changeset 109338 in webkit


Ignore:
Timestamp:
Mar 1, 2012 4:51:43 AM (12 years ago)
Author:
sergio@webkit.org
Message:

[WK2] [GTK] [libsoup] SoupSession should use system CA
https://bugs.webkit.org/show_bug.cgi?id=79657

Reviewed by Martin Robinson.

SoupSession sould use system CA list to validate SSL
certificates. Do not use strict certificate validation though as
we want clients to decide whether or not accept/decline invalid
certificates (API to be added later).

No new tests required as current behaviour does not change at all
as we continue to accept invalid certificates by default.

  • WebProcess/gtk/WebProcessMainGtk.cpp:

(WebKit::WebProcessMainGtk):

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r109329 r109338  
     12012-03-01  Sergio Villar Senin  <svillar@igalia.com>
     2
     3        [WK2] [GTK] [libsoup] SoupSession should use system CA
     4        https://bugs.webkit.org/show_bug.cgi?id=79657
     5
     6        Reviewed by Martin Robinson.
     7
     8        SoupSession sould use system CA list to validate SSL
     9        certificates. Do not use strict certificate validation though as
     10        we want clients to decide whether or not accept/decline invalid
     11        certificates (API to be added later).
     12
     13        No new tests required as current behaviour does not change at all
     14        as we continue to accept invalid certificates by default.
     15
     16        * WebProcess/gtk/WebProcessMainGtk.cpp:
     17        (WebKit::WebProcessMainGtk):
     18
    1192012-03-01  Carlos Garcia Campos  <cgarcia@igalia.com>
    220
  • trunk/Source/WebKit2/WebProcess/gtk/WebProcessMainGtk.cpp

    r108250 r109338  
    6565    soup_session_add_feature_by_type(session, WEB_TYPE_AUTH_DIALOG);
    6666
     67    // Despite using system CAs to validate certificates we're
     68    // accepting invalid certificates by default. New API will be
     69    // added later to let client accept/discard invalid certificates.
     70    g_object_set(session, SOUP_SESSION_SSL_USE_SYSTEM_CA_FILE, TRUE,
     71                 SOUP_SESSION_SSL_STRICT, FALSE, NULL);
     72
    6773    RunLoop::run();
    6874
Note: See TracChangeset for help on using the changeset viewer.