comparison libpurple/certificate.c @ 21099:51cf02dbdb0e

disapproval of revision 'c484d979c4fda4433a9633ff8b69bd8a395c9479'
author Richard Laager <rlaager@wiktel.com>
date Fri, 16 Nov 2007 23:30:03 +0000
parents cab348e39751
children fcb848b2d669
comparison
equal deleted inserted replaced
21095:cab348e39751 21099:51cf02dbdb0e
561 /* Make messages */ 561 /* Make messages */
562 primary = g_strdup_printf(_("%s has presented the following certificate for just-this-once use:"), vrq->subject_name); 562 primary = g_strdup_printf(_("%s has presented the following certificate for just-this-once use:"), vrq->subject_name);
563 secondary = g_strdup_printf(_("Common name: %s %s\nFingerprint (SHA1): %s"), cn, cn_match, sha_asc); 563 secondary = g_strdup_printf(_("Common name: %s %s\nFingerprint (SHA1): %s"), cn, cn_match, sha_asc);
564 564
565 /* Make a semi-pretty display */ 565 /* Make a semi-pretty display */
566 purple_request_accept_cancel_with_hint( 566 purple_request_accept_cancel(
567 vrq->cb_data, /* TODO: Find what the handle ought to be */ 567 vrq->cb_data, /* TODO: Find what the handle ought to be */
568 _("Single-use Certificate Verification"), 568 _("Single-use Certificate Verification"),
569 primary, 569 primary,
570 secondary, 570 secondary,
571 1, /* Accept by default */ 571 1, /* Accept by default */
572 NULL, /* No account */ 572 NULL, /* No account */
573 NULL, /* No other user */ 573 NULL, /* No other user */
574 NULL, /* No associated conversation */ 574 NULL, /* No associated conversation */
575 "blist",
576 vrq, 575 vrq,
577 x509_singleuse_verify_cb, 576 x509_singleuse_verify_cb,
578 x509_singleuse_verify_cb ); 577 x509_singleuse_verify_cb );
579 578
580 /* Cleanup */ 579 /* Cleanup */
1184 /* Make messages */ 1183 /* Make messages */
1185 primary = g_strdup_printf(_("Accept certificate for %s?"), 1184 primary = g_strdup_printf(_("Accept certificate for %s?"),
1186 vrq->subject_name); 1185 vrq->subject_name);
1187 1186
1188 /* Make a semi-pretty display */ 1187 /* Make a semi-pretty display */
1189 purple_request_action_with_hint( 1188 purple_request_action(
1190 vrq->cb_data, /* TODO: Find what the handle ought to be */ 1189 vrq->cb_data, /* TODO: Find what the handle ought to be */
1191 _("SSL Certificate Verification"), 1190 _("SSL Certificate Verification"),
1192 primary, 1191 primary,
1193 reason, 1192 reason,
1194 2, /* Accept by default */ 1193 2, /* Accept by default */
1195 NULL, /* No account */ 1194 NULL, /* No account */
1196 NULL, /* No other user */ 1195 NULL, /* No other user */
1197 NULL, /* No associated conversation */ 1196 NULL, /* No associated conversation */
1198 "blist",
1199 x509_tls_cached_ua_ctx_new(vrq, reason), 1197 x509_tls_cached_ua_ctx_new(vrq, reason),
1200 3, /* Number of actions */ 1198 3, /* Number of actions */
1201 _("Accept"), x509_tls_cached_user_auth_accept_cb, 1199 _("Accept"), x509_tls_cached_user_auth_accept_cb,
1202 _("Reject"), x509_tls_cached_user_auth_reject_cb, 1200 _("Reject"), x509_tls_cached_user_auth_reject_cb,
1203 _("_View Certificate..."), x509_tls_cached_show_cert); 1201 _("_View Certificate..."), x509_tls_cached_show_cert);