changeset 18944:3a71a46d171c

- Add verifier field to SslConnection
author William Ehlhardt <williamehlhardt@gmail.com>
date Sat, 23 Jun 2007 19:24:16 +0000
parents c519ff185569
children fa42d8fa7873
files libpurple/sslconn.h
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/sslconn.h	Sat Jun 23 18:42:31 2007 +0000
+++ b/libpurple/sslconn.h	Sat Jun 23 19:24:16 2007 +0000
@@ -25,6 +25,7 @@
 #ifndef _PURPLE_SSLCONN_H_
 #define _PURPLE_SSLCONN_H_
 
+#include "certificate.h"
 #include "proxy.h"
 
 #define PURPLE_SSL_DEFAULT_PORT 443
@@ -69,6 +70,9 @@
 
 	/** Internal connection data managed by the SSL backend (GnuTLS/LibNSS/whatever) */
 	void *private_data;
+
+	/** Verifier to use in authenticating the peer */
+	PurpleCertificateVerifier *verifier;
 };
 
 /**
@@ -112,6 +116,7 @@
 	 * @param gsc   Connection context
 	 * @return      A newly allocated list containing the certificates
 	 *              the peer provided.
+	 * @see PurpleCertificate
 	 * @todo        Decide whether the ordering of certificates in this
 	 *              list can be guaranteed.
 	 */