A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/cloudflare/cfssl/commit/df5893e91e4e72e08b0f824ba32b15644d134918 below:

replace uses of deprecated io/ioutil · cloudflare/cfssl@df5893e · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+5

-5

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+5

-5

lines changed Original file line number Diff line number Diff line change

@@ -4,7 +4,7 @@ import (

4 4

"bytes"

5 5

"crypto/ecdsa"

6 6

"crypto/rsa"

7 -

"io/ioutil"

7 +

"os"

8 8

"strings"

9 9

"testing"

10 10

"time"

@@ -64,7 +64,7 @@ var invalidCryptoParams = []csr.KeyRequest{

64 64

func TestInitCA(t *testing.T) {

65 65

var req *csr.CertificateRequest

66 66

hostname := "cloudflare.com"

67 -

crl := "http://crl.cloudflare.com/655c6a9b-01c6-4eea-bf21-be690cc315e0.crl" //cert_uuid.crl

67 +

crl := "http://crl.cloudflare.com/655c6a9b-01c6-4eea-bf21-be690cc315e0.crl" // cert_uuid.crl

68 68

for _, param := range validKeyParams {

69 69

for _, caconfig := range validCAConfigs {

70 70

req = &csr.CertificateRequest{

@@ -162,7 +162,7 @@ func TestInitCA(t *testing.T) {

162 162 163 163

// Sign RSA and ECDSA customer CSRs.

164 164

for _, csrFile := range csrFiles {

165 -

csrBytes, err := ioutil.ReadFile(csrFile)

165 +

csrBytes, err := os.ReadFile(csrFile)

166 166

if err != nil {

167 167

t.Fatal("CSR loading error:", err)

168 168

}

@@ -356,7 +356,7 @@ func TestRenewMismatch(t *testing.T) {

356 356

}

357 357 358 358

func TestRenew(t *testing.T) {

359 -

in, err := ioutil.ReadFile(testECDSACAFile)

359 +

in, err := os.ReadFile(testECDSACAFile)

360 360

if err != nil {

361 361

t.Fatal(err)

362 362

}

@@ -366,7 +366,7 @@ func TestRenew(t *testing.T) {

366 366

t.Fatal(err)

367 367

}

368 368 369 -

in, err = ioutil.ReadFile(testECDSACAKeyFile)

369 +

in, err = os.ReadFile(testECDSACAKeyFile)

370 370

if err != nil {

371 371

t.Fatal(err)

372 372

}

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4