package krb

  1. Overview
  2. Docs
A library for using Kerberos for both Rpc and Tcp communication

Install

Dune Dependency

Authors

Maintainers

Sources

krb-v0.15.0.tar.gz
sha256=d0b4b946f4e53dff9091d2d02a235e861ab5ad9d64638b17ba1834dedfb4f53d

doc/src/krb.internal/krb_result.ml.html

Source file krb_result.ml

1
2
3
4
5
6
7
8
9
open! Core

type 'a t = ('a, Krb_error.t) Result.t

let to_or_error ?context ~info result =
  Result.map_error result ~f:(fun code ->
    let krb_error = Krb_error.to_string code ?context ~info in
    Error.create_s [%message "" ~_:(krb_error : string) (code : int32)])
;;
OCaml

Innovation. Community. Security.