Merge pull request #33 from minus7/patch-1
fixed Python 3 compatibility for Yubikey 4
Dain Nilsson
8 years ago
103 | 103 | frame = yubikey_frame.YubiKeyFrame(command=SLOT.YK4_CAPABILITIES) |
104 | 104 | self._device._write(frame) |
105 | 105 | response = self._device._read_response() |
106 | r_len = ord(response[0]) | |
106 | r_len = yubico_util.ord_byte(response[0]) | |
107 | 107 | |
108 | 108 | # 1 byte length, 2 byte CRC. |
109 | 109 | if not yubico_util.validate_crc16(response[:r_len+3]): |