py-kms/py2-kms/kmsRequestUnknown.py
2018-11-14 23:09:19 +01:00

14 lines
496 B
Python

#!/usr/bin/env python
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 str(finalResponse)