Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions mirage/tls_mirage.ml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ module Make (F : V1_LWT.FLOW) (E : V1_LWT.ENTROPY) = struct
type buffer = Cstruct.t
type +'a io = 'a Lwt.t

let error_message = function
| `Tls msg -> Printf.sprintf "TLS error: %s" msg
| `Flow err -> F.error_message err

module ENTROPY = E
(*
* XXX 1: Would be nice if this happened behind the scenes.
Expand Down