OCaml bindings for the GNU SASL library using Ctypes
Switch branches/tags
Nothing to show
Clone or download
nojb Merge pull request #1 from yallop/ctypes-0.4.0
Update include path for ctypes 0.4.0 compatibility.
Latest commit a96c7b9 Mar 17, 2015

README.md

ocaml-gsasl

This is a preliminary release of OCaml bindings for the GNU SASL library. They are written using Ctypes.

Installation and Usage

  1. Install libgsasl. If you are using OS X with Homebrew, this is as simple as typing

    brew install gsasl
  2. Install with OPAM.

    opam install gsasl
  3. To see if it is working, you can try it out in the ocaml toplevel:

    # #use "topfind";;
    - : unit = ()
    # #require "gsasl";;
    # let s = Gsasl.base64_to "Hello, World!";;
    val s : string = "SGVsbG8sIFdvcmxkIQ=="
    # Gsasl.base64_from s;;
    - : string = "Hello, World!"
    # let ctx = Gsasl.init ();;
    val ctx : Gsasl.context = <abstr>
    # Gsasl.client_mechlist ctx;;
    - : string list = ["GSSAPI"; "OPENID20"; "SAML20"; "SCRAM-SHA-1"; "CRAM-MD5"; "DIGEST-MD5"; "SECURID"; "PLAIN"; "LOGIN"; "EXTERNAL"; "ANONYMOUS"]
  4. Read the documentation in lib/gsasl.mli.

Comments

Comments, bug reports and feature requests are very welcome: n.oje.bar@gmail.com.