A RetroSearch Logo

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

Search Query:

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

replace uses of deprecated io/ioutil · cloudflare/cfssl@f277884 · 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

@@ -3,9 +3,9 @@ package selfsign

3 3

import (

4 4

"crypto/x509"

5 5

"encoding/pem"

6 -

"io/ioutil"

7 6

"net"

8 7

"net/url"

8 +

"os"

9 9

"reflect"

10 10

"testing"

11 11

"time"

@@ -22,11 +22,11 @@ const (

22 22

)

23 23 24 24

func TestDefaultSign(t *testing.T) {

25 -

csrBytes, err := ioutil.ReadFile(csrFile)

25 +

csrBytes, err := os.ReadFile(csrFile)

26 26

if err != nil {

27 27

t.Fatal(err)

28 28

}

29 -

keyBytes, err := ioutil.ReadFile(keyFile)

29 +

keyBytes, err := os.ReadFile(keyFile)

30 30

if err != nil {

31 31

t.Fatal(err)

32 32

}

@@ -47,11 +47,11 @@ func TestDefaultSign(t *testing.T) {

47 47 48 48

func TestSANs(t *testing.T) {

49 49

t.Skip("broken relating to https://github.com/cloudflare/cfssl/issues/1230")

50 -

csrBytes, err := ioutil.ReadFile(csr2File)

50 +

csrBytes, err := os.ReadFile(csr2File)

51 51

if err != nil {

52 52

t.Fatal(err)

53 53

}

54 -

keyBytes, err := ioutil.ReadFile(keyFile)

54 +

keyBytes, err := os.ReadFile(keyFile)

55 55

if err != nil {

56 56

t.Fatal(err)

57 57

}

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