@@ 575-586 (lines=12) @@ | ||
572 | return not self.__eq__(other) |
|
573 | ||
574 | ||
575 | class ExtensionObject(FrozenClass): |
|
576 | """ |
|
577 | Any UA object packed as an ExtensionObject |
|
578 | ||
579 | :ivar TypeId: |
|
580 | :vartype TypeId: NodeId |
|
581 | :ivar Body: |
|
582 | :vartype Body: bytes |
|
583 | """ |
|
584 | ua_switches = { |
|
585 | 'Body': ('Encoding', 0), |
|
586 | } |
|
587 | ||
588 | ua_types = ( |
|
589 | ("TypeId", "NodeId"), |
@@ 929-938 (lines=10) @@ | ||
926 | self.SpecifiedLists = 0 |
|
927 | self.TrustedCertificates = [] |
|
928 | self.TrustedCrls = [] |
|
929 | self.IssuerCertificates = [] |
|
930 | self.IssuerCrls = [] |
|
931 | self._freeze = True |
|
932 | ||
933 | def to_binary(self): |
|
934 | packet = [] |
|
935 | packet.append(uabin.Primitives.UInt32.pack(self.SpecifiedLists)) |
|
936 | packet.append(uabin.Primitives.Int32.pack(len(self.TrustedCertificates))) |
|
937 | for fieldname in self.TrustedCertificates: |
|
938 | packet.append(uabin.Primitives.ByteString.pack(fieldname)) |
|
939 | packet.append(uabin.Primitives.Int32.pack(len(self.TrustedCrls))) |
|
940 | for fieldname in self.TrustedCrls: |
|
941 | packet.append(uabin.Primitives.ByteString.pack(fieldname)) |