Changeset 102598 in webkit
- Timestamp:
- Dec 12, 2011 10:17:40 AM (12 years ago)
- Location:
- trunk/Source/WebKit/efl
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/efl/ChangeLog
- Property svn:executable deleted
r102297 r102598 1 2011-12-12 Raphael Kubo da Costa <kubo@profusion.mobi> 2 3 [EFL] Add API to control whether SSL certificates should be checked. 4 https://bugs.webkit.org/show_bug.cgi?id=74299 5 6 Reviewed by Martin Robinson. 7 8 * ewk/ewk_main.cpp: 9 (_ewk_init_body): Explicitly disable certificate checks by default. 10 * ewk/ewk_network.cpp: 11 (ewk_network_tls_certificate_check_get): 12 (ewk_network_tls_certificate_check_set): 13 * ewk/ewk_network.h: 14 1 15 2011-12-07 Ryuan Choi <ryuan.choi@samsung.com> 2 16 -
trunk/Source/WebKit/efl/ewk/ewk_main.cpp
r102235 r102598 29 29 #include "Settings.h" 30 30 #include "ewk_logging.h" 31 #include "ewk_network.h" 31 32 #include "ewk_private.h" 32 33 #include "ewk_settings.h" … … 186 187 } 187 188 189 ewk_network_tls_certificate_check_set(false); 190 188 191 // TODO: this should move to WebCore, already reported to webkit-gtk folks: 189 192 #if USE(SOUP) -
trunk/Source/WebKit/efl/ewk/ewk_network.cpp
r101726 r102598 76 76 } 77 77 78 Eina_Bool ewk_network_tls_certificate_check_get() 79 { 80 bool checkCertificates = false; 81 82 #if USE(SOUP) 83 SoupSession* defaultSession = WebCore::ResourceHandle::defaultSession(); 84 g_object_get(defaultSession, "ssl-strict", &checkCertificates, NULL); 85 #endif 86 87 return checkCertificates; 88 } 89 90 void ewk_network_tls_certificate_check_set(Eina_Bool checkCertificates) 91 { 92 #if USE(SOUP) 93 SoupSession* defaultSession = WebCore::ResourceHandle::defaultSession(); 94 g_object_set(defaultSession, "ssl-strict", checkCertificates, NULL); 95 #endif 96 } 97 78 98 SoupSession* ewk_network_default_soup_session_get() 79 99 { -
trunk/Source/WebKit/efl/ewk/ewk_network.h
r101726 r102598 32 32 #endif 33 33 34 typedef struct _SoupSession SoupSession; 35 34 36 /** 35 37 * Sets the given proxy URI to network backend. … … 55 57 EAPI void ewk_network_state_notifier_online_set(Eina_Bool online); 56 58 57 typedef struct _SoupSession SoupSession; 59 /** 60 * Returns whether HTTPS connections should check the received certificate and error out if it is invalid. 61 * 62 * By default, HTTPS connections are performed regardless of the validity of the certificate provided. 63 */ 64 EAPI Eina_Bool ewk_network_tls_certificate_check_get(void); 65 66 /** 67 * Sets whether HTTPS connections should check the received certificate and error out if it is invalid. 68 * 69 * By default, HTTPS connections are performed regardless of the validity of the certificate provided. 70 * 71 * @param enable Whether to check the provided certificates or not. 72 */ 73 EAPI void ewk_network_tls_certificate_check_set(Eina_Bool enable); 58 74 59 75 /**
Note: See TracChangeset
for help on using the changeset viewer.