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

build: [
  [
    "ocaml"
    "pkg/build.ml"
    "native=%{ocaml:native}%"
    "native-dynlink=%{ocaml:native-dynlink}%"
  ]
  [
    "ocaml"
    "pkg/build.ml"
    "native=%{ocaml:native}%"
    "native-dynlink=%{ocaml:native-dynlink}%"
  ] {with-test}
  [
    "sh"
    "-exc"
    "if test -f ./feedback.native; then ./feedback.native; else ./feedback.byte; fi"
  ] {with-test}
]
depends: [
  "ocaml" {>= "4.02.2"}
  "ocamlfind" {build}
  "ppx_tools"
  "cstruct" {>= "1.9.0" & < "3.4.0"}
  "ppx_cstruct"
  "sexplib" {< "v0.15"}
  "result"
  "ppx_deriving"
  "ppx_sexp_conv" {< "v0.11.0"}
  "nocrypto" {>= "0.5.3"}
  "astring"
  "ocamlbuild" {build}
]
conflicts: [
  "sexplib" {= "v0.9.0"}
]
synopsis: "Off-the-record in pure OCaml"
description: """
This is an implementation of version 2 and 3 of the Off-the-record
protocol (https://otr.cypherpunks.ca/Protocol-v3-4.0.0.html) in OCaml.

Including the socialist millionairs protocol to authenticate a
communication partner over an encrypted channel providing a shared
secret."""
url {
  src: "https://github.com/hannesm/ocaml-otr/archive/0.3.2.tar.gz"
  checksum: "md5=5dd87a3d3d440d917634afd4928bac96"
}
