From f88f58440ff29d618a4ee5912dfbbda8aa9a6878 Mon Sep 17 00:00:00 2001 From: max furman Date: Thu, 18 Feb 2021 20:14:20 -0800 Subject: [PATCH] add //nolint for new 1.16 deprecation warnings - dsa - pem.DecryptPEMBlock --- api/api.go | 2 +- api/api_test.go | 2 +- kms/softkms/softkms_test.go | 2 +- kms/sshagentkms/sshagentkms_test.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/api/api.go b/api/api.go index 699092a7..2ae6e6e8 100644 --- a/api/api.go +++ b/api/api.go @@ -3,7 +3,7 @@ package api import ( "context" "crypto" - "crypto/dsa" + "crypto/dsa" //nolint "crypto/ecdsa" "crypto/rsa" "crypto/x509" diff --git a/api/api_test.go b/api/api_test.go index 190e5a2a..944927ff 100644 --- a/api/api_test.go +++ b/api/api_test.go @@ -4,7 +4,7 @@ import ( "bytes" "context" "crypto" - "crypto/dsa" + "crypto/dsa" //nolint "crypto/ecdsa" "crypto/elliptic" "crypto/rand" diff --git a/kms/softkms/softkms_test.go b/kms/softkms/softkms_test.go index 11c0cdd1..607a5a51 100644 --- a/kms/softkms/softkms_test.go +++ b/kms/softkms/softkms_test.go @@ -83,7 +83,7 @@ func TestSoftKMS_CreateSigner(t *testing.T) { t.Fatal(err) } block, _ := pem.Decode(b) - block.Bytes, err = x509.DecryptPEMBlock(block, []byte("pass")) + block.Bytes, err = x509.DecryptPEMBlock(block, []byte("pass")) //nolint if err != nil { t.Fatal(err) } diff --git a/kms/sshagentkms/sshagentkms_test.go b/kms/sshagentkms/sshagentkms_test.go index 4c572530..30edd5d1 100644 --- a/kms/sshagentkms/sshagentkms_test.go +++ b/kms/sshagentkms/sshagentkms_test.go @@ -295,7 +295,7 @@ func TestSSHAgentKMS_CreateSigner(t *testing.T) { t.Fatal(err) } block, _ := pem.Decode(b) - block.Bytes, err = x509.DecryptPEMBlock(block, []byte("pass")) + block.Bytes, err = x509.DecryptPEMBlock(block, []byte("pass")) //nolint if err != nil { t.Fatal(err) }