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
(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-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-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-list p11-obj)
Returns a list of slots in the system
(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-pin session-obj pin)
Initializes the normal user’s PIN. Returns `session-obj`, if successful.
(init-token p11-obj slot-id so-pin label)
Initializes a token. Return `p11-obj`, if successful.
(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-event p11-obj)
Returns a list of slot-id of slots where events occurred. Returns `nil` if there are no event in any slots.