git.samba.org
/
jsutton
/
samba-autobuild
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
python:gkdi: Add Gkdi.from_key_envelope() method
[jsutton/samba-autobuild/.git]
/
python
/
samba
/
gkdi.py
diff --git
a/python/samba/gkdi.py
b/python/samba/gkdi.py
index 61134e1bf942b6ea19953f4c2f1cd36c46fb02ff..b62a00ed3c258dad36e275142580732c029a1b4c 100644
(file)
--- a/
python/samba/gkdi.py
+++ b/
python/samba/gkdi.py
@@
-289,6
+289,10
@@
class Gkid:
return start_time
+ @staticmethod
+ def from_key_envelope(env: gkdi.KeyEnvelope) -> "Gkid":
+ return Gkid(env.l0_index, env.l1_index, env.l2_index)
+
class SeedKeyPair:
__slots__ = ["l1_key", "l2_key", "gkid", "hash_algorithm", "root_key_id"]