aboutsummaryrefslogtreecommitdiff
path: root/ks_volatile.c
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2017-05-22 23:22:09 -0400
committerRob Austein <sra@hactrn.net>2017-05-22 23:22:09 -0400
commit2b4dc660d9d10eed407851319bfe63d5f9c3acd1 (patch)
tree8890c91f6cae57a95f8616ffc5e9e979813faa58 /ks_volatile.c
parent6c3ec32a384e3018f44dda42ff8bcaf9c94f15c4 (diff)
First pass on experimental one-size-fits-nobody keystore.
Support for variable-length keystore objects significantly complicates the keystore implementation, including serious some serious code bloat and a complex recovery algorithm to deal with crashes or loss of power at exactly the wrong time. Perhaps we don't really need this? So this is an experiment to see whether we can replace variable-length keystore objects with fixed-length, perhaps with a compile time option to let us make the fixed object length be 8192 bytes instead of 4096 bytes when needed to hold things like large RSA keys. First pass on this is just throwing away nearly 1,000 lines of excessively complex code. The result probably won't even compile yet, but it's already significantly easier to read.
Diffstat (limited to 'ks_volatile.c')
-rw-r--r--ks_volatile.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/ks_volatile.c b/ks_volatile.c
index d565c60..f8bed1a 100644
--- a/ks_volatile.c
+++ b/ks_volatile.c
@@ -423,9 +423,6 @@ static hal_error_t ks_match(hal_ks_t *ks,
unsigned b = ksv->db->ksi.index[i];
- if (ksv->db->ksi.names[b].chunk > 0)
- continue;
-
if (type != HAL_KEY_TYPE_NONE && type != ksv->db->keys[b].type)
continue;