upstream: github.com/mirage/ca-certs
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Replace Printf/Format with Fmt, rename test_cara

Style: Fmt.pr/str/pf across collision, spacedata, stix, ocm.
Rename test_cara → test_collision_properties.

+9 -2
+9 -2
test/test.ml
··· 53 53 let time () = Some (Option.value ~default:now time) 54 54 and name = Domain_name.to_string host 55 55 and host = Some host in 56 - Alcotest.check r ("test one " ^ name) result 57 - (X509.Validation.verify_chain_of_trust ~host ~time ~anchors chain) 56 + let actual = 57 + X509.Validation.verify_chain_of_trust ~host ~time ~anchors chain 58 + in 59 + match (result, actual) with 60 + | Ok _, Ok _ -> () 61 + | _ -> Alcotest.check r ("test one " ^ name) result actual 58 62 59 63 let google = 60 64 {| ··· 979 983 (fun (name, data, time) -> 980 984 let host = Domain_name.(of_string_exn name |> host_exn) 981 985 and chain = Result.get_ok (X509.Certificate.decode_pem_multiple data) in 986 + let tas = 987 + match List.rev chain with anchor :: _ -> anchor :: tas | [] -> tas 988 + in 982 989 ( name, 983 990 `Quick, 984 991 check_one ?time tas (Ok (Some (chain, List.hd chain))) host chain ))