From 3d6ddb8dcda40d21253d6e5de2469e03afc4a492 Mon Sep 17 00:00:00 2001 From: rlaphoenix Date: Thu, 21 Jul 2022 15:48:45 +0100 Subject: [PATCH] Device: Remove explicit deprecated key control flag This flag was used before this project was made, never after. Therefore I do not need to actually take this flag slot as deprecated from the get-go. --- pywidevine/device.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pywidevine/device.py b/pywidevine/device.py index 75ab7a6..e716671 100644 --- a/pywidevine/device.py +++ b/pywidevine/device.py @@ -7,7 +7,7 @@ from typing import Any, Optional, Union from construct import BitStruct, Bytes, Const from construct import Enum as CEnum -from construct import Flag, Int8ub, Int16ub +from construct import Int8ub, Int16ub from construct import Optional as COptional from construct import Padded, Padding, Struct, this from Crypto.PublicKey import RSA @@ -31,8 +31,8 @@ class Structures: ), "security_level" / Int8ub, "flags" / Padded(1, COptional(BitStruct( - Padding(7), - "send_key_control_nonce_deprecated" / Flag + # no per-device flags yet + Padding(8) ))), "private_key_len" / Int16ub, "private_key" / Bytes(this.private_key_len), @@ -49,8 +49,8 @@ class Structures: ), "security_level" / Int8ub, "flags" / Padded(1, COptional(BitStruct( - Padding(7), - "send_key_control_nonce_deprecated" / Flag + # no per-device flags yet + Padding(8) ))), "private_key_len" / Int16ub, "private_key" / Bytes(this.private_key_len),