finch/gntcertmgr.c

changeset 21225
32d8e16cb7a9
parent 21174
8ba833993a11
child 21226
a60b30c9eeb5
child 21233
e75de8db4f2b
equal deleted inserted replaced
21223:6517e0eda8bc 21225:32d8e16cb7a9
88 _("Type the host name this certificate is for."), 88 _("Type the host name this certificate is for."),
89 default_hostname, FALSE, FALSE, NULL, 89 default_hostname, FALSE, FALSE, NULL,
90 _("OK"), G_CALLBACK(tls_peers_mgmt_import_ok2_cb), 90 _("OK"), G_CALLBACK(tls_peers_mgmt_import_ok2_cb),
91 _("Cancel"), G_CALLBACK(tls_peers_mgmt_import_cancel2_cb), 91 _("Cancel"), G_CALLBACK(tls_peers_mgmt_import_cancel2_cb),
92 NULL, NULL, NULL, 92 NULL, NULL, NULL,
93 "certmgr", crt); 93 PURPLE_UI_REQUEST_HINT_CERTMGR, crt);
94 g_free(default_hostname); 94 g_free(default_hostname);
95 } else { 95 } else {
96 gchar * secondary; 96 gchar * secondary;
97 secondary = g_strdup_printf(_("File %s could not be imported.\nMake sure that the file is readable and in PEM format.\n"), filename); 97 secondary = g_strdup_printf(_("File %s could not be imported.\nMake sure that the file is readable and in PEM format.\n"), filename);
98 purple_notify_error(NULL, 98 purple_notify_error(NULL,
110 _("Select a PEM certificate"), 110 _("Select a PEM certificate"),
111 "certificate.pem", 111 "certificate.pem",
112 FALSE, 112 FALSE,
113 G_CALLBACK(tls_peers_mgmt_import_ok_cb), 113 G_CALLBACK(tls_peers_mgmt_import_ok_cb),
114 NULL, 114 NULL,
115 NULL, NULL, NULL, "certmgr", NULL ); 115 NULL, NULL, NULL, PURPLE_UI_REQUEST_HINT_CERTMGR, NULL );
116 } 116 }
117 117
118 /* Save certs in some file */ 118 /* Save certs in some file */
119 static void 119 static void
120 tls_peers_mgmt_export_ok_cb(gpointer data, const char *filename) 120 tls_peers_mgmt_export_ok_cb(gpointer data, const char *filename)
159 _("PEM X.509 Certificate Export"), 159 _("PEM X.509 Certificate Export"),
160 "certificate.pem", TRUE, 160 "certificate.pem", TRUE,
161 G_CALLBACK(tls_peers_mgmt_export_ok_cb), 161 G_CALLBACK(tls_peers_mgmt_export_ok_cb),
162 G_CALLBACK(purple_certificate_destroy), 162 G_CALLBACK(purple_certificate_destroy),
163 NULL, NULL, NULL, 163 NULL, NULL, NULL,
164 "certmgr", crt); 164 PURPLE_UI_REQUEST_HINT_CERTMGR, crt);
165 } 165 }
166 166
167 /* Show information about a cert */ 167 /* Show information about a cert */
168 static void 168 static void
169 info_cert_cb(GntWidget *button, gpointer null) 169 info_cert_cb(GntWidget *button, gpointer null)
234 234
235 purple_request_close_with_handle((void *)key); 235 purple_request_close_with_handle((void *)key);
236 purple_request_yes_no_with_hint((void *)key, _("Confirm certificate delete"), 236 purple_request_yes_no_with_hint((void *)key, _("Confirm certificate delete"),
237 primary, NULL, 237 primary, NULL,
238 2, 238 2,
239 NULL, NULL, NULL, "certmgr", 239 NULL, NULL, NULL, PURPLE_UI_REQUEST_HINT_CERTMGR,
240 g_strdup(key), 240 g_strdup(key),
241 tls_peers_mgmt_delete_confirm_cb, 241 tls_peers_mgmt_delete_confirm_cb,
242 g_free); 242 g_free);
243 243
244 g_free(primary); 244 g_free(primary);

mercurial