Skip to content

Commit 951feae

Browse files
committed
cohttp-eio: update to mirage-crypto-rng 1.2.0 API
1 parent 6fb383e commit 951feae

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

cohttp-eio.opam

+1-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ depends: [
2929
"logs"
3030
"uri"
3131
"tls-eio" {with-test & >= "1.0.0"}
32-
"mirage-crypto-rng" {with-test & < "1.2.0"}
33-
"mirage-crypto-rng-eio" {with-test & >= "0.11.2"}
32+
"mirage-crypto-rng" {with-test & >= "1.2.0"}
3433
"ca-certs" {with-test & >= "1.0.0"}
3534
"fmt"
3635
"ptime"

cohttp-eio/examples/client_tls.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ let https ~authenticator =
2626

2727
let () =
2828
Eio_main.run @@ fun env ->
29-
Mirage_crypto_rng_eio.run (module Mirage_crypto_rng.Fortuna) env @@ fun () ->
29+
Mirage_crypto_rng_unix.use_default ();
3030
let client = Client.make ~https:(Some (https ~authenticator)) env#net in
3131
Eio.Switch.run @@ fun sw ->
3232
let resp, body =

cohttp-eio/examples/dune

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
logs.threaded
1111
tls-eio
1212
ca-certs
13-
mirage-crypto-rng-eio))
13+
mirage-crypto-rng.unix))
1414

1515
(alias
1616
(name runtest)

dune-project

+1-2
Original file line numberDiff line numberDiff line change
@@ -382,8 +382,7 @@
382382
logs
383383
uri
384384
(tls-eio (and :with-test (>= 1.0.0)))
385-
(mirage-crypto-rng (and :with-test (< 1.2.0)))
386-
(mirage-crypto-rng-eio (and :with-test (>= 0.11.2)))
385+
(mirage-crypto-rng (and :with-test (>= 1.2.0)))
387386
(ca-certs (and :with-test (>= "1.0.0")))
388387
fmt
389388
ptime

0 commit comments

Comments
 (0)