[evolution/account-mgmt: 8/50] Adapt libessmime to the new e-passwords API.



commit 33bdeba8a7c8191a9b063b1d787a9082ecb133d8
Author: Matthew Barnes <mbarnes redhat com>
Date:   Tue Dec 7 15:44:49 2010 -0600

    Adapt libessmime to the new e-passwords API.

 smime/gui/component.c |   16 ++++++++--------
 smime/lib/e-pkcs12.c  |    7 ++++---
 2 files changed, 12 insertions(+), 11 deletions(-)
---
diff --git a/smime/gui/component.c b/smime/gui/component.c
index 091ebee..28cfd19 100644
--- a/smime/gui/component.c
+++ b/smime/gui/component.c
@@ -50,10 +50,10 @@ smime_pk11_passwd (ECertDB *db,
 	prompt = g_strdup_printf (_("Enter the password for '%s'"), slot_name);
 	g_free (slot_name);
 
-	*passwd = e_passwords_ask_password (_("Enter password"), NULL, "",
-					    prompt,
-					    E_PASSWORDS_REMEMBER_NEVER | E_PASSWORDS_SECRET, NULL,
-					    NULL);
+	*passwd = e_passwords_ask_password (
+		NULL, _("Enter password"), prompt,
+		E_PASSWORDS_REMEMBER_NEVER | E_PASSWORDS_SECRET,
+		NULL, NULL);
 
 	g_free (prompt);
 
@@ -75,10 +75,10 @@ smime_pk11_change_passwd (ECertDB *db,
 		/* we're setting the password initially */
 		prompt = _("Enter new password for certificate database");
 
-		*passwd = e_passwords_ask_password (_("Enter new password"), NULL, "",
-						    prompt,
-						    E_PASSWORDS_REMEMBER_NEVER | E_PASSWORDS_SECRET, NULL,
-						    NULL);
+		*passwd = e_passwords_ask_password (
+			NULL, _("Enter new password"), prompt,
+			E_PASSWORDS_REMEMBER_NEVER | E_PASSWORDS_SECRET,
+			NULL, NULL);
 	}
 	else {
 		/* we're changing the password */
diff --git a/smime/lib/e-pkcs12.c b/smime/lib/e-pkcs12.c
index 959924e..550872c 100644
--- a/smime/lib/e-pkcs12.c
+++ b/smime/lib/e-pkcs12.c
@@ -205,9 +205,10 @@ prompt_for_password (gchar *title,
 {
 	gchar *passwd;
 
-	passwd = e_passwords_ask_password (title, NULL, "", prompt,
-					   E_PASSWORDS_REMEMBER_NEVER | E_PASSWORDS_SECRET, NULL,
-					   NULL);
+	passwd = e_passwords_ask_password (
+		NULL, title, prompt,
+		E_PASSWORDS_REMEMBER_NEVER | E_PASSWORDS_SECRET,
+		NULL, NULL);
 
 	if (passwd) {
 		gsize len = strlen (passwd);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]