From 570403f3421b222167196d380c60eb8430eb4cd7 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Wed, 28 Aug 2013 09:45:21 +0200 Subject: trust: Add index callback for when an object is removed This allows a token to remove the file if desired --- trust/index.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'trust/index.h') diff --git a/trust/index.h b/trust/index.h index 192bfcd..3ae24a1 100644 --- a/trust/index.h +++ b/trust/index.h @@ -53,6 +53,10 @@ typedef CK_RV (* p11_index_store_cb) (void *data, CK_OBJECT_HANDLE handle, CK_ATTRIBUTE **attrs); +typedef CK_RV (* p11_index_remove_cb) (void *data, + p11_index *index, + CK_ATTRIBUTE *attrs); + typedef void (* p11_index_notify_cb) (void *data, p11_index *index, CK_OBJECT_HANDLE handle, @@ -60,6 +64,7 @@ typedef void (* p11_index_notify_cb) (void *data, p11_index * p11_index_new (p11_index_build_cb build, p11_index_store_cb store, + p11_index_remove_cb remove, p11_index_notify_cb notify, void *data); -- cgit v1.1