Jonathan Turner пре 8 година
родитељ
комит
ae9c3098c9
4 измењених фајлова са 6 додато и 6 уклоњено
  1. 1 1
      iana/keyusage/constants.go
  2. 1 1
      iana/msgtype/constants.go
  3. 2 2
      pac/pac_type.go
  4. 2 2
      pac/s4u_delegation_info.go

+ 1 - 1
iana/keyusage/constants.go

@@ -2,7 +2,7 @@
 package keyusage
 
 const (
-	//Key usage numbers
+	// Key usage numbers.
 	AS_REQ_PA_ENC_TIMESTAMP                        = 1
 	KDC_REP_TICKET                                 = 2
 	AS_REP_ENCPART                                 = 3

+ 1 - 1
iana/msgtype/constants.go

@@ -2,7 +2,7 @@
 package msgtype
 
 const (
-	// Message type ID for AS_REQ
+	// KRB message type IDs.
 	KRB_AS_REQ     = 10 //Request for initial authentication
 	KRB_AS_REP     = 11 //Response to KRB_AS_REQ request
 	KRB_TGS_REQ    = 12 //Request for authentication based on TGT

+ 2 - 2
pac/pac_type.go

@@ -21,7 +21,7 @@ type PACType struct {
 	ServerChecksum     *SignatureData
 	KDCChecksum        *SignatureData
 	ClientInfo         *ClientInfo
-	S4U_DelegationInfo *S4U_DelegationInfo
+	S4U_DelegationInfo *S4UDelegationInfo
 	UPN_DNSInfo        *UPN_DNSInfo
 	ClientClaimsInfo   *ClientClaimsInfo
 	DeviceInfo         *DeviceInfo
@@ -116,7 +116,7 @@ func (pac *PACType) ProcessPACInfoBuffers(key types.EncryptionKey) error {
 				//Must ignore subsequent buffers of this type
 				continue
 			}
-			var k S4U_DelegationInfo
+			var k S4UDelegationInfo
 			err := k.Unmarshal(p)
 			if err != nil {
 				return fmt.Errorf("Error processing S4U_DelegationInfo: %v", err)

+ 2 - 2
pac/s4u_delegation_info.go

@@ -7,14 +7,14 @@ import (
 )
 
 // S4U_DelegationInfo implements https://msdn.microsoft.com/en-us/library/cc237944.aspx
-type S4U_DelegationInfo struct {
+type S4UDelegationInfo struct {
 	S4U2proxyTarget      mstypes.RPC_UnicodeString // The name of the principal to whom the application can forward the ticket.
 	TransitedListSize    uint32
 	S4UTransitedServices []mstypes.RPC_UnicodeString // List of all services that have been delegated through by this client and subsequent services or servers.. Size is value of TransitedListSize
 }
 
 // Unmarshal bytes into the S4U_DelegationInfo struct
-func (k *S4U_DelegationInfo) Unmarshal(b []byte) error {
+func (k *S4UDelegationInfo) Unmarshal(b []byte) error {
 	ch, _, p, err := ndr.ReadHeaders(&b)
 	if err != nil {
 		return fmt.Errorf("Error parsing byte stream headers: %v", err)