diff options
author | Dan Winship <danw@src.gnome.org> | 2007-04-16 17:40:25 +0000 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2007-04-16 17:40:25 +0000 |
commit | 4f3c863510e2fdf20a9895529ffb9adac0cc24d7 (patch) | |
tree | 4942442f6046a9cb15c4ada99858bfb773d9be4d /libsoup/soup-ssl.h | |
parent | cfbdd6247e169134a6f3a920b3e3d4993d5208ed (diff) | |
download | libsoup-4f3c863510e2fdf20a9895529ffb9adac0cc24d7.tar.gz |
Make a real SoupSSLCredentials type rather than just using gpointer
* libsoup/soup-ssl.h: Make a real SoupSSLCredentials type rather
than just using gpointer
* libsoup/soup-server.c (SoupServerPrivate): use it
* libsoup/soup-session.c (SoupSessionPrivate): use it
* libsoup/soup-gnutls.c: Use it, and consistently use "creds"
rather than "cred" as the abbreviation for "credentials".
* docs/reference/libsoup-sections.txt:
* docs/reference/tmpl/soup-misc.sgml:
* docs/reference/tmpl/soup-ssl.sgml: update
svn path=/trunk/; revision=924
Diffstat (limited to 'libsoup/soup-ssl.h')
-rw-r--r-- | libsoup/soup-ssl.h | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/libsoup/soup-ssl.h b/libsoup/soup-ssl.h index 14425436..e0b2b1c8 100644 --- a/libsoup/soup-ssl.h +++ b/libsoup/soup-ssl.h @@ -20,16 +20,19 @@ typedef enum { SOUP_SSL_TYPE_SERVER } SoupSSLType; -gpointer soup_ssl_get_client_credentials (const char *ca_file); -void soup_ssl_free_client_credentials (gpointer creds); -gpointer soup_ssl_get_server_credentials (const char *cert_file, - const char *key_file); -void soup_ssl_free_server_credentials (gpointer creds); - -GIOChannel *soup_ssl_wrap_iochannel (GIOChannel *sock, - SoupSSLType type, - const char *remote_host, - gpointer credentials); +typedef struct SoupSSLCredentials SoupSSLCredentials; + +SoupSSLCredentials *soup_ssl_get_client_credentials (const char *ca_file); +void soup_ssl_free_client_credentials (SoupSSLCredentials *creds); + +SoupSSLCredentials *soup_ssl_get_server_credentials (const char *cert_file, + const char *key_file); +void soup_ssl_free_server_credentials (SoupSSLCredentials *creds); + +GIOChannel *soup_ssl_wrap_iochannel (GIOChannel *sock, + SoupSSLType type, + const char *remote_host, + SoupSSLCredentials *creds); #define SOUP_SSL_ERROR soup_ssl_error_quark() |