Jonathan Turner 9 tahun lalu
induk
melakukan
4efeae7435

+ 1 - 1
iana/asnAppTag/constants.go

@@ -20,4 +20,4 @@ const (
 	EncKrbPrivPart = 28
 	EncKrbCredPart = 29
 	KRBError       = 30
-)
+)

+ 1 - 1
messages/APReq_test.go

@@ -48,4 +48,4 @@ func TestMarshalAPReq(t *testing.T) {
 		t.Fatalf("Marshal of ticket errored: %v", err)
 	}
 	assert.Equal(t, b, mb, "Marshal bytes of Authenticator not as expected")
-}
+}

+ 0 - 1
messages/KDCReq_test.go

@@ -424,4 +424,3 @@ func TestMarshalTGSReq(t *testing.T) {
 	}
 	assert.Equal(t, b, mb, "Marshal bytes of TGSReq not as expected")
 }
-

+ 2 - 3
types/Cryptosystem_test.go

@@ -2,12 +2,11 @@ package types
 
 import (
 	"encoding/hex"
-	"github.com/stretchr/testify/assert"
 	"github.com/jcmturner/gokrb5/testdata"
+	"github.com/stretchr/testify/assert"
 	"testing"
 )
 
-
 func TestUnmarshalEncryptedData(t *testing.T) {
 	var a EncryptedData
 	v := "encode_krb5_enc_data"
@@ -87,4 +86,4 @@ func TestMarshalEncryptedData(t *testing.T) {
 		t.Fatalf("Marshal of ticket errored: %v", err)
 	}
 	assert.Equal(t, b, mb, "Marshal bytes of Encrypted Data not as expected")
-}
+}

+ 2 - 2
types/HostAddress.go

@@ -5,9 +5,9 @@ package types
 
 import (
 	"bytes"
+	"fmt"
 	"github.com/jcmturner/asn1"
 	"net"
-	"fmt"
 )
 
 /*
@@ -74,7 +74,7 @@ func GetHostAddress(s string) (HostAddress, error) {
 	}
 	h = HostAddress{
 		AddrType: ht,
-		Address: hb,
+		Address:  hb,
 	}
 	return h, nil
 }

+ 2 - 3
types/PrincipalName_test.go

@@ -5,11 +5,10 @@ import (
 	"testing"
 )
 
-
 func TestPrincipalName_GetSalt(t *testing.T) {
 	pn := PrincipalName{
-		NameType: 1,
+		NameType:   1,
 		NameString: []string{"firststring", "secondstring"},
 	}
 	assert.Equal(t, "TEST.GOKRB5firststringsecondstring", pn.GetSalt("TEST.GOKRB5"), "Principal name default salt not as expected")
-}
+}

+ 2 - 2
types/TypedData_test.go

@@ -2,10 +2,10 @@ package types
 
 import (
 	"encoding/hex"
+	"fmt"
+	"github.com/jcmturner/gokrb5/testdata"
 	"github.com/stretchr/testify/assert"
 	"testing"
-	"github.com/jcmturner/gokrb5/testdata"
-	"fmt"
 )
 
 func TestUnmarshalTypedData(t *testing.T) {