aboutsummaryrefslogtreecommitdiffstats
path: root/smime/lib
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-05-09 01:24:42 +0800
committerMatthew Barnes <mbarnes@redhat.com>2011-05-09 01:37:20 +0800
commit8a186c3588d3598857c36e2122fa68d01eba30fd (patch)
tree731078659d4e04af8346c5ca68512d8537b3707a /smime/lib
parent2bf3460cd3eb0853a1d10a6e36f5091898a5533f (diff)
downloadgsoc2013-evolution-8a186c3588d3598857c36e2122fa68d01eba30fd.tar.gz
gsoc2013-evolution-8a186c3588d3598857c36e2122fa68d01eba30fd.tar.zst
gsoc2013-evolution-8a186c3588d3598857c36e2122fa68d01eba30fd.zip
Coding style cleanups.
Diffstat (limited to 'smime/lib')
-rw-r--r--smime/lib/e-asn1-object.c6
-rw-r--r--smime/lib/e-cert-db.c26
-rw-r--r--smime/lib/e-cert.c2
-rw-r--r--smime/lib/e-pkcs12.c4
4 files changed, 19 insertions, 19 deletions
diff --git a/smime/lib/e-asn1-object.c b/smime/lib/e-asn1-object.c
index d858a53579..eb8863f46e 100644
--- a/smime/lib/e-asn1-object.c
+++ b/smime/lib/e-asn1-object.c
@@ -76,7 +76,7 @@ e_asn1_object_dispose (GObject *object)
if (obj->priv->value)
g_free (obj->priv->value);
- g_list_foreach (obj->priv->children, (GFunc)g_object_unref, NULL);
+ g_list_foreach (obj->priv->children, (GFunc) g_object_unref, NULL);
g_list_free (obj->priv->children);
g_free (obj->priv);
@@ -238,7 +238,7 @@ build_from_der (EASN1Object *parent, gchar *data, gchar *end)
return FALSE;
}
data++;
- len = get_der_item_length ((guchar *)data, (guchar *)end, &bytesUsed, &indefinite);
+ len = get_der_item_length ((guchar *) data, (guchar *) end, &bytesUsed, &indefinite);
data += bytesUsed;
if ((len < 0) || ((data+len) > end))
return FALSE;
@@ -336,7 +336,7 @@ e_asn1_object_get_children (EASN1Object *obj)
{
GList *children = g_list_copy (obj->priv->children);
- g_list_foreach (children, (GFunc)g_object_ref, NULL);
+ g_list_foreach (children, (GFunc) g_object_ref, NULL);
return children;
}
diff --git a/smime/lib/e-cert-db.c b/smime/lib/e-cert-db.c
index 4b70b1118d..a5fbbbed23 100644
--- a/smime/lib/e-cert-db.c
+++ b/smime/lib/e-cert-db.c
@@ -321,7 +321,7 @@ collect_certs (gpointer arg, SECItem **certs, gint numcerts)
SECItem *cert;
SECStatus rv;
- collectArgs = (CERTDERCerts *)arg;
+ collectArgs = (CERTDERCerts *) arg;
collectArgs->numcerts = numcerts;
collectArgs->rawCerts = (SECItem *) PORT_ArenaZAlloc (
@@ -349,7 +349,7 @@ e_cert_db_get_certs_from_package (PRArenaPool *arena,
{
/*nsNSSShutDownPreventionLock locker;*/
CERTDERCerts *collectArgs =
- (CERTDERCerts *)PORT_ArenaZAlloc (arena, sizeof (CERTDERCerts));
+ (CERTDERCerts *) PORT_ArenaZAlloc (arena, sizeof (CERTDERCerts));
SECStatus sec_rv;
if (!collectArgs)
@@ -358,7 +358,7 @@ e_cert_db_get_certs_from_package (PRArenaPool *arena,
collectArgs->arena = arena;
sec_rv = CERT_DecodeCertPackage (data,
length, collect_certs,
- (gpointer)collectArgs);
+ (gpointer) collectArgs);
if (sec_rv != SECSuccess)
return NULL;
@@ -644,9 +644,9 @@ e_cert_db_find_cert_by_nickname (ECertDB *certdb,
CERTCertificate *cert = NULL;
/*PR_LOG(gPIPNSSLog, PR_LOG_DEBUG, ("Getting \"%s\"\n", asciiname));*/
- cert = PK11_FindCertFromNickname ((gchar *)nickname, NULL);
+ cert = PK11_FindCertFromNickname ((gchar *) nickname, NULL);
if (!cert) {
- cert = CERT_FindCertByNickname (CERT_GetDefaultCertDB (), (gchar *)nickname);
+ cert = CERT_FindCertByNickname (CERT_GetDefaultCertDB (), (gchar *) nickname);
}
if (cert) {
@@ -679,7 +679,7 @@ e_cert_db_find_cert_by_key (ECertDB *certdb,
}
dummy = NSSBase64_DecodeBuffer (NULL, &keyItem, db_key,
- (PRUint32)PL_strlen (db_key));
+ (PRUint32) PL_strlen (db_key));
/* someday maybe we can speed up the search using the moduleID and slotID*/
moduleID = NS_NSS_GET_LONG (keyItem.data);
@@ -880,7 +880,7 @@ handle_ca_cert_download (ECertDB *cert_db, GList *certs, GError **error)
return FALSE;
}
- der.data = (guchar *)raw_der;
+ der.data = (guchar *) raw_der;
{
/*PR_LOG(gPIPNSSLog, PR_LOG_DEBUG, ("Creating temp cert\n"));*/
@@ -1074,10 +1074,10 @@ e_cert_db_import_certs (ECertDB *certdb,
SECItem *currItem = &certCollection->rawCerts[i];
ECert *cert;
- cert = e_cert_new_from_der ((gchar *)currItem->data, currItem->len);
+ cert = e_cert_new_from_der ((gchar *) currItem->data, currItem->len);
if (!cert) {
set_nss_error (error);
- g_list_foreach (certs, (GFunc)g_object_unref, NULL);
+ g_list_foreach (certs, (GFunc) g_object_unref, NULL);
g_list_free (certs);
PORT_FreeArena (arena, PR_FALSE);
return FALSE;
@@ -1109,7 +1109,7 @@ e_cert_db_import_certs (ECertDB *certdb,
rv = FALSE;
}
- g_list_foreach (certs, (GFunc)g_object_unref, NULL);
+ g_list_foreach (certs, (GFunc) g_object_unref, NULL);
g_list_free (certs);
PORT_FreeArena (arena, PR_FALSE);
return rv;
@@ -1138,7 +1138,7 @@ e_cert_db_import_email_cert (ECertDB *certdb,
}
cert = CERT_NewTempCertificate (CERT_GetDefaultCertDB (), certCollection->rawCerts,
- (gchar *)NULL, PR_FALSE, PR_TRUE);
+ (gchar *) NULL, PR_FALSE, PR_TRUE);
if (!cert) {
set_nss_error (error);
rv = FALSE;
@@ -1172,7 +1172,7 @@ e_cert_db_import_email_cert (ECertDB *certdb,
SECItem *currItem = &certCollection->rawCerts[i];
ECert *cert;
- cert = e_cert_new_from_der ((gchar *)currItem->data, currItem->len);
+ cert = e_cert_new_from_der ((gchar *) currItem->data, currItem->len);
if (cert)
*imported_certs = g_slist_prepend (*imported_certs, cert);
}
@@ -1342,7 +1342,7 @@ e_cert_db_import_user_cert (ECertDB *certdb,
}
cert = CERT_NewTempCertificate (CERT_GetDefaultCertDB (), collectArgs->rawCerts,
- (gchar *)NULL, PR_FALSE, PR_TRUE);
+ (gchar *) NULL, PR_FALSE, PR_TRUE);
if (!cert) {
set_nss_error (error);
goto loser;
diff --git a/smime/lib/e-cert.c b/smime/lib/e-cert.c
index a7605a42ce..e4e32d4948 100644
--- a/smime/lib/e-cert.c
+++ b/smime/lib/e-cert.c
@@ -1032,7 +1032,7 @@ process_name (CERTName *name, gchar **value)
return FALSE;
}
- avavalue = g_string_new_len ((gchar *)decodeItem->data, decodeItem->len);
+ avavalue = g_string_new_len ((gchar *) decodeItem->data, decodeItem->len);
SECITEM_FreeItem (decodeItem, PR_TRUE);
diff --git a/smime/lib/e-pkcs12.c b/smime/lib/e-pkcs12.c
index 6b7b7ae63c..4cc4fb90d1 100644
--- a/smime/lib/e-pkcs12.c
+++ b/smime/lib/e-pkcs12.c
@@ -402,8 +402,8 @@ nickname_collision (SECItem *oldNick, PRBool *cancel, gpointer wincx)
new_nick = PR_Malloc (sizeof (SECItem));
new_nick->type = siAsciiString;
- new_nick->data = (guchar *)nickname;
- new_nick->len = strlen ((gchar *)new_nick->data);
+ new_nick->data = (guchar *) nickname;
+ new_nick->len = strlen ((gchar *) new_nick->data);
return new_nick;
}