mirror of
https://github.com/samba-team/samba.git
synced 2025-12-16 00:23:52 +03:00
python:tests: Store keys as bytes rather than as lists of ints
Signed-off-by: Jo Sutton <josutton@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Wed Apr 24 06:20:58 UTC 2024 on atb-devel-224
This commit is contained in:
committed by
Andrew Bartlett
parent
6f12cf958f
commit
73e3ffb841
@@ -436,7 +436,7 @@ class DCKeytabTests(TestCaseInTempDir):
|
||||
remote_keys = {}
|
||||
|
||||
while True:
|
||||
remote_keys[remote_keytab.entry.enctype] = remote_keytab.entry.key.data
|
||||
remote_keys[remote_keytab.entry.enctype] = bytes(remote_keytab.entry.key.data)
|
||||
keytab_bytes = remote_keytab.further_entry
|
||||
if not keytab_bytes:
|
||||
break
|
||||
@@ -446,7 +446,7 @@ class DCKeytabTests(TestCaseInTempDir):
|
||||
local_keys = {}
|
||||
|
||||
while True:
|
||||
local_keys[local_keytab.entry.enctype] = local_keytab.entry.key.data
|
||||
local_keys[local_keytab.entry.enctype] = bytes(local_keytab.entry.key.data)
|
||||
keytab_bytes = local_keytab.further_entry
|
||||
if not keytab_bytes:
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user