PyKCS11/__init__.py
def setPin(self, old_pin, new_pin):
        """
        C_SetPIN

        :param old_pin: old PIN
        :param new_pin: new PIN
        """
        old_pin1 = ckbytelist(old_pin)
        new_pin1 = ckbytelist(new_pin)
        rv = self.lib.C_SetPIN(self.session, old_pin1, new_pin1)
        if rv != CKR_OK:
            raise PyKCS11Error(rv)
def setPin(self, old_pin, new_pin):
        """
        C_SetPIN

        :param old_pin: old PIN
        :param new_pin: new PIN
        """
        old_pin1 = ckbytelist(old_pin)
        new_pin1 = ckbytelist(new_pin)
        rv = self.lib.C_SetPIN(self.session, old_pin1, new_pin1)
        if rv != CKR_OK:
            raise PyKCS11Error(rv)
def setPin ( self , old_pin , new_pin ) : old_pin1 = ckbytelist ( old_pin ) new_pin1 = ckbytelist ( new_pin ) rv = self . lib . C_SetPIN ( self . session , old_pin1 , new_pin1 ) if rv != CKR_OK : raise PyKCS11Error ( rv )
C_SetPIN

        :param old_pin: old PIN
        :param new_pin: new PIN
C_SetPIN