Mercurial > pidgin
comparison libpurple/sslconn.h @ 18944:3a71a46d171c
- Add verifier field to SslConnection
author | William Ehlhardt <williamehlhardt@gmail.com> |
---|---|
date | Sat, 23 Jun 2007 19:24:16 +0000 |
parents | e634122cec47 |
children | d07258902ff3 |
comparison
equal
deleted
inserted
replaced
18943:c519ff185569 | 18944:3a71a46d171c |
---|---|
23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
24 */ | 24 */ |
25 #ifndef _PURPLE_SSLCONN_H_ | 25 #ifndef _PURPLE_SSLCONN_H_ |
26 #define _PURPLE_SSLCONN_H_ | 26 #define _PURPLE_SSLCONN_H_ |
27 | 27 |
28 #include "certificate.h" | |
28 #include "proxy.h" | 29 #include "proxy.h" |
29 | 30 |
30 #define PURPLE_SSL_DEFAULT_PORT 443 | 31 #define PURPLE_SSL_DEFAULT_PORT 443 |
31 | 32 |
32 typedef enum | 33 typedef enum |
67 /** Data related to the underlying TCP connection */ | 68 /** Data related to the underlying TCP connection */ |
68 PurpleProxyConnectData *connect_data; | 69 PurpleProxyConnectData *connect_data; |
69 | 70 |
70 /** Internal connection data managed by the SSL backend (GnuTLS/LibNSS/whatever) */ | 71 /** Internal connection data managed by the SSL backend (GnuTLS/LibNSS/whatever) */ |
71 void *private_data; | 72 void *private_data; |
73 | |
74 /** Verifier to use in authenticating the peer */ | |
75 PurpleCertificateVerifier *verifier; | |
72 }; | 76 }; |
73 | 77 |
74 /** | 78 /** |
75 * SSL implementation operations structure. | 79 * SSL implementation operations structure. |
76 * | 80 * |
110 /** Obtains the certificate chain provided by the peer | 114 /** Obtains the certificate chain provided by the peer |
111 * | 115 * |
112 * @param gsc Connection context | 116 * @param gsc Connection context |
113 * @return A newly allocated list containing the certificates | 117 * @return A newly allocated list containing the certificates |
114 * the peer provided. | 118 * the peer provided. |
119 * @see PurpleCertificate | |
115 * @todo Decide whether the ordering of certificates in this | 120 * @todo Decide whether the ordering of certificates in this |
116 * list can be guaranteed. | 121 * list can be guaranteed. |
117 */ | 122 */ |
118 GList * (* get_peer_certificates)(PurpleSslConnection * gsc); | 123 GList * (* get_peer_certificates)(PurpleSslConnection * gsc); |
119 | 124 |