icsf: add shared function for destroying tokens and objects

Signed-off-by: Marcelo Cerri <mhcerri@linux.vnet.ibm.com>
Reviewed-by: Debora Babb
Reviewed-by: Joy Latten
icsf: add general function for login

Signed-off-by: Marcelo Cerri <mhcerri@linux.vnet.ibm.com>
Reviewed-by: Debora Babb
Reviewed-by: Joy Latten
icsf: change icsf_create_object to return data about the object created

Signed-off-by: Marcelo Cerri <mhcerri@linux.vnet.ibm.com>
Reviewed-by: Debora Babb
Reviewed-by: Joy Latten
icsf: add function for destroying objects

Signed-off-by: Marcelo Cerri <mhcerri@linux.vnet.ibm.com>
Reviewed-by: Debora Babb
Reviewed-by: Joy Latten
icsf: implement t_init_token

ICSF specific t_init_token removes all objects in the remote token.

Signed-off-by: Marcelo Cerri <mhcerri@linux.vnet.ibm.com>
Reviewed-by: Debora Babb
Reviewed-by: Joy Latten
Added comments to soft token's tok_struct.

Signed-off-by: Joy Latten <latten@linux.vnet.ibm.com>
Reviewed-by: Debora Babb
Reviewed-by: Marcelo Cerri
cca token's tok_struct had mis-placed functions.

Signed-off-by: Joy Latten <latten@linux.vnet.ibm.com>
Reviewed-by: Debora Babb
Reviewed-by: Marcelo Cerri
Added comments to ica token's tok struct

Signed-off-by: Joy Latten <latten@linux.vnet.ibm.com>
Reviewed-by: Debora Babb
Reviewed-by: Marcelo Cerri
Add icsf files and dirs to gitignore.

Signed-off-by: Joy Latten <latten@linux.vnet.ibm.com>
Reviewed-by: Debora Babb
Reviewed-by: Marcelo Cerri
Add t_init_pin to the  icsf token.

Signed-off-by: Joy Latten <latten@linux.vnet.ibm.com>
Reviewed-by: Debora Babb
Reviewed-by: Marcelo Cerri
Add t_set_pin to the icsf token.

Signed-off-by: Joy Latten <latten@linux.vnet.ibm.com>
Reviewed-by: Debora Babb
Reviewed-by: Marcelo Cerri
add a token_specific_session to icsf_stdll

Otherwise, ock segfaults when SC_OpenSession() is called.

Signed-off-by: Joy Latten <latten@linux.vnet.ibm.com>
Reviewed-by: Debora Babb
Reviewed-by: Marcelo Cerri
Add token specific login for icsf.

Also includes changes needed since icsf token specific login needs slot id passed as well.

Signed-off-by: Debora V Babb <dvelarde@us.ibm.com>
Signed-off-by: Marcelo Cerri <mhcerri@linux.vnet.ibm.com>
Reviewed-by: Joy Latten
Correct OKC_LOG_DEBUG to OCK_LOG_DEBUG

Signed-off-by: Debora V Babb <dvelarde@us.ibm.com>
Reviewed-by: Joy Latten
Reviewed-by: Marcelo Cerri
fix: remove unused parameters in printf in a macro

Remove unused parameters in printf in the macro CHECK_ARG_MAX_LEN.

Signed-off-by: Marcelo Cerri <mhcerri@linux.vnet.ibm.com>
Reviewed-by: Debora Babb
Reviewed-by: Joy Latten
icsf: remove unused parameter in icsf_create_object

The parameter `type` was supposed to be used to indicate if the new
object is a token or a session object. However, this is wrong. The type
of the new object is defined by the attribute `CKA_TOKEN`.

Signed-off-by: Marcelo Cerri <mhcerri@linux.vnet.ibm.com>
Reviewed-by: Debora Babb
Reviewed-by: Joy Latten