comparison pidgin/gtkcertmgr.c @ 28272:968ec034a958

merged with im.pidgin.pidgin
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Sun, 16 Aug 2009 23:02:17 +0900
parents 0db08d748475
children f1437342cc0e
comparison
equal deleted inserted replaced
28262:90d108cda54e 28272:968ec034a958
142 142
143 static void 143 static void
144 tls_peers_mgmt_import_ok2_cb(gpointer data, const char *result) 144 tls_peers_mgmt_import_ok2_cb(gpointer data, const char *result)
145 { 145 {
146 PurpleCertificate *crt = (PurpleCertificate *) data; 146 PurpleCertificate *crt = (PurpleCertificate *) data;
147 const char *id = result;
148 147
149 /* TODO: Perhaps prompt if you're overwriting a cert? */ 148 /* TODO: Perhaps prompt if you're overwriting a cert? */
150 149
151 /* Drop the certificate into the pool */ 150 /* Drop the certificate into the pool */
152 purple_certificate_pool_store(tpm_dat->tls_peers, id, crt); 151 if (result && *result)
152 purple_certificate_pool_store(tpm_dat->tls_peers, result, crt);
153 153
154 /* And this certificate is not needed any more */ 154 /* And this certificate is not needed any more */
155 purple_certificate_destroy(crt); 155 purple_certificate_destroy(crt);
156 } 156 }
157 157