| |
@@ -77,8 +77,8 @@
|
| |
|
| |
try:
|
| |
ykconfig = ykey.init_config()
|
| |
- ykconfig.mode_yubikey_otp('h:%s' % opts[1], 'h:%s' % opts[2])
|
| |
- ykconfig.fixed_string(str('m:%s' % opts[0]))
|
| |
+ ykconfig.mode_yubikey_otp(f'h:{opts[1]}'.encode(), f'h:{opts[2]}'.encode())
|
| |
+ ykconfig.fixed_string(str(f'm:{opts[0]}'))
|
| |
ykconfig.ticket_flag('APPEND_CR', True)
|
| |
ykconfig.config_flag('STATIC_TICKET', False)
|
| |
if ykey.version_num() >= (2, 1):
|
| |
This yubico library expect these parameters to be bytes
instead of string.
Also replacing the string formating by f-strings.
fixes #158
Signed-off-by: Clement Verna cverna@tutanota.com