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.16.0.tar.gz
sha256=353675621e4c5a888f2483dc1bb7281bd17ce4ed7dfd2f40142257f98db7c77d

doc/src/krb.public/handshake_error.ml.html

Source file handshake_error.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
open Core
open Async
open! Import

module Kind = struct
  type t =
    | Incompatible_client
    | Unexpected_or_no_client_bytes
    | Unexpected_exception
  [@@deriving sexp]
end

type t = Kind.t * Error.t [@@deriving sexp]

let of_error ~kind error = kind, error
let of_result ~kind r = Deferred.Result.map_error r ~f:(of_error ~kind)

let ignore_handshake_error_kind = function
  | `Ignore -> `Ignore
  | `Raise -> `Raise
  | `Call f -> `Call (fun _ addr exn -> f addr exn)
;;
OCaml

Innovation. Community. Security.