comparison libpurple/sslconn.h @ 20115:a68d51d60177

Create purple_connection_ssl_error(), which converts a PurpleSslErrorType to a PurpleDisconnectReason then calls purple_connection_error_reason().
author Will Thompson <will.thompson@collabora.co.uk>
date Wed, 19 Sep 2007 15:00:48 +0000
parents 6bf32c9e15a7
children f3cfcbbac3d8
comparison
equal deleted inserted replaced
20114:a465779350aa 20115:a68d51d60177
23 * along with this program; if not, write to the Free Software 23 * along with this program; if not, write to the Free Software
24 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA 24 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
25 */ 25 */
26 #ifndef _PURPLE_SSLCONN_H_ 26 #ifndef _PURPLE_SSLCONN_H_
27 #define _PURPLE_SSLCONN_H_ 27 #define _PURPLE_SSLCONN_H_
28
29 #include "certificate.h"
30 #include "proxy.h"
31
32 #define PURPLE_SSL_DEFAULT_PORT 443
33 28
34 typedef enum 29 typedef enum
35 { 30 {
36 PURPLE_SSL_HANDSHAKE_FAILED = 1, 31 PURPLE_SSL_HANDSHAKE_FAILED = 1,
37 PURPLE_SSL_CONNECT_FAILED = 2, 32 PURPLE_SSL_CONNECT_FAILED = 2,
38 PURPLE_SSL_CERTIFICATE_INVALID = 3 33 PURPLE_SSL_CERTIFICATE_INVALID = 3
39 } PurpleSslErrorType; 34 } PurpleSslErrorType;
35
36 #include "certificate.h"
37 #include "proxy.h"
38
39 #define PURPLE_SSL_DEFAULT_PORT 443
40 40
41 typedef struct _PurpleSslConnection PurpleSslConnection; 41 typedef struct _PurpleSslConnection PurpleSslConnection;
42 42
43 typedef void (*PurpleSslInputFunction)(gpointer, PurpleSslConnection *, 43 typedef void (*PurpleSslInputFunction)(gpointer, PurpleSslConnection *,
44 PurpleInputCondition); 44 PurpleInputCondition);