opam-version: "2.0"
homepage:     "https://github.com/mirleft/ocaml-tls"
dev-repo: "git+https://github.com/mirleft/ocaml-tls.git"
bug-reports:  "https://github.com/mirleft/ocaml-tls/issues"
authors:      ["David Kaloper <david@numm.org>" "Hannes Mehnert <hannes@mehnert.org>"]
maintainer:   ["Hannes Mehnert <hannes@mehnert.org>" "David Kaloper <david@numm.org>"]
license:      "BSD-2-Clause"

build: [
  ["ocaml" "setup.ml" "-configure" "--prefix" prefix
    "--%{lwt:enable}%-lwt"
    "--%{mirage-types-lwt+ipaddr:enable}%-mirage" ]
  ["ocaml" "setup.ml" "-build"]
]
install: ["ocaml" "setup.ml" "-install"]
remove: ["ocamlfind" "remove" "tls"]

depends: [
  "ocaml" {>= "4.01.0" & < "4.12.0"}
  "ocamlfind"
  "camlp4"
  "cstruct" {>= "1.2.0" & < "2.0.0"}
  "type_conv"
  "sexplib" {< "113.01.00"}
  "nocrypto" {>= "0.2.0" & < "0.3.0"}
  "x509" {>= "0.2.0" & < "0.3.0"}
  "ocamlbuild" {build}
]
depopts: [
  "lwt"
  "mirage-types-lwt"
]
conflicts: [
  "lwt" {>= "4.0.0"}
  "mirage-types-lwt" {< "2.0.0"}
  "mirage-types-lwt" {>= "2.2.0"}
]
synopsis: "Transport Layer Security (TLS) in OCaml"
description: """
A clean-slate TLS implementation, with support for protocol versions 1.0-1.2.
Includes the core library, as well as Lwt and MirageOS frontends."""
flags: light-uninstall
url {
  src: "https://github.com/mirleft/ocaml-tls/archive/0.2.0.tar.gz"
  checksum: "md5=751b9ce247c237d9d9cdf388917479b1"
}
