Пример #1
0
 def to_asn1(self, component):
     component.setComponentByName('tkt-vno', 5)
     component.setComponentByName('realm', self.service_principal.realm)
     asn1.seq_set(component, 'sname',
                  self.service_principal.components_to_asn1)
     asn1.seq_set(component, 'enc-part', self.encrypted_part.to_asn1)
     return component
Пример #2
0
 def to_asn1(self, component):
     component.setComponentByName('tkt-vno', 5)
     component.setComponentByName('realm', self.service_principal.realm)
     asn1.seq_set(component, 'sname',
                  self.service_principal.components_to_asn1)
     asn1.seq_set(component, 'enc-part', self.encrypted_part.to_asn1)
     return component