changeset 32559:32642aa8dbe5

Get rid of purple_certificate_display_x509, now that there's a request API for it.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Sun, 26 Feb 2012 05:34:08 +0000
parents 192691546590
children c1daad7121f8
files ChangeLog.API libpurple/certificate.c libpurple/certificate.h
diffstat 3 files changed, 2 insertions(+), 28 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog.API	Sun Feb 26 05:33:00 2012 +0000
+++ b/ChangeLog.API	Sun Feb 26 05:34:08 2012 +0000
@@ -164,6 +164,8 @@
 		* purple_buddy_icons_set_custom_icon
 		* purple_certificate_check_signature_chain_with_failing. Use
 		  purple_certificate_check_signature_chain, instead
+		* purple_certificate_display_x509. Use purple_request_certificate,
+		  instead
 		* purple_connection_error_reason
 		* purple_connection_new
 		* purple_connection_new_unregister
--- a/libpurple/certificate.c	Sun Feb 26 05:33:00 2012 +0000
+++ b/libpurple/certificate.c	Sun Feb 26 05:34:08 2012 +0000
@@ -2092,25 +2092,6 @@
 /* Scheme-specific functions                                                */
 /****************************************************************************/
 
-void
-purple_certificate_display_x509(PurpleCertificate *crt)
-{
-	gchar *secondary;
-
-	/* Make messages */
-	secondary = purple_certificate_get_display_string(crt);
-
-	/* Make a semi-pretty display */
-	purple_notify_info(
-		NULL,         /* TODO: Find what the handle ought to be */
-		_("Certificate Information"),
-		"",
-		secondary);
-
-	/* Cleanup */
-	g_free(secondary);
-}
-
 void purple_certificate_add_ca_search_path(const char *path)
 {
 	if (g_list_find_custom(x509_ca_paths, path, (GCompareFunc)strcmp))
--- a/libpurple/certificate.h	Sun Feb 26 05:33:00 2012 +0000
+++ b/libpurple/certificate.h	Sun Feb 26 05:34:08 2012 +0000
@@ -834,15 +834,6 @@
 
 
 /**
- * Displays a window showing X.509 certificate information
- *
- * @param crt    Certificate under an "x509" Scheme
- * @todo Will break on CA certs, as they have no Common Name
- */
-void
-purple_certificate_display_x509(PurpleCertificate *crt);
-
-/**
  * Add a search path for certificates.
  *
  * @param path   Path to search for certificates.