#!/usr/bin/env python import binascii import logging import os import sys import time import uuid from structure import Structure from kmsDB2Dict import kmsDB2Dict import kmsPidGenerator import filetimes from formatText import justify, shell_message # sqlite3 is optional try: import sqlite3 except ImportError: pass class UUID(Structure): commonHdr = () structure = ( ('raw', '16s'), ) def get(self): return uuid.UUID(bytes_le=str(self)) class kmsBase: def __init__(self, data, config): self.data = data self.config = config class kmsRequestStruct(Structure): commonHdr = () structure = ( ('versionMinor', '