فهرست منبع

add //nolint for new 1.16 deprecation warnings

- dsa
- pem.DecryptPEMBlock
max furman 5 سال پیش
والد
کامیت
f88f58440f
4فایلهای تغییر یافته به همراه4 افزوده شده و 4 حذف شده
  1. 1 1
      api/api.go
  2. 1 1
      api/api_test.go
  3. 1 1
      kms/softkms/softkms_test.go
  4. 1 1
      kms/sshagentkms/sshagentkms_test.go

+ 1 - 1
api/api.go

@@ -3,7 +3,7 @@ package api
 import (
 import (
 	"context"
 	"context"
 	"crypto"
 	"crypto"
-	"crypto/dsa"
+	"crypto/dsa" //nolint
 	"crypto/ecdsa"
 	"crypto/ecdsa"
 	"crypto/rsa"
 	"crypto/rsa"
 	"crypto/x509"
 	"crypto/x509"

+ 1 - 1
api/api_test.go

@@ -4,7 +4,7 @@ import (
 	"bytes"
 	"bytes"
 	"context"
 	"context"
 	"crypto"
 	"crypto"
-	"crypto/dsa"
+	"crypto/dsa" //nolint
 	"crypto/ecdsa"
 	"crypto/ecdsa"
 	"crypto/elliptic"
 	"crypto/elliptic"
 	"crypto/rand"
 	"crypto/rand"

+ 1 - 1
kms/softkms/softkms_test.go

@@ -83,7 +83,7 @@ func TestSoftKMS_CreateSigner(t *testing.T) {
 		t.Fatal(err)
 		t.Fatal(err)
 	}
 	}
 	block, _ := pem.Decode(b)
 	block, _ := pem.Decode(b)
-	block.Bytes, err = x509.DecryptPEMBlock(block, []byte("pass"))
+	block.Bytes, err = x509.DecryptPEMBlock(block, []byte("pass")) //nolint
 	if err != nil {
 	if err != nil {
 		t.Fatal(err)
 		t.Fatal(err)
 	}
 	}

+ 1 - 1
kms/sshagentkms/sshagentkms_test.go

@@ -295,7 +295,7 @@ func TestSSHAgentKMS_CreateSigner(t *testing.T) {
 		t.Fatal(err)
 		t.Fatal(err)
 	}
 	}
 	block, _ := pem.Decode(b)
 	block, _ := pem.Decode(b)
-	block.Bytes, err = x509.DecryptPEMBlock(block, []byte("pass"))
+	block.Bytes, err = x509.DecryptPEMBlock(block, []byte("pass")) //nolint
 	if err != nil {
 	if err != nil {
 		t.Fatal(err)
 		t.Fatal(err)
 	}
 	}