py-kms/py2-kms/kmsRequestUnknown.py

14 lines
496 B
Python
Raw Normal View History

2018-03-01 06:25:00 +08:00
#!/usr/bin/env python
import struct
from kmsBase import kmsBase
class kmsRequestUnknown(kmsBase):
def executeRequestLogic(self):
2018-03-01 06:25:00 +08:00
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)