[dev] [surf] [PATCH] Clean up SSL validation

From: Steve Dee <mrdomino_AT_gmail.com>
Date: Sun, 26 Jan 2014 21:52:06 -0800

soup_message_get_flags returns a bunch of flags besides
SOUP_MESSAGE_CERTIFICATE_TRUSTED, so the XOR check was incorrect.

While I was tracking this bug, I switched from libsoup's deprecated [0]
ssl-ca-file to its non-deprecated tls-database property. I don't know if I
did that properly, having never touched glib nor being able to find whether
g_object_set transfers pointers. So here's two patches, one almost
certainly good and somewhat important, and the other of unknown validity
and unimportant.


Received on Mon Jan 27 2014 - 06:52:06 CET

This archive was generated by hypermail 2.3.0 : Mon Jan 27 2014 - 07:00:08 CET