comparison libpurple/certificate.c @ 20598:285bb637a2b7

Updated hinting to be less invasive
author Gabriel Schulhof <nix@go-nix.ca>
date Sat, 22 Sep 2007 16:19:34 +0000
parents 91964384472d
children fdefa5eb46e2
comparison
equal deleted inserted replaced
20597:591267f6f1d5 20598:285bb637a2b7
548 /* Make messages */ 548 /* Make messages */
549 primary = g_strdup_printf(_("%s has presented the following certificate for just-this-once use:"), vrq->subject_name); 549 primary = g_strdup_printf(_("%s has presented the following certificate for just-this-once use:"), vrq->subject_name);
550 secondary = g_strdup_printf(_("Common name: %s %s\nFingerprint (SHA1): %s"), cn, cn_match, sha_asc); 550 secondary = g_strdup_printf(_("Common name: %s %s\nFingerprint (SHA1): %s"), cn, cn_match, sha_asc);
551 551
552 /* Make a semi-pretty display */ 552 /* Make a semi-pretty display */
553 purple_request_accept_cancel( 553 purple_request_accept_cancel_with_hint(
554 vrq->cb_data, /* TODO: Find what the handle ought to be */ 554 vrq->cb_data, /* TODO: Find what the handle ought to be */
555 _("Single-use Certificate Verification"), 555 _("Single-use Certificate Verification"),
556 primary, 556 primary,
557 secondary, 557 secondary,
558 1, /* Accept by default */ 558 1, /* Accept by default */
1171 /* Make messages */ 1171 /* Make messages */
1172 primary = g_strdup_printf(_("Accept certificate for %s?"), 1172 primary = g_strdup_printf(_("Accept certificate for %s?"),
1173 vrq->subject_name); 1173 vrq->subject_name);
1174 1174
1175 /* Make a semi-pretty display */ 1175 /* Make a semi-pretty display */
1176 purple_request_action( 1176 purple_request_action_with_hint(
1177 vrq->cb_data, /* TODO: Find what the handle ought to be */ 1177 vrq->cb_data, /* TODO: Find what the handle ought to be */
1178 _("SSL Certificate Verification"), 1178 _("SSL Certificate Verification"),
1179 primary, 1179 primary,
1180 reason, 1180 reason,
1181 2, /* Accept by default */ 1181 2, /* Accept by default */