Method: PKCS11::Session#C_SetPIN

Defined in:
lib/pkcs11/session.rb

#C_SetPIN(old_pin, new_pin) ⇒ PKCS11::Session Also known as: set_pin

Modifies the PIN of the user that is currently logged in, or the CKU_USER PIN if the session is not logged in.

Parameters:

  • old_pin (String)
  • new_pin (String)

Returns:



176
177
178
179
# File 'lib/pkcs11/session.rb', line 176

def C_SetPIN(old_pin, new_pin)
  @pk.C_SetPIN(@sess, old_pin, new_pin)
  self
end