changeset 18927:9abc911c65aa

- GnuTLS plugin registers an x509 certscheme now
author William Ehlhardt <williamehlhardt@gmail.com>
date Thu, 21 Jun 2007 19:13:28 +0000
parents 8c4d52bc0319
children 299022c9b32d
files libpurple/plugins/ssl/ssl-gnutls.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/plugins/ssl/ssl-gnutls.c	Thu Jun 21 00:28:31 2007 +0000
+++ b/libpurple/plugins/ssl/ssl-gnutls.c	Thu Jun 21 19:13:28 2007 +0000
@@ -552,6 +552,10 @@
 plugin_load(PurplePlugin *plugin)
 {
 #ifdef HAVE_GNUTLS
+	/* Register that we're providing an X.509 CertScheme */
+	/* @TODO : error checking */
+	purple_certificate_register_scheme( &x509_gnutls );
+	
 	if(!purple_ssl_get_ops()) {
 		purple_ssl_set_ops(&ssl_ops);
 	}
@@ -572,6 +576,8 @@
 	if(purple_ssl_get_ops() == &ssl_ops) {
 		purple_ssl_set_ops(NULL);
 	}
+
+	purple_certificate_unregister_scheme( &x509_gnutls );
 #endif
 
 	return TRUE;