aboutsummaryrefslogtreecommitdiffstats
path: root/smime/lib
diff options
context:
space:
mode:
Diffstat (limited to 'smime/lib')
-rw-r--r--smime/lib/e-cert-db.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/smime/lib/e-cert-db.c b/smime/lib/e-cert-db.c
index ef5cd77ea5..0655f99424 100644
--- a/smime/lib/e-cert-db.c
+++ b/smime/lib/e-cert-db.c
@@ -581,6 +581,7 @@ handle_ca_cert_download(ECertDB *cert_db, GList *certs, GError **error)
{
ECert *certToShow;
SECItem der;
+ char *raw_der = NULL;
CERTCertificate *tmpCert;
/* First thing we have to do is figure out which certificate
@@ -648,11 +649,13 @@ handle_ca_cert_download(ECertDB *cert_db, GList *certs, GError **error)
return FALSE;
}
- if (!e_cert_get_raw_der (certToShow, (char**)&der.data, &der.len)) {
+ if (!e_cert_get_raw_der (certToShow, &raw_der, &der.len)) {
/* XXX gerror */
return FALSE;
}
+ der.data = (unsigned char *)raw_der;
+
{
/*PR_LOG(gPIPNSSLog, PR_LOG_DEBUG, ("Creating temp cert\n"));*/
CERTCertDBHandle *certdb = CERT_GetDefaultCertDB();