Revision 21519,
994 bytes
checked in by ghudson, 20 years ago
(diff) |
This commit was generated by cvs2svn to compensate for changes in r21518,
which included commits to RCS files with non-trunk default branches.
|
Line | |
---|
1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ |
---|
2 | /* |
---|
3 | * Copyright (C) 2000-2003, Ximian, Inc. |
---|
4 | */ |
---|
5 | |
---|
6 | #ifndef SOUP_SSL_H |
---|
7 | #define SOUP_SSL_H 1 |
---|
8 | |
---|
9 | #include <glib.h> |
---|
10 | |
---|
11 | typedef enum { |
---|
12 | SOUP_SSL_TYPE_CLIENT = 0, |
---|
13 | SOUP_SSL_TYPE_SERVER |
---|
14 | } SoupSSLType; |
---|
15 | |
---|
16 | gpointer soup_ssl_get_client_credentials (const char *ca_file); |
---|
17 | void soup_ssl_free_client_credentials (gpointer creds); |
---|
18 | gpointer soup_ssl_get_server_credentials (const char *cert_file, |
---|
19 | const char *key_file); |
---|
20 | void soup_ssl_free_server_credentials (gpointer creds); |
---|
21 | |
---|
22 | GIOChannel *soup_ssl_wrap_iochannel (GIOChannel *sock, |
---|
23 | SoupSSLType type, |
---|
24 | const char *remote_host, |
---|
25 | gpointer credentials); |
---|
26 | |
---|
27 | #define SOUP_SSL_ERROR soup_ssl_error_quark() |
---|
28 | |
---|
29 | GQuark soup_ssl_error_quark (void); |
---|
30 | |
---|
31 | typedef enum { |
---|
32 | SOUP_SSL_ERROR_HANDSHAKE_NEEDS_READ, |
---|
33 | SOUP_SSL_ERROR_HANDSHAKE_NEEDS_WRITE, |
---|
34 | SOUP_SSL_ERROR_CERTIFICATE, |
---|
35 | } SoupSocketError; |
---|
36 | |
---|
37 | #endif /* SOUP_SSL_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.