Mercurial > pidgin.yaz
comparison libpurple/certificate.c @ 19331:920984752314
- Fix the interpretation of the "accept cert? yes/no" choice id given by
purple_request_action to its callbacks
author | William Ehlhardt <williamehlhardt@gmail.com> |
---|---|
date | Sat, 18 Aug 2007 07:42:24 +0000 |
parents | b65a23799dc2 |
children | 6e0521bb0853 |
comparison
equal
deleted
inserted
replaced
19330:b65a23799dc2 | 19331:920984752314 |
---|---|
1100 | 1100 |
1101 x509_tls_cached_ua_ctx_free(c); | 1101 x509_tls_cached_ua_ctx_free(c); |
1102 | 1102 |
1103 tls_peers = purple_certificate_find_pool("x509","tls_peers"); | 1103 tls_peers = purple_certificate_find_pool("x509","tls_peers"); |
1104 | 1104 |
1105 if (1 == id) { | 1105 if (2 == id) { |
1106 gchar *cache_id = vrq->subject_name; | 1106 gchar *cache_id = vrq->subject_name; |
1107 purple_debug_info("certificate/x509/tls_cached", | 1107 purple_debug_info("certificate/x509/tls_cached", |
1108 "User ACCEPTED cert\nCaching first in chain for future use as %s...\n", | 1108 "User ACCEPTED cert\nCaching first in chain for future use as %s...\n", |
1109 cache_id); | 1109 cache_id); |
1110 | 1110 |
1140 purple_request_action( | 1140 purple_request_action( |
1141 vrq->cb_data, /* TODO: Find what the handle ought to be */ | 1141 vrq->cb_data, /* TODO: Find what the handle ought to be */ |
1142 _("SSL Certificate Verification"), | 1142 _("SSL Certificate Verification"), |
1143 primary, | 1143 primary, |
1144 reason, | 1144 reason, |
1145 1, /* Accept by default */ | 1145 2, /* Accept by default */ |
1146 NULL, /* No account */ | 1146 NULL, /* No account */ |
1147 NULL, /* No other user */ | 1147 NULL, /* No other user */ |
1148 NULL, /* No associated conversation */ | 1148 NULL, /* No associated conversation */ |
1149 x509_tls_cached_ua_ctx_new(vrq, reason), | 1149 x509_tls_cached_ua_ctx_new(vrq, reason), |
1150 3, /* Number of actions */ | 1150 3, /* Number of actions */ |