cpw.ljfisher.ssl_client_auth: 22997925: Add support to the pkcs12 export for the...

lucas.fisher at gmail.com lucas.fisher at gmail.com
Sat Nov 26 00:45:27 EST 2011


----------------------------------------------------------------------
Revision: 22997925c849b3384f5ad3119fac63286af0886b
Parent:   4e7478f67cca45d21641588dde504645792adaf8
Author:   lucas.fisher at gmail.com
Date:     11/26/11 00:41:12
Branch:   im.pidgin.cpw.ljfisher.ssl_client_auth
URL: http://d.pidgin.im/viewmtn/revision/info/22997925c849b3384f5ad3119fac63286af0886b

Changelog: 

Add support to the pkcs12 export for the new certificate pool retrieve chain APIs.

Changes against parent 4e7478f67cca45d21641588dde504645792adaf8

  patched  pidgin/gtkcertmgr.c

-------------- next part --------------
============================================================
--- pidgin/gtkcertmgr.c	1227ed798d68a5f71c60e446b73eb3a2a1a18b56
+++ pidgin/gtkcertmgr.c	a710a639a60f7c7dee9d7d08d94a321241d2df31
@@ -1005,17 +1005,14 @@ user_mgmt_export_cb(GtkWidget *button, v
 
 	/* Extract the certificate & keys from the pools now to make sure it doesn't
 	   get deleted out from under us */
-	crt = purple_certificate_pool_retrieve(um_dat->user_crts, id);
-
-	if (NULL == crt) {
+	chain = purple_certificate_pool_retrieve_chain(um_dat->user_crts, id, NULL);
+	if (NULL == chain) {
 		purple_debug_error("gtkcertmgr/user_mgmt",
 			"Id %s was not in the user cert pool?!\n", id);
 		g_free(id);
 		return;
 	}
 
-	chain = purple_certificate_pool_retrieve_chain(um_dat->user_crts, crt, NULL);
-
 	purple_debug_info("gtkcertmgr/user_mgmt",
 		"Got chain of %d certs\n", g_list_length(chain));
 
@@ -1024,6 +1021,7 @@ user_mgmt_export_cb(GtkWidget *button, v
 	data->crts = chain;
 	data->id = id;
 
+	crt = (PurpleCertificate*)(g_list_first(chain)->data);
 	name = purple_certificate_get_subject_name(crt);
 	purple_privatekey_pool_retrieve_request(
 			um_dat->user_keys,


More information about the Commits mailing list