Skip to content

OCaml bindings for the GNU SASL library using Ctypes

Notifications You must be signed in to change notification settings

kleopatra999/ocaml-gsasl

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

OCaml bindings for the GNU SASL library using Ctypes

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • OCaml 99.7%
  • Makefile 0.3%