summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiloslav Trmač <mitr@redhat.com>2010-11-25 17:57:27 +0100
committerMiloslav Trmač <mitr@redhat.com>2010-11-25 17:57:27 +0100
commit3712df97eb0a1149823c6f0c6aace2ecfdb53f1b (patch)
tree4c9072823d6050ab16437a5abad52ab85bc7b037
parent6e61d5e3245e3ba15e9fa97a588cf8e7e4e84da9 (diff)
downloadncrypto-3712df97eb0a1149823c6f0c6aace2ecfdb53f1b.tar.gz
ncrypto-3712df97eb0a1149823c6f0c6aace2ecfdb53f1b.tar.xz
ncrypto-3712df97eb0a1149823c6f0c6aace2ecfdb53f1b.zip
Beautify
-rw-r--r--lib/ncrypto_nss.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/ncrypto_nss.c b/lib/ncrypto_nss.c
index 2879f49..2c806c4 100644
--- a/lib/ncrypto_nss.c
+++ b/lib/ncrypto_nss.c
@@ -196,8 +196,10 @@ private_key_create (struct ncr_private_key **key, CK_KEY_TYPE type,
{
{ SEC_ASN1_SEQUENCE, 0, NULL, sizeof (struct priv_key_info) },
{ SEC_ASN1_INTEGER, offsetof (struct priv_key_info, version), NULL, 0, },
- { SEC_ASN1_INLINE, offsetof (struct priv_key_info, algorithm),
- SECOID_AlgorithmIDTemplate, 0, },
+ {
+ SEC_ASN1_INLINE, offsetof (struct priv_key_info, algorithm),
+ SECOID_AlgorithmIDTemplate, 0,
+ },
{
SEC_ASN1_OCTET_STRING, offsetof (struct priv_key_info, private_key),
NULL, 0,
@@ -283,9 +285,8 @@ private_key_create (struct ncr_private_key **key, CK_KEY_TYPE type,
PK11_DestroyContext (ctx, PR_TRUE);
goto err_wrapping_key;
}
- ss = PK11_CipherOp (ctx, wrapped_item.data, &wrapped_len, wrapped_item.len,
- der_info.data, der_info.len);
- if (ss != SECSuccess)
+ if (PK11_CipherOp (ctx, wrapped_item.data, &wrapped_len, wrapped_item.len,
+ der_info.data, der_info.len) != SECSuccess)
{
PK11_DestroyContext (ctx, PR_TRUE);
goto err_wrapped_item;