summaryrefslogtreecommitdiff
path: root/lib/pkcs11_secret.c
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2010-12-06 16:47:25 +0100
committerSimon Josefsson <simon@josefsson.org>2010-12-06 16:47:25 +0100
commitc236da00885163f387a0bc62897de7126265d59a (patch)
tree0f7530d1685b774581fc1aa6f189e14ceec0d145 /lib/pkcs11_secret.c
parent6a6d50ece46ca63ea0fa2c6f87c7563c4025c561 (diff)
downloadgnutls-c236da00885163f387a0bc62897de7126265d59a.tar.gz
Indent code.
Diffstat (limited to 'lib/pkcs11_secret.c')
-rw-r--r--lib/pkcs11_secret.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/pkcs11_secret.c b/lib/pkcs11_secret.c
index 88fe05f51b..eaa09c60c8 100644
--- a/lib/pkcs11_secret.c
+++ b/lib/pkcs11_secret.c
@@ -44,11 +44,11 @@
* Returns: On success, %GNUTLS_E_SUCCESS is returned, otherwise a
* negative error value.
**/
-int gnutls_pkcs11_copy_secret_key (const char *token_url, gnutls_datum_t* key,
- const char *label,
- unsigned int key_usage,
- unsigned int flags
- /* GNUTLS_PKCS11_OBJ_FLAG_* */ )
+int
+gnutls_pkcs11_copy_secret_key (const char *token_url, gnutls_datum_t * key,
+ const char *label,
+ unsigned int key_usage, unsigned int flags
+ /* GNUTLS_PKCS11_OBJ_FLAG_* */ )
{
int ret;
pakchois_session_t *pks;
@@ -70,10 +70,10 @@ int gnutls_pkcs11_copy_secret_key (const char *token_url, gnutls_datum_t* key,
}
/* generate a unique ID */
- ret = _gnutls_rnd (GNUTLS_RND_NONCE, id, sizeof(id));
+ ret = _gnutls_rnd (GNUTLS_RND_NONCE, id, sizeof (id));
if (ret < 0)
{
- gnutls_assert();
+ gnutls_assert ();
return ret;
}
@@ -105,7 +105,7 @@ int gnutls_pkcs11_copy_secret_key (const char *token_url, gnutls_datum_t* key,
a[4].value_len = sizeof (keytype);
a[5].type = CKA_ID;
a[5].value = id;
- a[5].value_len = sizeof(id);
+ a[5].value_len = sizeof (id);
a_val = 6;