A RetroSearch Logo

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

Search Query:

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

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

@@ -13,7 +13,6 @@ import (

13 13

"errors"

14 14

"fmt"

15 15

"io"

16 -

"io/ioutil"

17 16

"net/http"

18 17

neturl "net/url"

19 18

"sync"

@@ -318,21 +317,21 @@ func sendOCSPRequest(server string, req []byte, leaf, issuer *x509.Certificate)

318 317

return ocsp.ParseResponseForCert(body, leaf, issuer)

319 318

}

320 319 321 -

var crlRead = ioutil.ReadAll

320 +

var crlRead = io.ReadAll

322 321 323 322

// SetCRLFetcher sets the function to use to read from the http response body

324 323

func SetCRLFetcher(fn func(io.Reader) ([]byte, error)) {

325 324

crlRead = fn

326 325

}

327 326 328 -

var remoteRead = ioutil.ReadAll

327 +

var remoteRead = io.ReadAll

329 328 330 329

// SetRemoteFetcher sets the function to use to read from the http response body

331 330

func SetRemoteFetcher(fn func(io.Reader) ([]byte, error)) {

332 331

remoteRead = fn

333 332

}

334 333 335 -

var ocspRead = ioutil.ReadAll

334 +

var ocspRead = io.ReadAll

336 335 337 336

// SetOCSPFetcher sets the function to use to read from the http response body

338 337

func SetOCSPFetcher(fn func(io.Reader) ([]byte, error)) {


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