diff options
author | Alex Graveley <alex@ximian.com> | 2001-02-28 22:27:58 +0000 |
---|---|---|
committer | alex <alex> | 2001-02-28 22:27:58 +0000 |
commit | 5ea4f1603bf282a30a22fef77b4a486373b51ebf (patch) | |
tree | b0afb2f30bd779cabd37f88cceeadbdb37b71a57 /libsoup/soup-misc.h | |
parent | f2016ef52170cedff0e8110e9150610357da764a (diff) | |
download | libsoup-5ea4f1603bf282a30a22fef77b4a486373b51ebf.tar.gz |
glib idle callback which calls waitpid (nonblockingously) on all the
2001-02-28 Alex Graveley <alex@ximian.com>
* src/soup-core/soup-ssl.c (soup_ssl_idle_waitpid): glib idle
callback which calls waitpid (nonblockingously) on all the
soup-ssl-proxy children to make sure their resources are freed.
(soup_ssl_get_iochannel): execute soup-ssl-proxy, setting up STDIN
and STDOUT to point to the fd we will return a GIOChannel for,
also passing the security policy and the destination socket fd
number in the environments SECURITY_POLICY and SOCKFD,
respectively.
* src/soup-core/soup-ssl-proxy.c: Created. This is a small SSL
proxy executable, licensed GPL, which allows us to use OpenSSL and
NSS without requiring applications which link with libsoup to have
to comply with the licenses of those SSL libraries.
* src/soup-core/soup-server.c (soup_server_register): add handler
to list.
* src/soup-core/soup-queue.c (soup_queue_write_async): ignore
SIGPIPE and handle errno.
* src/soup-core/soup-misc.c (soup_set_security_policy): move from
soup-ssl.c.
(soup_get_security_policy): add.
* src/soup-core/soup-context.c (soup_connection_get_iochannel):
setup TCP socket before getting an SSL wrapper channel.
* src/soup-core/Makefile.am (INCLUDES): add -DBINDIR
(libsoup_la_SOURCES): remove ssl backends
(soup_ssl_proxy_SOURCES): create soup-ssl-proxy
* src/soup-core/.cvsignore: add soup-ssl-proxy
Diffstat (limited to 'libsoup/soup-misc.h')
-rw-r--r-- | libsoup/soup-misc.h | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/libsoup/soup-misc.h b/libsoup/soup-misc.h index 4b699988..a2b3ac40 100644 --- a/libsoup/soup-misc.h +++ b/libsoup/soup-misc.h @@ -17,15 +17,15 @@ #include "soup-message.h" #include "soup-uri.h" -void soup_set_proxy (SoupContext *ctx); +void soup_load_config (gchar *config_file); -SoupContext *soup_get_proxy (void); +void soup_set_proxy (SoupContext *ctx); -void soup_set_connection_limit (guint max_conn); +SoupContext *soup_get_proxy (void); -guint soup_get_connection_limit (void); +void soup_set_connection_limit (guint max_conn); -void soup_load_config (gchar *config_file); +guint soup_get_connection_limit (void); typedef enum { SOUP_SECURITY_DOMESTIC = 1, @@ -33,12 +33,14 @@ typedef enum { SOUP_SECURITY_FRANCE = 3 } SoupSecurityPolicy; -void soup_set_security_policy (SoupSecurityPolicy policy); +void soup_set_security_policy (SoupSecurityPolicy policy); + +SoupSecurityPolicy soup_get_security_policy (void); /* Useful debugging routines */ -void soup_debug_print_headers (SoupMessage *req); +void soup_debug_print_headers (SoupMessage *req); -void soup_debug_print_uri (SoupUri *uri); +void soup_debug_print_uri (SoupUri *uri); #endif /* SOUP_MISC_H */ |