import struct import _DMDomain import copy DOMAIN_TYPE_MATCH="\x00" DOMAIN_TYPE_CONTROL="\x01" def ValidateDomainString(DomainStr, DomainType, DomainLen): _DMDomain.ValidateDomainString(DomainStr, DomainType, struct.pack(' 32: stend=32 DomainStr=copy.deepcopy(DomainStr[0:stend]) return DomainStr def DMDomainMatch(ControlStr, MatchStr, ControlLen): return bool(struct.unpack('