mirror of
https://github.com/SystemRage/py-kms.git
synced 2024-11-29 11:44:20 +01:00
14 lines
524 B
Python
14 lines
524 B
Python
#!/usr/bin/env python3
|
|
|
|
import struct
|
|
|
|
from kmsBase import kmsBase
|
|
|
|
class kmsRequestUnknown(kmsBase):
|
|
def executeRequestLogic(self):
|
|
finalResponse = bytearray()
|
|
finalResponse.extend(bytearray(struct.pack('<I', 0)))
|
|
finalResponse.extend(bytearray(struct.pack('<I', 0)))
|
|
finalResponse.extend(bytearray(struct.pack('<I', self.errorCodes['SL_E_VL_KEY_MANAGEMENT_SERVICE_ID_MISMATCH'])))
|
|
return finalResponse.decode('utf-8').encode('utf-8')
|