type cert_usage = | CA_constraint | |
| Service_certificate_constraint | |
| Trust_anchor_assertion | |
| Domain_issued_certificate | |
| Unknown of int | The type of the certificate usage field. |
val cert_usage_to_int : cert_usage -> intcert_usage_to_int cu is the 8 bit integer representation of cu.
val int_to_cert_usage : int -> cert_usageint_to_cert_usage i decodes i to a certificate usage constructor.
- raises Invalid_argument
if
idoes not fit in one octet.
val pp_cert_usage : cert_usage Fmt.tpp_cert_usage ppf cu pretty-prints the certificate usage on ppf.
type selector = | Full_certificate | |
| Subject_public_key_info | |
| Private | |
| Unknown of int | The type of the selector. |
val selector_to_int : selector -> intselector_to_int s is the 8 bit integer representation of s.
val int_to_selector : int -> selectorint_to_selector i decodes i to a selector.
- raises Invalid_argument
if
idoes not fit in one octet.
val matching_type_to_int : matching_type -> intmatching_type_to_int m is the 8 bit integer representation of m.
val int_to_matching_type : int -> matching_typeint_to_matching_type i decodes i to a matching type constructor.
- raises Invalid_argument
if
idoes not fit in one octet.
val pp_matching_type : matching_type Fmt.tpp_matching_type ppf m pretty-prints the matching type m on ppf.
type t = {cert_usage : cert_usage; |
selector : selector; |
matching_type : matching_type; |
data : Cstruct.t; |
}The type of a TLSA record: certificate usage, selector, matching type, and data.