package tiny_libs

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module X509Source

Sourcetype public_key =
  1. | Rsa of Bignum.t * Bignum.t
  2. | Ec of Ecdsa.curve * string
  3. | Other of string
Sourcetype t = {
  1. der : string;
  2. tbs : string;
  3. issuer : string;
  4. subject : string;
  5. common_name : string;
  6. not_before : float;
  7. not_after : float;
  8. key : public_key;
  9. algorithm : string;
  10. signature : string;
  11. names : string list;
  12. ca : bool;
}
Sourceval parse : string -> (t, string) result
Sourceval signed_by : issuer:t -> t -> bool
Sourceval names_host : t -> string -> bool
Sourceval verify : trust:t list -> now:float -> host:string -> t list -> (unit, string) result
Sourceval verify_scheme : t -> scheme:int -> message:string -> signature:string -> bool