aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2018-05-20 15:38:19 -0400
committerRob Austein <sra@hactrn.net>2018-05-20 15:39:38 -0400
commit3ec74465ddd47a74bdaa7359831e25f868f09680 (patch)
treefaf3ec52804148e53a58027f1b418ec9e5f64db2
parenta5b4842f95ea501dacb1ed828c924f372d3f1262 (diff)
Silence compiler warning in revised hal_ks_fetch().
-rw-r--r--ks.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ks.c b/ks.c
index f4015e0..2b3c1c1 100644
--- a/ks.c
+++ b/ks.c
@@ -616,6 +616,7 @@ hal_error_t hal_ks_fetch(hal_ks_t *ks,
hal_error_t err = HAL_OK;
hal_ks_block_t *block;
+ size_t k_der_len = 0;
unsigned b;
hal_ks_lock();
@@ -633,8 +634,8 @@ hal_error_t hal_ks_fetch(hal_ks_t *ks,
hal_ks_cache_mark_used(ks, block, b);
hal_ks_key_block_t *k = &block->key;
- const size_t k_der_len = k->der_len;
+ k_der_len = k->der_len;
slot->type = k->type;
slot->curve = k->curve;
slot->flags = k->flags;