Slot and token management API

Index

get-mechanism-info get-mechanism-list get-slot-info get-slot-list get-token-info init-pin init-token set-pin wait-for-slot-event

Reference

get-mechanism-infocfunction
src/slot_and_token.c at line 240, column 1
(get-mechanism-info p11-obj slot-id &opt mechanism-list)

Returns a list of mechanisms information of `mechanism-list` list.`slot-id` is the ID of the token’s slot. If `mechanism-list` is not provided, return list of all avaiable mechanism information.

get-mechanism-listcfunction
src/slot_and_token.c at line 209, column 1
(get-mechanism-list p11-obj slot-id)

Returns a list of mechanisms supported by a token.`slot-id` is the ID of the token’s slot.

get-slot-infocfunction
src/slot_and_token.c at line 63, column 1
(get-slot-info p11-obj &opt slot-id)

Returns information about a particular slot in the system. If `slot-id` is not provided, information about all slots is returned as a list. If there is no slot corresponding to `slot-id` or no slot exists in system, `nil` is returned.

get-slot-listcfunction
src/slot_and_token.c at line 32, column 1
(get-slot-list p11-obj)

Returns a list of slots in the system

get-token-infocfunction
src/slot_and_token.c at line 129, column 1
(get-token-info p11-obj slot-id)

Returns information about a particular token in the system. `slot-id` is the ID of the token’s slot.

init-pincfunction
src/slot_and_token.c at line 318, column 1
(init-pin session-obj pin)

Initializes the normal user’s PIN. Returns `session-obj`, if successful.

init-tokencfunction
src/slot_and_token.c at line 292, column 1
(init-token p11-obj slot-id so-pin label)

Initializes a token. Return `p11-obj`, if successful.

set-pincfunction
src/slot_and_token.c at line 335, column 1
(set-pin session-obj old-pin new-pin)

Modifies the PIN of the user that is currently logged in, or the normal user's' PIN if the session is not logged in. Returns `session-obj`, if successful.

wait-for-slot-eventcfunction
src/slot_and_token.c at line 174, column 1
(wait-for-slot-event p11-obj)

Returns a list of slot-id of slots where events occurred. Returns `nil` if there are no event in any slots.