Skip to content

Commit

Permalink
print Distinguished_name.t with '/' as separator between components
Browse files Browse the repository at this point in the history
  • Loading branch information
hannesm committed Jul 24, 2019
1 parent 85b5e94 commit b01455f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/distinguished_name.ml
Expand Up @@ -71,7 +71,8 @@ let pp_component : type a. a k -> Format.formatter -> a -> unit = fun k ppf v ->
let equal a b = equal { f = fun _ a b -> compare a b = 0 } a b

let pp ppf dn =
iter (fun (B (k, v)) -> pp_component k ppf v) dn
let pp_b ppf (B (k, v)) = pp_component k ppf v in
Fmt.(list ~sep:(unit "/") pp_b) ppf (bindings dn)

module Asn = struct
open Asn.S
Expand Down

0 comments on commit b01455f

Please sign in to comment.