summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiloslav Trmač <mitr@redhat.com>2010-08-25 03:35:07 +0200
committerMiloslav Trmač <mitr@redhat.com>2010-08-25 03:35:07 +0200
commitddd535966fc356f99b72af5eda678575f6fabebb (patch)
tree57718c36b8ae5641eb48b81e0edc83b4fadeaae7
parentb89b8e504e89d8d3cbad36d6d1abea2b7c285c22 (diff)
downloadcryptodev-linux-ddd535966fc356f99b72af5eda678575f6fabebb.tar.gz
cryptodev-linux-ddd535966fc356f99b72af5eda678575f6fabebb.tar.xz
cryptodev-linux-ddd535966fc356f99b72af5eda678575f6fabebb.zip
Move session_item_st definition to ncr-sessions.c
It is not used anywhere else.
-rw-r--r--ncr-int.h26
-rw-r--r--ncr-sessions.c26
2 files changed, 26 insertions, 26 deletions
diff --git a/ncr-int.h b/ncr-int.h
index 9ae0ea1..6bada32 100644
--- a/ncr-int.h
+++ b/ncr-int.h
@@ -56,32 +56,6 @@ struct algo_properties_st {
ncr_key_type_t key_type;
};
-struct session_item_st {
- const struct algo_properties_st *algorithm;
- ncr_crypto_op_t op;
-
- /* contexts for various options.
- * simpler to have them like that than
- * in a union.
- */
- struct cipher_data cipher;
- struct ncr_pk_ctx pk;
- struct hash_data hash;
-
- struct scatterlist *sg;
- struct page **pages;
- unsigned array_size;
- unsigned available_pages;
- struct mutex mem_mutex; /* down when the
- * values above are changed.
- */
-
- struct key_item_st* key;
-
- atomic_t refcnt;
- ncr_session_t desc;
-};
-
struct key_item_st {
/* This object is also not protected from concurrent access.
*/
diff --git a/ncr-sessions.c b/ncr-sessions.c
index ae1aa69..2db972e 100644
--- a/ncr-sessions.c
+++ b/ncr-sessions.c
@@ -31,6 +31,32 @@
#include <linux/scatterlist.h>
#include <net/netlink.h>
+struct session_item_st {
+ const struct algo_properties_st *algorithm;
+ ncr_crypto_op_t op;
+
+ /* contexts for various options.
+ * simpler to have them like that than
+ * in a union.
+ */
+ struct cipher_data cipher;
+ struct ncr_pk_ctx pk;
+ struct hash_data hash;
+
+ struct scatterlist *sg;
+ struct page **pages;
+ unsigned array_size;
+ unsigned available_pages;
+ struct mutex mem_mutex; /* down when the
+ * values above are changed.
+ */
+
+ struct key_item_st* key;
+
+ atomic_t refcnt;
+ ncr_session_t desc;
+};
+
static void _ncr_sessions_item_put(struct session_item_st *item);
static int _ncr_session_update_key(struct ncr_lists *lists,
struct session_item_st *sess,