summaryrefslogtreecommitdiff
path: root/libsoup
diff options
context:
space:
mode:
authorJoe Shaw <joe@ximian.com>2002-11-13 16:34:02 +0000
committerJoe Shaw <joeshaw@src.gnome.org>2002-11-13 16:34:02 +0000
commit6e155b6159e1008669fdde716b7600b14e92fcb0 (patch)
treede9a0afb262b5ebec470755caedca287c3e75a55 /libsoup
parentf04f28a923af9dc07dca69525691a1d6a1125143 (diff)
downloadlibsoup-6e155b6159e1008669fdde716b7600b14e92fcb0.tar.gz
Replace the BINDIR define with LIBEXECDIR. (install-exec-hook): Install
2002-12-13 Joe Shaw <joe@ximian.com> * libsoup/Makefile.am: Replace the BINDIR define with LIBEXECDIR. (install-exec-hook): Install libsoup-ssl-proxy into libexecdir instead of bindir. * libsoup/soup-openssl.c (soup_openssl_close): Call SSL_shutdown() to properly shut down the SSL connection before closing the socket. * libsoup/soup-ssl-proxy.c (soup_ssl_proxy_readwrite): Close the iochannels before quitting the main loop. * tests/Makefile.am: disable building timeserver, the source file wasn't added.
Diffstat (limited to 'libsoup')
-rw-r--r--libsoup/Makefile.am6
-rw-r--r--libsoup/soup-openssl.c1
-rw-r--r--libsoup/soup-ssl-proxy.c2
-rw-r--r--libsoup/soup-ssl.c4
4 files changed, 8 insertions, 5 deletions
diff --git a/libsoup/Makefile.am b/libsoup/Makefile.am
index cca76441..dd759f21 100644
--- a/libsoup/Makefile.am
+++ b/libsoup/Makefile.am
@@ -3,7 +3,7 @@
INCLUDES = \
-DG_LOG_DOMAIN=\"SOUP\" \
-DSYSCONFDIR=\"$(sysconfdir)\" \
- -DBINDIR=\"$(bindir)\" \
+ -DLIBEXECDIR=\"$(libexecdir)\" \
-I$(top_srcdir) \
$(SOUP_DEBUG_FLAGS) \
$(GLIB_CFLAGS) \
@@ -79,5 +79,5 @@ libsoup_ssl_proxy_SOURCES = \
soup-ssl-proxy.c
install-exec-hook:
- $(mkinstalldirs) $(DESTDIR)$(bindir)
- $(INSTALL_PROGRAM) libsoup-ssl-proxy $(DESTDIR)$(bindir)/$(SSL_PROXY_NAME)
+ $(mkinstalldirs) $(DESTDIR)$(libexecdir)
+ $(INSTALL_PROGRAM) libsoup-ssl-proxy $(DESTDIR)$(libexecdir)/$(SSL_PROXY_NAME)
diff --git a/libsoup/soup-openssl.c b/libsoup/soup-openssl.c
index 015cbf50..4bb57f94 100644
--- a/libsoup/soup-openssl.c
+++ b/libsoup/soup-openssl.c
@@ -136,6 +136,7 @@ soup_openssl_close (GIOChannel *channel,
GError **err)
{
SoupOpenSSLChannel *chan = (SoupOpenSSLChannel *) channel;
+ SSL_shutdown (chan->ssl);
g_io_channel_close (chan->real_sock);
return G_IO_STATUS_NORMAL;
diff --git a/libsoup/soup-ssl-proxy.c b/libsoup/soup-ssl-proxy.c
index e161acce..b4ae9954 100644
--- a/libsoup/soup-ssl-proxy.c
+++ b/libsoup/soup-ssl-proxy.c
@@ -121,6 +121,8 @@ soup_ssl_proxy_readwrite (GIOChannel *iochannel,
return TRUE;
FINISH:
+ g_io_channel_close (iochannel);
+ g_io_channel_close (dest);
g_main_quit (loop);
return FALSE;
}
diff --git a/libsoup/soup-ssl.c b/libsoup/soup-ssl.c
index 63adb338..d8aef717 100644
--- a/libsoup/soup-ssl.c
+++ b/libsoup/soup-ssl.c
@@ -109,8 +109,8 @@ soup_ssl_get_iochannel_real (GIOChannel *sock, SoupSSLType type)
key_file));
}
- execl (BINDIR G_DIR_SEPARATOR_S SSL_PROXY_NAME,
- BINDIR G_DIR_SEPARATOR_S SSL_PROXY_NAME,
+ execl (LIBEXECDIR G_DIR_SEPARATOR_S SSL_PROXY_NAME,
+ LIBEXECDIR G_DIR_SEPARATOR_S SSL_PROXY_NAME,
NULL);
execlp (SSL_PROXY_NAME, SSL_PROXY_NAME, NULL);