From 8c144933491148943e57479df46b095acc0019b5 Mon Sep 17 00:00:00 2001 From: Miloslav Trmač Date: Sat, 24 Jul 2010 00:49:21 +0200 Subject: Make algo_properties_st public inside the module --- ncr-sessions.c | 12 +----------- ncr_int.h | 12 ++++++++++++ 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/ncr-sessions.c b/ncr-sessions.c index 6856310..2f84488 100644 --- a/ncr-sessions.c +++ b/ncr-sessions.c @@ -112,17 +112,7 @@ struct session_item_st* ncr_session_new(struct list_sem_st* lst) return sess; } -static const struct algo_properties_st { - ncr_algorithm_t algo; - const char* kstr; - unsigned needs_iv:1; - unsigned hmac:1; - unsigned can_sign:1; - unsigned can_digest:1; - unsigned can_encrypt:1; - unsigned symmetric:1; - int digest_size; -} algo_properties[] = { +static const struct algo_properties_st algo_properties[] = { { .algo = NCR_ALG_NULL, .kstr = "ecb(cipher_null)", .needs_iv = 0, .symmetric=1, .can_encrypt=1 }, { .algo = NCR_ALG_3DES_CBC, .kstr = "cbc(des3_ede)", diff --git a/ncr_int.h b/ncr_int.h index 12c053a..9d5bee4 100644 --- a/ncr_int.h +++ b/ncr_int.h @@ -10,6 +10,18 @@ #define err() printk(KERN_DEBUG"ncr: %s: %s: %d\n", __FILE__, __func__, __LINE__) +struct algo_properties_st { + ncr_algorithm_t algo; + const char *kstr; + unsigned needs_iv:1; + unsigned hmac:1; + unsigned can_sign:1; + unsigned can_digest:1; + unsigned can_encrypt:1; + unsigned symmetric:1; + int digest_size; +}; + struct session_item_st { struct list_head list; -- cgit