]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
selftest: Add in encrypted-pa-data from RFC 6806
authorAndrew Bartlett <abartlet@samba.org>
Mon, 9 Nov 2020 22:27:06 +0000 (11:27 +1300)
committerGary Lockyer <gary@samba.org>
Wed, 11 Nov 2020 01:15:39 +0000 (01:15 +0000)
This comes from Windows 2019 which supports FAST.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
python/samba/tests/krb5/rfc4120.asn1
python/samba/tests/krb5/rfc4120_pyasn1.py

index 58e0c1636a1add6a7d828fbe67ea39fe7f55db64..654f9788ca72b88852eba7ae41706c2100e49e29 100644 (file)
@@ -239,7 +239,8 @@ EncKDCRepPart   ::= SEQUENCE {
         renew-till      [8] KerberosTime OPTIONAL,
         srealm          [9] Realm,
         sname           [10] PrincipalName,
-        caddr           [11] HostAddresses OPTIONAL
+        caddr           [11] HostAddresses OPTIONAL,
+        encrypted-pa-data[12]  METHOD-DATA OPTIONAL
 }
 
 LastReq         ::=     SEQUENCE OF SEQUENCE {
index b4ea678afd8e1dec86fc4331652d95717c249083..1d89f94adf166790fe676bccbc996718dc1084aa 100644 (file)
@@ -1,5 +1,5 @@
 # Auto-generated by asn1ate v.0.6.1.dev0 from rfc4120.asn1
-# (last modified on 2020-11-03 14:07:15.270009)
+# (last modified on 2020-11-06 11:30:42.476808)
 
 # KerberosV5Spec2
 from pyasn1.type import univ, char, namedtype, namedval, tag, constraint, useful
@@ -438,6 +438,13 @@ LastReq.componentType = univ.Sequence(componentType=namedtype.NamedTypes(
 ))
 
 
+class METHOD_DATA(univ.SequenceOf):
+    pass
+
+
+METHOD_DATA.componentType = PA_DATA()
+
+
 class TicketFlags(KerberosFlags):
     pass
 
@@ -458,7 +465,8 @@ EncKDCRepPart.componentType = namedtype.NamedTypes(
     namedtype.OptionalNamedType('renew-till', KerberosTime().subtype(explicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 8))),
     namedtype.NamedType('srealm', Realm().subtype(explicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 9))),
     namedtype.NamedType('sname', PrincipalName().subtype(explicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatConstructed, 10))),
-    namedtype.OptionalNamedType('caddr', HostAddresses().subtype(explicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 11)))
+    namedtype.OptionalNamedType('caddr', HostAddresses().subtype(explicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 11))),
+    namedtype.OptionalNamedType('encrypted-pa-data', METHOD_DATA().subtype(explicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatSimple, 12)))
 )
 
 
@@ -702,13 +710,6 @@ KRB_SAFE.componentType = namedtype.NamedTypes(
 )
 
 
-class METHOD_DATA(univ.SequenceOf):
-    pass
-
-
-METHOD_DATA.componentType = PA_DATA()
-
-
 class MessageTypeValues(univ.Integer):
     pass