aboutsummaryrefslogtreecommitdiff
path: root/ks.c
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2016-05-14 12:01:37 -0400
committerRob Austein <sra@hactrn.net>2016-05-14 12:01:37 -0400
commitb1225c11f89dad1a749b6572e50e5e5fce5234e8 (patch)
tree9a48533db312fcb73d1c922851a6b51c3299b8e7 /ks.c
parentc861f7d2f3c5f69c02a633c51113518b70eedc27 (diff)
Trailing whitespace cleanup.
Diffstat (limited to 'ks.c')
-rw-r--r--ks.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/ks.c b/ks.c
index d1ce089..33d3e47 100644
--- a/ks.c
+++ b/ks.c
@@ -89,7 +89,7 @@ hal_error_t hal_ks_store(const hal_key_type_t type,
}
if (*hint < 0)
- return HAL_ERROR_NO_KEY_SLOTS_AVAILABLE;
+ return HAL_ERROR_NO_KEY_SLOTS_AVAILABLE;
hal_ks_key_t k;
memset(&k, 0, sizeof(k));
@@ -105,7 +105,7 @@ hal_error_t hal_ks_store(const hal_key_type_t type,
if (err != HAL_OK)
return err;
-
+
assert(name_len <= sizeof(k.name));
memcpy(k.name, name, name_len);
k.name_len = name_len;
@@ -152,7 +152,7 @@ hal_error_t hal_ks_exists(const hal_key_type_t type,
{
if (name == NULL || name_len == 0 || !acceptable_key_type(type))
return HAL_ERROR_BAD_ARGUMENTS;
-
+
const hal_ks_keydb_t * const db = hal_ks_get_keydb();
if (db == NULL)
@@ -173,10 +173,10 @@ hal_error_t hal_ks_fetch(const hal_key_type_t type,
{
if (name == NULL || name_len == 0 || !acceptable_key_type(type))
return HAL_ERROR_BAD_ARGUMENTS;
-
+
const hal_ks_keydb_t * const db = hal_ks_get_keydb();
int hint_ = -1;
-
+
if (db == NULL)
return HAL_ERROR_KEYSTORE_ACCESS;
@@ -225,10 +225,10 @@ hal_error_t hal_ks_delete(const hal_key_type_t type,
{
if (name == NULL || name_len == 0 || !acceptable_key_type(type))
return HAL_ERROR_BAD_ARGUMENTS;
-
+
const hal_ks_keydb_t * const db = hal_ks_get_keydb();
int hint_ = -1;
-
+
if (db == NULL)
return HAL_ERROR_KEYSTORE_ACCESS;
@@ -249,7 +249,7 @@ hal_error_t hal_ks_list(hal_pkey_info_t *result,
return HAL_ERROR_BAD_ARGUMENTS;
const hal_ks_keydb_t * const db = hal_ks_get_keydb();
-
+
if (db == NULL)
return HAL_ERROR_KEYSTORE_ACCESS;