Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pretty printers for extensions #120

Merged
merged 2 commits into from
Oct 9, 2019
Merged

Conversation

hannesm
Copy link
Member

@hannesm hannesm commented Oct 8, 2019

also expose Distinguished_name.common_name : t -> string option (I have some revdeps which use exactly this) //cc @paurkedal

@hannesm hannesm merged commit 51c3ab2 into mirleft:master Oct 9, 2019
@hannesm hannesm deleted the pretty-printers branch October 9, 2019 19:07
hannesm added a commit to hannesm/opam-repository that referenced this pull request Oct 10, 2019
CHANGES:

* export X509.Distinguished_name.common_name : t -> string option, which
  extracts the common name of a distinguished name
* Distinguished_name.t is now a Relative_distinguished_name.t list, a
  Relative_distinguished_name is a Set.S with element type attribute, a variant.
  It used to be an attribute (expressed as GADT) Gmap.t, but this representation
  did not conform to RFC 5280, reported by @paurkedal (mirleft/ocaml-x509#117, fixed by mirleft/ocaml-x509#118)
* Now using Set.find_first_opt, which bumps lower OCaml bound to 4.05.0
* Improved pretty-printing for DNs including RFC 4514 conformance (@paurkedal, mirleft/ocaml-x509#119).
* Extension.pp now outputs extension key and its value (mirleft/ocaml-x509#120)
* rename Distinguished_name.SP constructor (stateOrProvince) to ST, as widely used (mirleft/ocaml-x509#121)
* support Street and UID in Distinguished_name to satisfy RFC 4514 demands (mirleft/ocaml-x509#121)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant