Fix the ssl trusted check.

Thank you Steve Dee <mrdomino@gmail.com>!
This commit is contained in:
Christoph Lohmann 2014-01-30 19:35:54 +01:00
parent 9eedabe348
commit a78aec6630
1 changed files with 2 additions and 2 deletions

4
surf.c
View File

@ -601,8 +601,8 @@ loadstatuschange(WebKitWebView *view, GParamSpec *pspec, Client *c) {
src = webkit_web_frame_get_data_source(frame); src = webkit_web_frame_get_data_source(frame);
request = webkit_web_data_source_get_request(src); request = webkit_web_data_source_get_request(src);
msg = webkit_network_request_get_message(request); msg = webkit_network_request_get_message(request);
c->sslfailed = soup_message_get_flags(msg) c->sslfailed = !(soup_message_get_flags(msg)
^ SOUP_MESSAGE_CERTIFICATE_TRUSTED; & SOUP_MESSAGE_CERTIFICATE_TRUSTED);
} }
setatom(c, AtomUri, uri); setatom(c, AtomUri, uri);
break; break;