Codebase list python-yubico / 7e6e424
fixed Python 3 compatibility for Yubikey 4 minus 8 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
103103 frame = yubikey_frame.YubiKeyFrame(command=SLOT.YK4_CAPABILITIES)
104104 self._device._write(frame)
105105 response = self._device._read_response()
106 r_len = ord(response[0])
106 r_len = yubico_util.ord_byte(response[0])
107107
108108 # 1 byte length, 2 byte CRC.
109109 if not yubico_util.validate_crc16(response[:r_len+3]):