Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

CLOG - login/logout

&pagelevel(4)&pagelevel

The CLOG macro covers the following session management functions

  • logging a user into a token

  • logging a user out of a token

All functions are always performed synchronously.

A detailed description of the functions of the CLOG macro can be found in PKCS#11 V2.20: Cryptographic Token Interface Standard in section 11.6 “Session management functions” under “C_Login” and “C_Logout”.

Macro

Operands

CLOG

MF=C / D / L / M / E

,ACTION=*LOGIN / *LOGOUT / <var: enum-of _action_set: 1> /

default: _action_set.undefined

,SESSION=<var: int:4> / <integer 0..2147483647> / 0

,PIN=<var: pointer> / NULL

,PINL=<var: int:4> / <integer 0..2147483647> / 0

ACTION

Type of action.
The corresponding PKCS#11 function is specified for each action code.

=*LOGIN

corresponds to the PKCS#11 function C_Login;
logs a user into a token.

=*LOGOUT

corresponds to the PKCS#11 function C_Logout;
logs a user out of a token.

SESSION

Session identifier

PIN

points to the PIN;
*LOGOUT: PIN is not used.

PINL

Length of the PIN in bytes;
*LOGOUT: PINL is not used.