add SOUP_SSL_ERROR_CERTIFICATE.
authorDan Winship <danw@src.gnome.org>
Wed, 6 Oct 2004 17:21:07 +0000 (17:21 +0000)
committerDan Winship <danw@src.gnome.org>
Wed, 6 Oct 2004 17:21:07 +0000 (17:21 +0000)
commit9b494e16960e853c6e8efe3774b302f0e04523e4
treef22734aa595876709c53e0d7377982ab491984c0
parent7a890d5783cc4c1770649cb9ab7fe271d514ec29
add SOUP_SSL_ERROR_CERTIFICATE.

* libsoup/soup-ssl.h (SoupSocketError): add
SOUP_SSL_ERROR_CERTIFICATE.

* libsoup/soup-gnutls.c (do_handshake): Pass the GError to
verify_certificate.
(verify_certificate): Set the GError appropriately rather than
spewing g_warnings.

* libsoup/soup-socket.c (read_from_network, soup_socket_write): If
the GIOChannel operation returns an error, store it as GOBject
data on the socket (as a hack so soup-message-io.c can access it
without us needing to change SoupSocket's API).

* libsoup/soup-message-io.c (io_error): peek at the socket's
"last_error" datum and set the message's status to SSL_FAILED
(with the GError's message string) rather than IO_ERROR, if
appropriate. For 64414.
ChangeLog
libsoup/soup-message-io.c
libsoup/soup-socket.c
libsoup/soup-ssl.h