From 9ea47f5b396bb1e767d4a231bc7166efd3dffd3e Mon Sep 17 00:00:00 2001 From: Miloslav Trmač Date: Sat, 24 Jul 2010 01:23:49 +0200 Subject: Use algo_properties_st in ncr_algorithm_to_key_type An intermediary patch, the function will be removed in next commit. --- ncr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ncr.c') diff --git a/ncr.c b/ncr.c index 5740580..f68a1d8 100644 --- a/ncr.c +++ b/ncr.c @@ -177,9 +177,9 @@ ncr_ioctl(struct ncr_lists* lst, struct file *filp, /* Returns NCR_KEY_TYPE_SECRET if a secret key algorithm or MAC is given, * and NCR_KEY_TYPE_PUBLIC if a public key algorithm is given. */ -ncr_key_type_t ncr_algorithm_to_key_type(ncr_algorithm_t algo) +ncr_key_type_t ncr_algorithm_to_key_type(const struct algo_properties_st *algo) { - switch(algo) { + switch(algo->algo) { case NCR_ALG_3DES_CBC: case NCR_ALG_AES_CBC: case NCR_ALG_CAMELLIA_CBC: -- cgit