network-manager-applet r950 - in trunk: . src/wireless-security



Author: dcbw
Date: Fri Oct 17 11:07:12 2008
New Revision: 950
URL: http://svn.gnome.org/viewvc/network-manager-applet?rev=950&view=rev

Log:
2008-10-17  Dan Williams  <dcbw redhat com>

	* src/wireless-security/eap-method.c
		- (default_filter, eap_method_default_file_chooser_filter_new): accept
			.cer and .crt file extensions too



Modified:
   trunk/ChangeLog
   trunk/src/wireless-security/eap-method.c

Modified: trunk/src/wireless-security/eap-method.c
==============================================================================
--- trunk/src/wireless-security/eap-method.c	(original)
+++ trunk/src/wireless-security/eap-method.c	Fri Oct 17 11:07:12 2008
@@ -241,7 +241,7 @@
 	ext = g_ascii_strdown (p, -1);
 	if (!ext)
 		return FALSE;
-	if (strcmp (ext, ".der") && strcmp (ext, ".pem")) {
+	if (strcmp (ext, ".der") && strcmp (ext, ".pem") && strcmp (ext, ".crt") && strcmp (ext, ".cer")) {
 		g_free (ext);
 		return FALSE;
 	}
@@ -290,7 +290,7 @@
 
 	filter = gtk_file_filter_new ();
 	gtk_file_filter_add_custom (filter, GTK_FILE_FILTER_FILENAME, default_filter, NULL, NULL);
-	gtk_file_filter_set_name (filter, _("DER or PEM certificates (*.der, *.pem)"));
+	gtk_file_filter_set_name (filter, _("DER or PEM certificates (*.der, *.pem, *.crt, *.cer)"));
 	return filter;
 }
 



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