diff --git a/ca-certs.opam b/ca-certs.opam index b5dbfed..4576344 100644 --- a/ca-certs.opam +++ b/ca-certs.opam @@ -48,6 +48,6 @@ build: [ ] tags: ["org:mirage"] depexts: [ - ["ca_root_nss"] {os = "freebsd"} + ["ca_root_nss"] {os = "freebsd" | os = "dragonfly"} ] x-maintenance-intent: [ "(latest)" ] diff --git a/ca-certs.opam.template b/ca-certs.opam.template index c3d5eba..e95eba9 100644 --- a/ca-certs.opam.template +++ b/ca-certs.opam.template @@ -14,6 +14,6 @@ build: [ ] tags: ["org:mirage"] depexts: [ - ["ca_root_nss"] {os = "freebsd"} + ["ca_root_nss"] {os = "freebsd" | os = "dragonfly"} ] x-maintenance-intent: [ "(latest)" ] diff --git a/lib/ca_certs.ml b/lib/ca_certs.ml index 3f8139e..d0b1926 100644 --- a/lib/ca_certs.ml +++ b/lib/ca_certs.ml @@ -101,6 +101,7 @@ let system_trust_anchors () = let* os = Bos.OS.Cmd.(run_out cmd |> out_string |> success) in match os with | "FreeBSD" -> detect_one freebsd_location + | "DragonFly" -> detect_one freebsd_location | "OpenBSD" -> detect_one openbsd_location | "Linux" -> detect_list linux_locations | "Darwin" ->