code: def parse_result(self, data):
          
          # typedef struct {
          #   YSM_STATUS status;                  // Unlock status
          # } YSM_KEY_STORAGE_UNLOCK_RESP;
          fmt = "B"
          self.status, = struct.unpack(fmt, data)
  
          if self.status == pyhsm.defines.YSM_STATUS_OK:
              return True
          else:
              raise pyhsm.exception.YHSM_CommandFailed(pyhsm.defines.cmd2str(self.command), self.status)
docs: Parse result of L{pyhsm.defines.YSM_KEY_STORAGE_UNLOCK} command.
  
          @return: Only returns (True) on successful unlock
          @rtype: bool
  
          @raise pyhsm.exception.YHSM_CommandFailed: YubiHSM failed to unlock key storage