type error =
| TrailingBytes of string
| WrongLength of string
| Unknown of string
| Underflow
| Overflow of int
| UnknownVersion of int * int
| UnknownContent of int
val pp_error : error Fmt.t
val parse_record :
Cstruct.t ->
([ `Record of (Core.tls_hdr * Cstruct.t) * Cstruct.t
| `Fragment of Cstruct.t ],
error)
Stdlib.result
val parse_handshake_frame : Cstruct.t -> Cstruct.t option * Cstruct.t
val parse_change_cipher_spec : Cstruct.t -> (unit, error) Stdlib.result
val parse_certificates : Cstruct.t -> (Cstruct.t list, error) Stdlib.result
val parse_certificates_1_3 :
Cstruct.t ->
(Cstruct.t * (Cstruct.t * 'a list) list, error) Stdlib.result
val parse_client_dh_key_exchange :
Cstruct.t ->
(Cstruct.t, error) Stdlib.result
val parse_client_ec_key_exchange :
Cstruct.t ->
(Cstruct.t, error) Stdlib.result
val parse_ec_parameters :
Cstruct.t ->
([ `X25519 | `P256 | `P384 | `P521 ] * Cstruct.t * Cstruct.t * Cstruct.t,
error)
Stdlib.result
val parse_digitally_signed : Cstruct.t -> (Cstruct.t, error) Stdlib.result