diff options
author | Rob Austein <sra@hactrn.net> | 2018-05-20 15:38:19 -0400 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2018-05-20 15:39:38 -0400 |
commit | 3ec74465ddd47a74bdaa7359831e25f868f09680 (patch) | |
tree | faf3ec52804148e53a58027f1b418ec9e5f64db2 | |
parent | a5b4842f95ea501dacb1ed828c924f372d3f1262 (diff) |
Silence compiler warning in revised hal_ks_fetch().
-rw-r--r-- | ks.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; |