Browse Source

placeholder

Jonathan Turner 9 years ago
parent
commit
6fdac370c7

+ 1 - 0
messages/Cred.go

@@ -0,0 +1 @@
+package messages

+ 37 - 0
messages/Cred_test.go

@@ -0,0 +1,37 @@
+package messages
+
+/*
+KRB-CRED        ::= [APPLICATION 22] SEQUENCE {
+	pvno            [0] INTEGER (5),
+	msg-type        [1] INTEGER (22),
+	tickets         [2] SEQUENCE OF Ticket,
+	enc-part        [3] EncryptedData -- EncKrbCredPart
+}
+
+EncKrbCredPart  ::= [APPLICATION 29] SEQUENCE {
+	ticket-info     [0] SEQUENCE OF KrbCredInfo,
+	nonce           [1] UInt32 OPTIONAL,
+	timestamp       [2] KerberosTime OPTIONAL,
+	usec            [3] Microseconds OPTIONAL,
+	s-address       [4] HostAddress OPTIONAL,
+	r-address       [5] HostAddress OPTIONAL
+}
+
+KrbCredInfo     ::= SEQUENCE {
+	key             [0] EncryptionKey,
+	prealm          [1] Realm OPTIONAL,
+	pname           [2] PrincipalName OPTIONAL,
+	flags           [3] TicketFlags OPTIONAL,
+	authtime        [4] KerberosTime OPTIONAL,
+	starttime       [5] KerberosTime OPTIONAL,
+	endtime         [6] KerberosTime OPTIONAL,
+	renew-till      [7] KerberosTime OPTIONAL,
+	srealm          [8] Realm OPTIONAL,
+	sname           [9] PrincipalName OPTIONAL,
+	caddr           [10] HostAddresses OPTIONAL
+}
+*/
+
+//encode_krb5_cred
+//encode_krb5_enc_cred_part
+//encode_krb5_enc_cred_part(optionalsNULL)

+ 1 - 0
messages/Error.go

@@ -0,0 +1 @@
+package messages

+ 23 - 0
messages/Error_test.go

@@ -0,0 +1,23 @@
+package messages
+
+
+/*
+KRB-ERROR       ::= [APPLICATION 30] SEQUENCE {
+	pvno            [0] INTEGER (5),
+	msg-type        [1] INTEGER (30),
+	ctime           [2] KerberosTime OPTIONAL,
+	cusec           [3] Microseconds OPTIONAL,
+	stime           [4] KerberosTime,
+	susec           [5] Microseconds,
+	error-code      [6] Int32,
+	crealm          [7] Realm OPTIONAL,
+	cname           [8] PrincipalName OPTIONAL,
+	realm           [9] Realm -- service realm --,
+	sname           [10] PrincipalName -- service name --,
+	e-text          [11] KerberosString OPTIONAL,
+	e-data          [12] OCTET STRING OPTIONAL
+}
+*/
+
+//encode_krb5_error
+//encode_krb5_error(optionalsNULL)

+ 1 - 0
messages/Priv.go

@@ -0,0 +1 @@
+package messages

+ 22 - 0
messages/Priv_test.go

@@ -0,0 +1,22 @@
+package messages
+
+/*
+KRB-PRIV        ::= [APPLICATION 21] SEQUENCE {
+	pvno            [0] INTEGER (5),
+	msg-type        [1] INTEGER (21),
+	enc-part        [3] EncryptedData -- EncKrbPrivPart
+}
+
+EncKrbPrivPart  ::= [APPLICATION 28] SEQUENCE {
+	user-data       [0] OCTET STRING,
+	timestamp       [1] KerberosTime OPTIONAL,
+	usec            [2] Microseconds OPTIONAL,
+	seq-number      [3] UInt32 OPTIONAL,
+	s-address       [4] HostAddress -- sender's addr --,
+	r-address       [5] HostAddress OPTIONAL -- recip's addr
+}
+*/
+
+//encode_krb5_priv
+//encode_krb5_enc_priv_part
+//encode_krb5_enc_priv_part(optionalsNULL)

+ 22 - 0
messages/Safe.go

@@ -0,0 +1,22 @@
+package messages
+
+/*
+KRB-SAFE        ::= [APPLICATION 20] SEQUENCE {
+	pvno            [0] INTEGER (5),
+	msg-type        [1] INTEGER (20),
+	safe-body       [2] KRB-SAFE-BODY,
+	cksum           [3] Checksum
+}
+
+KRB-SAFE-BODY   ::= SEQUENCE {
+	user-data       [0] OCTET STRING,
+	timestamp       [1] KerberosTime OPTIONAL,
+	usec            [2] Microseconds OPTIONAL,
+	seq-number      [3] UInt32 OPTIONAL,
+	s-address       [4] HostAddress,
+	r-address       [5] HostAddress OPTIONAL
+}
+*/
+
+//encode_krb5_safe
+//encode_krb5_safe(optionalsNULL)

+ 1 - 0
messages/Safe_test.go

@@ -0,0 +1 @@
+package messages

+ 1 - 0
types/PAData.go

@@ -14,6 +14,7 @@ type PAData struct {
 }
 
 type PADataSequence []PAData
+type MethodData []PAData
 
 type PAEncTimestamp EncryptedData
 

+ 1 - 0
types/TypedData.go

@@ -0,0 +1 @@
+package types

+ 3 - 0
types/TypedData_test.go

@@ -0,0 +1,3 @@
+package types
+
+//encode_krb5_typed_data