Skip to content

Commit

Permalink
Don't add an authenticator by default
Browse files Browse the repository at this point in the history
  • Loading branch information
Antonio Nuno Monteiro committed Jan 30, 2019
1 parent 1ac80ea commit 617d434
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions lwt/tls_io_real.ml
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,8 @@ let make_server ?server ?certfile ?keyfile socket
let config = match server, certfile, keyfile with
| Some server, _, _ -> Lwt.return server
| None, Some cert, Some priv_key ->
X509_lwt.private_of_pems ~cert ~priv_key >>= fun certificate ->
X509_lwt.authenticator `No_authentication_I'M_STUPID >|= fun authenticator ->
Tls.Config.server
~certificates:(`Single certificate)
~authenticator
()
X509_lwt.private_of_pems ~cert ~priv_key >|= fun certificate ->
Tls.Config.server ~certificates:(`Single certificate) ()
| _ ->
Lwt.fail (Invalid_argument "Certfile and Keyfile required when server isn't provided")
in
Expand Down

0 comments on commit 617d434

Please sign in to comment.