mirror of https://github.com/Yubico/python-fido2
Fix packing sub_cmd.
sub_cmd is an unsigned char, since VENDOR_PROTOTYPE is 0xff. If not, it cannot be encoded. Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
parent
032dd8b853
commit
4abb4a577f
|
@ -86,7 +86,7 @@ class Config:
|
|||
msg = (
|
||||
b"\xff" * 32
|
||||
+ b"\x0d"
|
||||
+ struct.pack("<b", sub_cmd)
|
||||
+ struct.pack("<B", sub_cmd)
|
||||
+ (cbor.encode(params) if params else b"")
|
||||
)
|
||||
pin_uv_protocol = self.pin_uv.protocol.VERSION
|
||||
|
|
Loading…
Reference in New Issue