comparison libpurple/certificate.c @ 21086:8c9aad9479c0

Removed request stuff - now on pidgin-request-ui-hint
author Gabriel Schulhof <nix@go-nix.ca>
date Wed, 10 Oct 2007 22:57:51 +0000
parents fdefa5eb46e2
children cab348e39751
comparison
equal deleted inserted replaced
21077:488796f5ba33 21086:8c9aad9479c0
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);