Sun, 15 May 2016 15:32:05 -0300
Add "account-status-changing" signal from instantbird
It's like "account-status-changed", but emitted before the status change
instead of after.
Instantbird ticket: https://bugzilla.mozilla.org/show_bug.cgi?id=954403
|
37620
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
1 | /* |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
2 | * |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
3 | * purple |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
4 | * |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
5 | * Purple is the legal property of its developers, whose names are too numerous |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
6 | * to list here. Please refer to the COPYRIGHT file distributed with this |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
7 | * source distribution. |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
8 | * |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
9 | * This program is free software; you can redistribute it and/or modify |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
10 | * it under the terms of the GNU General Public License as published by |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
11 | * the Free Software Foundation; either version 2 of the License, or |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
12 | * (at your option) any later version. |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
13 | * |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
14 | * This program is distributed in the hope that it will be useful, |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
17 | * GNU General Public License for more details. |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
18 | * |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
19 | * You should have received a copy of the GNU General Public License |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
20 | * along with this program; if not, write to the Free Software |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
21 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
22 | */ |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
23 | |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
24 | #ifndef _PURPLE_TLS_CERTIFICATE_H |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
25 | #define _PURPLE_TLS_CERTIFICATE_H |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
26 | /** |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
27 | * SECTION:tls-certificate |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
28 | * @section_id: libpurple-tls-certificate |
|
37633
323b1884d008
Improve TLS Certificate API documentation and add transfer annotations
Mike Ruprecht <cmaiku@gmail.com>
parents:
37632
diff
changeset
|
29 | * @short_description: TLS certificate trust and storage API |
|
37620
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
30 | * @title: TLS Certificate API |
|
37633
323b1884d008
Improve TLS Certificate API documentation and add transfer annotations
Mike Ruprecht <cmaiku@gmail.com>
parents:
37632
diff
changeset
|
31 | * |
|
323b1884d008
Improve TLS Certificate API documentation and add transfer annotations
Mike Ruprecht <cmaiku@gmail.com>
parents:
37632
diff
changeset
|
32 | * The TLS Certificate API provides functions for trusting and storing |
|
323b1884d008
Improve TLS Certificate API documentation and add transfer annotations
Mike Ruprecht <cmaiku@gmail.com>
parents:
37632
diff
changeset
|
33 | * certificates for use with TLS/SSL connections. This allows certificates, |
|
323b1884d008
Improve TLS Certificate API documentation and add transfer annotations
Mike Ruprecht <cmaiku@gmail.com>
parents:
37632
diff
changeset
|
34 | * which aren't considered valid by the TLS implementation, to be manually |
|
323b1884d008
Improve TLS Certificate API documentation and add transfer annotations
Mike Ruprecht <cmaiku@gmail.com>
parents:
37632
diff
changeset
|
35 | * trusted by the user, distrusted at a later time, and queried by the UI. |
|
323b1884d008
Improve TLS Certificate API documentation and add transfer annotations
Mike Ruprecht <cmaiku@gmail.com>
parents:
37632
diff
changeset
|
36 | * It also provides functions to simply wire this system into Gio. |
|
37620
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
37 | */ |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
38 | |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
39 | #include <gio/gio.h> |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
40 | |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
41 | /** |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
42 | * purple_tls_certificate_list_ids: |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
43 | * |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
44 | * Returns a list of the IDs for certificates trusted with |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
45 | * purple_tls_certificate_trust() and friends. These IDs can then be passed |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
46 | * to purple_certificate_path() or used directly, if desired. |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
47 | * |
|
37633
323b1884d008
Improve TLS Certificate API documentation and add transfer annotations
Mike Ruprecht <cmaiku@gmail.com>
parents:
37632
diff
changeset
|
48 | * Returns: (element-type utf8): The #GList of IDs described above |
|
37620
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
49 | * Free with purple_certificate_free_ids() |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
50 | */ |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
51 | GList * |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
52 | purple_tls_certificate_list_ids(void); |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
53 | |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
54 | /** |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
55 | * purple_tls_certificate_free_ids: |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
56 | * @ids: List of ids retrieved from purple_certificate_list_ids() |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
57 | * |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
58 | * Frees the list of IDs returned from purple_certificate_list_ids(). |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
59 | */ |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
60 | void |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
61 | purple_tls_certificate_free_ids(GList *ids); |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
62 | |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
63 | /** |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
64 | * purple_tls_certificate_new_from_id: |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
65 | * @id: ID of certificate to load |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
66 | * @error: A GError location to store the error occurring, or NULL to ignore |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
67 | * |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
68 | * Loads the certificate referenced by ID into a #GTlsCertificate object. |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
69 | */ |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
70 | GTlsCertificate * |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
71 | purple_tls_certificate_new_from_id(const gchar *id, GError **error); |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
72 | |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
73 | /** |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
74 | * purple_tls_certificate_trust: |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
75 | * @id: ID to associate with the certificate |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
76 | * @certificate: Certificate to trust for TLS operations |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
77 | * @error: A GError location to store the error occurring, or NULL to ignore |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
78 | * |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
79 | * Trusts the certificate to be allowed for TLS operations even if |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
80 | * it would otherwise fail. |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
81 | * |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
82 | * Returns: #TRUE on success, #FALSE otherwise |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
83 | */ |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
84 | gboolean |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
85 | purple_tls_certificate_trust(const gchar *id, GTlsCertificate *certificate, |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
86 | GError **error); |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
87 | |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
88 | /** |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
89 | * purple_tls_certificate_distrust: |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
90 | * @id: ID associated with the certificate to distrust |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
91 | * @error: A GError location to store the error occurring, or NULL to ignore |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
92 | * |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
93 | * Revokes full trust of certificate. The certificate will be accepted |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
94 | * in TLS operations only if it passes normal validation. |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
95 | * |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
96 | * Returns: #TRUE on success, #FALSE otherwise |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
97 | */ |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
98 | gboolean |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
99 | purple_tls_certificate_distrust(const gchar *id, GError **error); |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
100 | |
|
37621
2a2f1068e0f0
Add helper API for using Purple TLS subsystem with GTlsConnections
Mike Ruprecht <cmaiku@gmail.com>
parents:
37620
diff
changeset
|
101 | |
|
2a2f1068e0f0
Add helper API for using Purple TLS subsystem with GTlsConnections
Mike Ruprecht <cmaiku@gmail.com>
parents:
37620
diff
changeset
|
102 | /** |
|
2a2f1068e0f0
Add helper API for using Purple TLS subsystem with GTlsConnections
Mike Ruprecht <cmaiku@gmail.com>
parents:
37620
diff
changeset
|
103 | * purple_tls_certificate_attach_to_tls_connection: |
|
2a2f1068e0f0
Add helper API for using Purple TLS subsystem with GTlsConnections
Mike Ruprecht <cmaiku@gmail.com>
parents:
37620
diff
changeset
|
104 | * @conn: #GTlsConnection to connect to |
|
2a2f1068e0f0
Add helper API for using Purple TLS subsystem with GTlsConnections
Mike Ruprecht <cmaiku@gmail.com>
parents:
37620
diff
changeset
|
105 | * |
|
2a2f1068e0f0
Add helper API for using Purple TLS subsystem with GTlsConnections
Mike Ruprecht <cmaiku@gmail.com>
parents:
37620
diff
changeset
|
106 | * Connects the Purple TLS certificate subsystem to @conn so it will accept |
|
2a2f1068e0f0
Add helper API for using Purple TLS subsystem with GTlsConnections
Mike Ruprecht <cmaiku@gmail.com>
parents:
37620
diff
changeset
|
107 | * certificates trusted by purple_tls_certificate_trust() and friends. |
|
2a2f1068e0f0
Add helper API for using Purple TLS subsystem with GTlsConnections
Mike Ruprecht <cmaiku@gmail.com>
parents:
37620
diff
changeset
|
108 | * |
|
37633
323b1884d008
Improve TLS Certificate API documentation and add transfer annotations
Mike Ruprecht <cmaiku@gmail.com>
parents:
37632
diff
changeset
|
109 | * Returns: (transfer: none) (type GObject.Object): @conn, similar to |
|
323b1884d008
Improve TLS Certificate API documentation and add transfer annotations
Mike Ruprecht <cmaiku@gmail.com>
parents:
37632
diff
changeset
|
110 | * g_object_connect() |
|
37621
2a2f1068e0f0
Add helper API for using Purple TLS subsystem with GTlsConnections
Mike Ruprecht <cmaiku@gmail.com>
parents:
37620
diff
changeset
|
111 | */ |
|
2a2f1068e0f0
Add helper API for using Purple TLS subsystem with GTlsConnections
Mike Ruprecht <cmaiku@gmail.com>
parents:
37620
diff
changeset
|
112 | gpointer |
|
2a2f1068e0f0
Add helper API for using Purple TLS subsystem with GTlsConnections
Mike Ruprecht <cmaiku@gmail.com>
parents:
37620
diff
changeset
|
113 | purple_tls_certificate_attach_to_tls_connection(GTlsConnection *conn); |
|
2a2f1068e0f0
Add helper API for using Purple TLS subsystem with GTlsConnections
Mike Ruprecht <cmaiku@gmail.com>
parents:
37620
diff
changeset
|
114 | |
|
2a2f1068e0f0
Add helper API for using Purple TLS subsystem with GTlsConnections
Mike Ruprecht <cmaiku@gmail.com>
parents:
37620
diff
changeset
|
115 | /** |
|
2a2f1068e0f0
Add helper API for using Purple TLS subsystem with GTlsConnections
Mike Ruprecht <cmaiku@gmail.com>
parents:
37620
diff
changeset
|
116 | * purple_tls_certificate_attach_to_socket_client: |
|
2a2f1068e0f0
Add helper API for using Purple TLS subsystem with GTlsConnections
Mike Ruprecht <cmaiku@gmail.com>
parents:
37620
diff
changeset
|
117 | * @client: #GSocketClient to connect to |
|
2a2f1068e0f0
Add helper API for using Purple TLS subsystem with GTlsConnections
Mike Ruprecht <cmaiku@gmail.com>
parents:
37620
diff
changeset
|
118 | * |
|
2a2f1068e0f0
Add helper API for using Purple TLS subsystem with GTlsConnections
Mike Ruprecht <cmaiku@gmail.com>
parents:
37620
diff
changeset
|
119 | * Connects the Purple TLS certificate subsystem to @client so any TLS |
|
2a2f1068e0f0
Add helper API for using Purple TLS subsystem with GTlsConnections
Mike Ruprecht <cmaiku@gmail.com>
parents:
37620
diff
changeset
|
120 | * connections it creates will accept certificates trusted by |
|
2a2f1068e0f0
Add helper API for using Purple TLS subsystem with GTlsConnections
Mike Ruprecht <cmaiku@gmail.com>
parents:
37620
diff
changeset
|
121 | * purple_tls_certificate_trust() and friends. |
|
2a2f1068e0f0
Add helper API for using Purple TLS subsystem with GTlsConnections
Mike Ruprecht <cmaiku@gmail.com>
parents:
37620
diff
changeset
|
122 | * |
|
37633
323b1884d008
Improve TLS Certificate API documentation and add transfer annotations
Mike Ruprecht <cmaiku@gmail.com>
parents:
37632
diff
changeset
|
123 | * Returns: (transfer: none) (type GObject.Object): @client, similar to |
|
323b1884d008
Improve TLS Certificate API documentation and add transfer annotations
Mike Ruprecht <cmaiku@gmail.com>
parents:
37632
diff
changeset
|
124 | * g_object_connect() |
|
37621
2a2f1068e0f0
Add helper API for using Purple TLS subsystem with GTlsConnections
Mike Ruprecht <cmaiku@gmail.com>
parents:
37620
diff
changeset
|
125 | */ |
|
2a2f1068e0f0
Add helper API for using Purple TLS subsystem with GTlsConnections
Mike Ruprecht <cmaiku@gmail.com>
parents:
37620
diff
changeset
|
126 | gpointer |
|
2a2f1068e0f0
Add helper API for using Purple TLS subsystem with GTlsConnections
Mike Ruprecht <cmaiku@gmail.com>
parents:
37620
diff
changeset
|
127 | purple_tls_certificate_attach_to_socket_client(GSocketClient *client); |
|
2a2f1068e0f0
Add helper API for using Purple TLS subsystem with GTlsConnections
Mike Ruprecht <cmaiku@gmail.com>
parents:
37620
diff
changeset
|
128 | |
|
37620
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
129 | G_END_DECLS |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
130 | |
|
5467197bd084
Implement new, simplified TLS certificate API in libpurple
Mike Ruprecht <cmaiku@gmail.com>
parents:
diff
changeset
|
131 | #endif /* _PURPLE_TLS_CERTIFICATE_H */ |