1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ |
|
2 /* |
|
3 * Copyright (C) 2003-2006 Imendio AB |
|
4 * |
|
5 * This program is free software; you can redistribute it and/or |
|
6 * modify it under the terms of the GNU Lesser General Public License as |
|
7 * published by the Free Software Foundation; either version 2 of the |
|
8 * License, or (at your option) any later version. |
|
9 * |
|
10 * This program is distributed in the hope that it will be useful, |
|
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
13 * Lesser General Public License for more details. |
|
14 * |
|
15 * You should have received a copy of the GNU Lesser General Public |
|
16 * License along with this program; if not, write to the |
|
17 * Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
|
18 * Boston, MA 02111-1307, USA. |
|
19 */ |
|
20 |
|
21 #ifndef __LM_SSL_INTERNALS_H__ |
|
22 #define __LM_SSL_INTERNALS_H__ |
|
23 |
|
24 #include <glib.h> |
|
25 |
|
26 LmSSLResponse _lm_ssl_func_always_continue (LmSSL *ssl, |
|
27 LmSSLStatus status, |
|
28 gpointer user_data); |
|
29 LmSSL * _lm_ssl_new (const gchar *expected_fingerprint, |
|
30 LmSSLFunction ssl_function, |
|
31 gpointer user_data, |
|
32 GDestroyNotify notify); |
|
33 |
|
34 void _lm_ssl_initialize (LmSSL *ssl); |
|
35 gboolean _lm_ssl_begin (LmSSL *ssl, |
|
36 gint fd, |
|
37 const gchar *server, |
|
38 GError **error); |
|
39 GIOStatus _lm_ssl_read (LmSSL *ssl, |
|
40 gchar *buf, |
|
41 gint len, |
|
42 gsize *bytes_read); |
|
43 gint _lm_ssl_send (LmSSL *ssl, |
|
44 const gchar *str, |
|
45 gint len); |
|
46 void _lm_ssl_close (LmSSL *ssl); |
|
47 void _lm_ssl_free (LmSSL *ssl); |
|
48 |
|
49 LmSSL * _lm_ssl_new (const gchar *expected_fingerprint, |
|
50 LmSSLFunction ssl_function, |
|
51 gpointer user_data, |
|
52 GDestroyNotify notify); |
|
53 |
|
54 void _lm_ssl_initialize (LmSSL *ssl); |
|
55 gboolean _lm_ssl_begin (LmSSL *ssl, |
|
56 gint fd, |
|
57 const gchar *server, |
|
58 GError **error); |
|
59 GIOStatus _lm_ssl_read (LmSSL *ssl, |
|
60 gchar *buf, |
|
61 gint len, |
|
62 gsize *bytes_read); |
|
63 gint _lm_ssl_send (LmSSL *ssl, |
|
64 const gchar *str, |
|
65 gint len); |
|
66 void _lm_ssl_close (LmSSL *ssl); |
|
67 void _lm_ssl_free (LmSSL *ssl); |
|
68 |
|
69 #endif /* __LM_SSL_INTERNALS_H__ */ |
|