Name

FC_Login() - log a user into a token.

Syntax

CK_RV FC_Login(
  CK_SESSION_HANDLE hSession,
  CK_USER_TYPE userType,
  CK_CHAR_PTR pPin,
  CK_ULONG ulPinLen
);

Parameters

FC_Login() takes four parameters:

hSession
[in] a session handle
userType
[in] the user type (CKU_SO or CKU_USER)
pPin
[in] a pointer that points to the user's PIN
ulPinLen
[in] the length of the PIN

Description

FC_Login() logs a user into a token.

The Security Officer (CKU_SO) only logs in to initialize the normal user's PIN. The SO PIN is the empty string. The NSS cryptographic module doesn't allow the SO to log in if the normal user's PIN is already initialized.

Return value

FC_Login() returns the following return codes.

See also