Skip to content

Commit

Permalink
CRLissuer (in distributionPoint extension) is a General_name, not a D…
Browse files Browse the repository at this point in the history
…istinguished_name
  • Loading branch information
hannesm committed Jul 24, 2019
1 parent 70cce56 commit 85b5e94
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/extension.ml
Expand Up @@ -57,7 +57,7 @@ type distribution_point_name =
type distribution_point =
distribution_point_name option *
reason list option *
Distinguished_name.t option
General_name.t option

type 'a extension = bool * 'a

Expand Down Expand Up @@ -366,7 +366,7 @@ module Asn = struct
sequence3
(optional ~label:"distributionPoint" @@ explicit 0 distribution_point_name)
(optional ~label:"reasons" @@ implicit 1 reason)
(optional ~label:"cRLIssuer" @@ implicit 2 Distinguished_name.Asn.name)
(optional ~label:"cRLIssuer" @@ implicit 2 General_name.Asn.gen_names)

let crl_distribution_points = sequence_of distribution_point

Expand Down
2 changes: 1 addition & 1 deletion lib/x509.mli
Expand Up @@ -248,7 +248,7 @@ module Extension : sig
type distribution_point =
distribution_point_name option *
reason list option *
Distinguished_name.t option
General_name.t option

(** The type of an extension: the critical flag and the value itself. *)
type 'a extension = bool * 'a
Expand Down

0 comments on commit 85b5e94

Please sign in to comment.