update token specific open session function

Update token_specific_session to use a SESSION* argument instead of slot
id. Also check if a token supports it before calling it and remove
unused token_specific_session functions from tokens that don't need it.

Signed-off-by: Marcelo Cerri <mhcerri@linux.vnet.ibm.com>
update token specific login function

Update token_specific_login to use a SESSION* argument instead of slot
id.

Signed-off-by: Marcelo Cerri <mhcerri@linux.vnet.ibm.com>
icsf: keep LDAP handle in a global structure

Add a list of open sessions that will keep the handle for the LDAP
connection.

Signed-off-by: Marcelo Cerri <mhcerri@linux.vnet.ibm.com>
fix formatting for SC_GenerateKeu in new_host.c

Fix indentation and break long lines.

Signed-off-by: Marcelo Cerri <mhcerri@linux.vnet.ibm.com>
token-specific function for symmetric key generation

Add a new token-specific function t_generate_key for symmetric key generation.

Signed-off-by: Marcelo Cerri <mhcerri@linux.vnet.ibm.com>
icsf: add support for symmetric key generation

This commit adds to ICSF token the token-specific function for symmetric
key generation. It also adds a helper function in icsf_specific.c that
checks permissions based on the current session and on the object/key
attributes, this function can be reused for object creation.

Signed-off-by: Marcelo Cerri <mhcerri@linux.vnet.ibm.com>